|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjess.Activation
A list of facts that satisfy a rule. An activation contains enough info to bind a rule's variables. You might use this class if you're writing your own Strategy class.
(C) 2003 Ernest J. Friedman-Hill and Sandia National Laboratories
$Id: Activation.java,v 1.5 2003/01/23 22:07:14 ejfried Exp $
Strategy
,
Serialized FormMethod Summary | |
boolean |
equals(java.lang.Object o)
Compare this object to another Activation. |
Defrule |
getRule()
Return the activated rule. |
int |
getSalience()
Evaluate and return the current salience for the rule referenced in this activation. |
Token |
getToken()
Get the Rete network Token that caused this Activation. |
boolean |
isInactive()
Query if this activation has been cancelled, or false if it is valid. |
java.lang.String |
toString()
Produce a string representation of this Activation for use in debugging. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public final Token getToken()
public final Defrule getRule()
public boolean isInactive()
public int getSalience()
public boolean equals(java.lang.Object o)
o
- The Activation to compare to.public 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 |