| Modifier and Type | Class and Description |
|---|---|
static class |
Rule.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.LinkedList<java.lang.String> |
actions
List of names for the
Action interface implementations that
should be executed when the rules conditions are true. |
protected java.util.List<Annotation> |
annotations |
protected float |
certaintyFactor
The certainty factor of a rule.
|
protected java.util.LinkedList<Formulae> |
conditions
A list that contains a list of firing conditions for the rule.
|
protected java.util.LinkedList<Decision> |
decisions
List that contains decisions that has to be fired when conditions are true.
|
protected java.lang.String |
id
This field is used by the SQL module while storing/restoring model into/from database.
|
protected java.lang.Integer |
orderNumber
This field contains rule's order number.
|
protected java.util.LinkedList<Rule> |
ruleLinks
This is a list of rules that the inference engine should proceed to after firing this rule.
|
protected java.lang.String |
schemeName
This field contains scheme's name to which the rule belongs.
|
protected java.util.LinkedList<Table> |
tabLinks
This is a list of rules that the inference engine should proceed to after firing this rule.
|
| Constructor and Description |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Annotation> |
annotations() |
java.util.List<Annotation> |
annotationsNamed(java.lang.String name) |
UncertainTrue |
evaluate(WorkingMemory wm,
UncertainTrueEvaluator ute)
Method that evaluates all the rules conditions.
|
boolean |
execute(WorkingMemory wm,
UncertainTrue certainty)
Method that fires the decision part of the rule.
|
java.util.LinkedList<java.lang.String> |
getActions() |
float |
getCertaintyFactor() |
java.util.LinkedList<Formulae> |
getConditions() |
java.util.LinkedList<Decision> |
getDecisions() |
java.lang.String |
getId() |
java.lang.String |
getName() |
java.lang.Integer |
getOrderNumber() |
java.util.LinkedList<Rule> |
getRuleLinks() |
java.lang.String |
getSchemeName() |
java.util.LinkedList<Table> |
getTabLinks() |
protected void |
setTabLinks(java.util.LinkedList<Table> tablinks) |
protected java.lang.String id
protected java.lang.String schemeName
protected java.lang.Integer orderNumber
protected float certaintyFactor
protected java.util.LinkedList<Rule> ruleLinks
protected java.util.LinkedList<Table> tabLinks
protected java.util.LinkedList<Formulae> conditions
Formulae.protected java.util.LinkedList<Decision> decisions
Decision class.protected java.util.LinkedList<java.lang.String> actions
Action interface implementations that
should be executed when the rules conditions are true.protected java.util.List<Annotation> annotations
public UncertainTrue evaluate(WorkingMemory wm, UncertainTrueEvaluator ute) throws NotInTheDomainException, UnknownValueException
wm - a working memory object that contains information about attributes valuesNotInTheDomainExceptionUnknownValueExceptionpublic boolean execute(WorkingMemory wm, UncertainTrue certainty) throws java.lang.UnsupportedOperationException, NotInTheDomainException
evaluate(heart.WorkingMemory, heart.uncertainty.UncertainTrueEvaluator).wm - a working memory object that contains information about attributes valuesjava.lang.UnsupportedOperationExceptionNotInTheDomainExceptionpublic java.lang.String getId()
public java.lang.String getSchemeName()
public java.lang.String getName()
public java.lang.Integer getOrderNumber()
public java.util.LinkedList<Rule> getRuleLinks()
public java.util.LinkedList<Table> getTabLinks()
protected void setTabLinks(java.util.LinkedList<Table> tablinks)
public java.util.LinkedList<Formulae> getConditions()
public java.util.LinkedList<Decision> getDecisions()
public float getCertaintyFactor()
public java.util.LinkedList<java.lang.String> getActions()
public java.util.List<Annotation> annotations()
annotations in interface Annotatedpublic java.util.List<Annotation> annotationsNamed(java.lang.String name)
annotationsNamed in interface Annotated