Uses of Interface
cloud.opencode.base.rules.Rule
Packages that use Rule
Package
Description
OpenCode Base Rules - Lightweight Rule Engine for Java
OpenCode基础规则 - Java轻量级规则引擎
Conflict Resolution - Rule Conflict Handling
冲突解决 - 规则冲突处理
Rule DSL - Fluent API for Rule Construction
规则DSL - 规则构建的流式API
Rule Engine - Default Implementations
规则引擎 - 默认实现
Rule Listeners - Execution Monitoring
规则监听器 - 执行监控
Rule Model - Core Model Classes for Rules
规则模型 - 规则的核心模型类
Rule SPI - Service Provider Interfaces
规则SPI - 服务提供者接口
-
Uses of Rule in cloud.opencode.base.rules
Subinterfaces with type arguments of type Rule in cloud.opencode.base.rulesModifier and TypeInterfaceDescriptioninterfaceRule Interface - Core Abstraction of Business Rule 规则接口 - 业务规则的核心抽象Methods in cloud.opencode.base.rules that return RuleModifier and TypeMethodDescriptionGets a rule by name 按名称获取规则Methods in cloud.opencode.base.rules that return types with arguments of type RuleModifier and TypeMethodDescriptionRuleEngine.getRules()Gets all registered rules 获取所有已注册的规则Gets rules in a specific group 获取特定分组中的规则Methods in cloud.opencode.base.rules with parameters of type RuleModifier and TypeMethodDescriptiondefault intCompares rules by priority (lower value = higher priority) 按优先级比较规则(值越小优先级越高)static RuleEngineOpenRules.engineWith(Rule... rules) Creates a rule engine with the given rules 使用给定规则创建规则引擎Registers one or more rules 注册一个或多个规则Method parameters in cloud.opencode.base.rules with type arguments of type RuleModifier and TypeMethodDescriptionstatic ValidationReportOpenRules.validate(Collection<Rule> rules) Validates a collection of rules 验证规则集合 -
Uses of Rule in cloud.opencode.base.rules.conflict
Methods in cloud.opencode.base.rules.conflict that return types with arguments of type RuleModifier and TypeMethodDescriptionResolves conflicts by ordering the matching rules 通过对匹配规则排序来解决冲突Method parameters in cloud.opencode.base.rules.conflict with type arguments of type Rule -
Uses of Rule in cloud.opencode.base.rules.dsl
Methods in cloud.opencode.base.rules.dsl that return RuleMethods in cloud.opencode.base.rules.dsl with parameters of type RuleModifier and TypeMethodDescriptionAdds a rule to the group 向组添加规则Adds multiple rules to the group 向组添加多个规则Registers one or more rules 注册一个或多个规则Method parameters in cloud.opencode.base.rules.dsl with type arguments of type RuleModifier and TypeMethodDescriptionAdds multiple rules to the group 向组添加多个规则 -
Uses of Rule in cloud.opencode.base.rules.engine
Classes in cloud.opencode.base.rules.engine that implement RuleMethods in cloud.opencode.base.rules.engine that return RuleMethods in cloud.opencode.base.rules.engine that return types with arguments of type RuleMethods in cloud.opencode.base.rules.engine with parameters of type Rule -
Uses of Rule in cloud.opencode.base.rules.listener
Methods in cloud.opencode.base.rules.listener with parameters of type RuleModifier and TypeMethodDescriptionvoidLoggingRuleListener.afterEvaluate(Rule rule, RuleContext context, boolean satisfied) default voidRuleListener.afterEvaluate(Rule rule, RuleContext context, boolean satisfied) Called after a rule is evaluated 在规则评估后调用voidLoggingRuleListener.afterExecute(Rule rule, RuleContext context) default voidRuleListener.afterExecute(Rule rule, RuleContext context) Called after a rule is executed successfully 在规则成功执行后调用voidLoggingRuleListener.beforeEvaluate(Rule rule, RuleContext context) default voidRuleListener.beforeEvaluate(Rule rule, RuleContext context) Called before a rule is evaluated 在规则评估前调用voidLoggingRuleListener.beforeExecute(Rule rule, RuleContext context) default voidRuleListener.beforeExecute(Rule rule, RuleContext context) Called before a rule is executed 在规则执行前调用voidLoggingRuleListener.onFailure(Rule rule, RuleContext context, Exception exception) default voidRuleListener.onFailure(Rule rule, RuleContext context, Exception exception) Called when a rule execution fails 当规则执行失败时调用 -
Uses of Rule in cloud.opencode.base.rules.metric
Methods in cloud.opencode.base.rules.metric with parameters of type RuleModifier and TypeMethodDescriptionvoidMetricsListener.afterEvaluate(Rule rule, RuleContext context, boolean satisfied) Computes duration and records the evaluation metric 计算持续时间并记录评估指标voidMetricsListener.beforeEvaluate(Rule rule, RuleContext context) Records the start time before rule evaluation 在规则评估前记录开始时间voidMetricsListener.onFailure(Rule rule, RuleContext context, Exception exception) Records a rule failure 记录规则失败 -
Uses of Rule in cloud.opencode.base.rules.model
Methods in cloud.opencode.base.rules.model that return types with arguments of type RuleMethods in cloud.opencode.base.rules.model with parameters of type RuleModifier and TypeMethodDescriptionAdds a rule to the group 向组添加规则Adds multiple rules to the group 向组添加多个规则Method parameters in cloud.opencode.base.rules.model with type arguments of type RuleModifier and TypeMethodDescriptionAdds multiple rules to the group 向组添加多个规则 -
Uses of Rule in cloud.opencode.base.rules.score
Subinterfaces of Rule in cloud.opencode.base.rules.scoreModifier and TypeInterfaceDescriptioninterfaceScoring Rule - Rule That Produces a Numeric Score 评分规则 - 产生数值分数的规则 -
Uses of Rule in cloud.opencode.base.rules.spi
Methods in cloud.opencode.base.rules.spi that return types with arguments of type RuleModifier and TypeMethodDescriptionRuleProvider.getRules()Gets all rules provided by this provider 获取此提供者提供的所有规则 -
Uses of Rule in cloud.opencode.base.rules.trace
Methods in cloud.opencode.base.rules.trace with parameters of type RuleModifier and TypeMethodDescriptionvoidTracingRuleListener.afterEvaluate(Rule rule, RuleContext context, boolean satisfied) voidTracingRuleListener.afterExecute(Rule rule, RuleContext context) voidTracingRuleListener.beforeEvaluate(Rule rule, RuleContext context) voidTracingRuleListener.onFailure(Rule rule, RuleContext context, Exception exception) -
Uses of Rule in cloud.opencode.base.rules.validation
Method parameters in cloud.opencode.base.rules.validation with type arguments of type RuleModifier and TypeMethodDescriptionstatic ValidationReportRuleValidator.validate(Collection<Rule> rules) Validates a collection of rules and returns a report 验证规则集合并返回报告