|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjess.Node
jess.HasLHS
jess.Defrule
Class used to represent Defrules. These are constructed by the parser.
(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories
| Field Summary |
| Fields inherited from class jess.Node |
LEFT, m_usecount, RIGHT |
| Method Summary | |
java.lang.Object |
accept(Visitor jv)
|
void |
callNodeLeft(Token token,
Context context)
All we need to do is create or destroy the appropriate Activation object, which contains enough info to fire a rule. |
int |
evalSalience(Rete engine)
Evaluate the salience of this rule. |
Funcall |
getAction(int idx)
Fetch the idx-th RHS action of this rule. |
boolean |
getAutoFocus()
|
int |
getNActions()
Fetch the number of actions on this rule's RHS |
int |
getSalience()
Fetch the salience setting of this rule |
void |
setAutoFocus(boolean autoFocus)
|
java.lang.String |
toString()
|
| Methods inherited from class jess.HasLHS |
addNode, getConditionalElements, getDisplayName, getDocstring, getGroupSize, getModule, getName, getNodeIndexHash, getPatternCount, listNodes, setNodeIndexHash |
| Methods inherited from class jess.Node |
addJessListener, getSuccessors, removeJessListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public final int getSalience()
public boolean getAutoFocus()
public void setAutoFocus(boolean autoFocus)
public int evalSalience(Rete engine)
throws JessException
engine - The Rete engine the rule belongs to
JessException - If something goes wrong
public void callNodeLeft(Token token,
Context context)
throws JessException
JessExceptionpublic int getNActions()
public Funcall getAction(int idx)
idx - The zero-based index of the action to fetch
public java.lang.Object accept(Visitor jv)
accept in interface Visitableaccept in class HasLHSpublic java.lang.String toString()
|
© 2001 E.J. Friedman-Hill and Sandia Corporation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||