|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRuleSet
captures a set of rules in ACTF. A ruleset is a collection of rules in a rulebase. Each ruleset can be enabled or disabled and, if enabled, each rule within the ruleset can be enabled or disabled. Rulesets are also associated with execution points so that collections of rules can be applied at different points throughout a process.
ExecutionPoint
,
IRuleBase
Method Summary | |
---|---|
void |
addRule(IRule rule)
add a rule to this ruleset |
String |
getExecutionPointName()
get the name of the execution point descriptor that triggers rules in this ruleset |
String |
getName()
get the name of this ruleset |
IRule |
getRule(String name)
get the rule with the given name |
IRuleBase |
getRuleBase()
get the rulebase to which this ruleset belongs |
IRuleFactory |
getRuleFactory()
get the rule factory responsible for creating rules in this ruleset |
IRule[] |
getRules()
return all of the rules within this ruleset |
boolean |
isEnabled()
return whether or not this ruleset is enabled |
void |
removeRule(String name)
remove the rule with the given name |
void |
setEnabled(boolean enabled)
set whether or not this ruleset is enabled. |
void |
setExecutionPoint(String name)
set the name of the execution point that triggered this ruleset \ |
void |
setName(String name)
set the name of this ruleset |
void |
setRuleBase(IRuleBase iRuleBase)
set the rulebase to which this ruleset belongs |
void |
setRuleFactory(IRuleFactory factory)
set the rule factory for this ruleset. |
Method Detail |
---|
String getName()
void setName(String name)
name
- boolean isEnabled()
true
if this ruleset is enabled,
false
otherwisesetEnabled(boolean)
void setEnabled(boolean enabled)
enabled
- void addRule(IRule rule)
rule
- void removeRule(String name)
name
- name of rule to be removedIRule[] getRules()
IRule getRule(String name)
name
- name of desired rule
null
if no such rule
exists in this rulesetIRuleFactory getRuleFactory()
void setRuleFactory(IRuleFactory factory)
factory
- String getExecutionPointName()
void setExecutionPoint(String name)
name
- name of executionPointIRuleBase getRuleBase()
void setRuleBase(IRuleBase iRuleBase)
iRuleBase
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |