aima.basic.simplerule
Class Rule
java.lang.Object
aima.basic.simplerule.Rule
public class Rule
- extends java.lang.Object
Constructor Summary |
Rule(Condition aCon,
java.lang.String anAction)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Rule
public Rule(Condition aCon,
java.lang.String anAction)
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