aima.basic.simplerule
Class Rule

java.lang.Object
  extended by aima.basic.simplerule.Rule

public class Rule
extends java.lang.Object


Constructor Summary
Rule(Condition aCon, java.lang.String anAction)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean evaluate(ObjectWithDynamicAttributes p)
           
 java.lang.String getAction()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rule

public Rule(Condition aCon,
            java.lang.String anAction)
Method Detail

evaluate

public boolean evaluate(ObjectWithDynamicAttributes p)

getAction

public java.lang.String getAction()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object