|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rdr.core.Rule
public class Rule
A rule. Comprised of a set of rule Conditions. For RDR systems - If each rule Condition is satisfied, the rule is satisfied
Constructor Summary | |
---|---|
Rule(int ruleID)
Constructor. |
|
Rule(int ruleID,
common.datastructures.MyFastVector<Condition> conditions)
Constructor. |
|
Rule(common.datastructures.MyFastVector<Condition> conditions)
Default constructor. |
|
Rule(common.datastructures.MyFastVector<Condition> conditions,
Case createdFor)
Default constructor. |
Method Summary | |
---|---|
common.datastructures.MyFastVector<Condition> |
getConditions()
|
Case |
getCreatedFor()
|
int |
getRuleID()
Get the rule id |
void |
incrementRuleIDCount()
Increment the ruleID count. |
boolean |
isSatisfied(Case c)
Check to see is this rule satisfied by the case c? |
void |
setConditions(common.datastructures.MyFastVector<Condition> conditions)
Set the conditions. |
void |
setCreatedFor(Case c)
|
java.lang.String |
toString()
Convert the rule to readable text. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rule(common.datastructures.MyFastVector<Condition> conditions)
conditions
- public Rule(common.datastructures.MyFastVector<Condition> conditions, Case createdFor)
conditions
- createdFor
- the case this rule was created forpublic Rule(int ruleID)
ruleID
- public Rule(int ruleID, common.datastructures.MyFastVector<Condition> conditions)
ruleID
- conditions
- Method Detail |
---|
public common.datastructures.MyFastVector<Condition> getConditions()
public void setConditions(common.datastructures.MyFastVector<Condition> conditions)
conditions
- the set of conditions that make up the rulepublic java.lang.String toString()
toString
in class java.lang.Object
public int getRuleID()
public void incrementRuleIDCount()
public boolean isSatisfied(Case c)
c
- the case to compare againstpublic Case getCreatedFor()
public void setCreatedFor(Case c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |