|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jess.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
Fields inherited from class jess.Node |
LEFT,
m_usecount,
RIGHT |
Method Summary | |
boolean |
callNodeLeft(Token token)
All we need to do is create or destroy the appropriate Activation object, which contains enough info to fire a rule. |
int |
evalSalience()
Evaluate the salience of this rule. |
Funcall |
getAction(int idx)
Fetch the idx-th RHS action of this rule |
int |
getId()
Fetch the unique id of this rule. |
int |
getNActions()
Fetch the number of actions on this rule's RHS |
int |
getSalience()
Fetch the salience setting of this rule |
java.lang.String |
toString()
Pretty-print this rule. |
Methods inherited from class jess.HasLHS |
getDocstring,
getName,
getNodeIndexHash,
getNPatterns,
getPattern,
listNodes,
setNodeIndexHash |
Methods inherited from class jess.Node |
addJessListener,
removeJessListener,
succ |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public final int getSalience()
public int evalSalience() throws JessException
engine
- The Rete engine the rule belongs topublic int getId()
public boolean callNodeLeft(Token token) throws JessException
token
- callType
- public int getNActions()
public Funcall getAction(int idx)
public java.lang.String toString()
|
© 1997 E.J. Friedman-Hill and Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |