jess
Class Activation

java.lang.Object
  |
  +--jess.Activation
All Implemented Interfaces:
java.io.Serializable

public class Activation
extends java.lang.Object
implements java.io.Serializable

An activation of a rule. Contains enough info to bind a rule's variables.

Author:
Ernest J. Friedman-Hill
See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object o)
          Compare this object to another object.
 Defrule getRule()
          Return the activated rule.
 Token getToken()
          Get the Rete network Token that caused this Activation.
 boolean isInactive()
          Returns true if this activation is live, or false if it's been cancelled.
 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

getToken

public final Token getToken()
Get the Rete network Token that caused this Activation.
Returns:
The token.

getRule

public final Defrule getRule()
Return the activated rule.
Returns:
The rule.

isInactive

public boolean isInactive()
Returns true if this activation is live, or false if it's been cancelled.

equals

public boolean equals(java.lang.Object o)
Compare this object to another object.
Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare to.

toString

public java.lang.String toString()
Produce a string representation of this Activation for use in debugging.
Overrides:
toString in class java.lang.Object
Returns:
The string representation

© 1997 E.J. Friedman-Hill and Sandia Corporation