|
||||||||||
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 |
ICriterionFactory |
getCriterionFactory()
get the criterion factory responsible for creating criterions in 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 |
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 |
setCriterionFactory(ICriterionFactory factory)
set the criterion factory for this ruleset. |
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 |
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 rulesetICriterionFactory getCriterionFactory()
void setCriterionFactory(ICriterionFactory 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 |