vs.plotagent
Class Goal
java.lang.Object
vs.plotagent.Goal
public class Goal
- extends java.lang.Object
Constructor Summary |
Goal(java.lang.String prologDescription,
java.lang.String character)
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Compares two goals; goals are considered the same if the characters they're assigned to
are the same, while the type and arguments to the goal correspond. |
java.lang.String |
getCharacter()
|
java.lang.String |
getPrologDescription()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Goal
public Goal(java.lang.String prologDescription,
java.lang.String character)
getPrologDescription
public java.lang.String getPrologDescription()
getCharacter
public java.lang.String getCharacter()
equals
public boolean equals(java.lang.Object obj)
- Compares two goals; goals are considered the same if the characters they're assigned to
are the same, while the type and arguments to the goal correspond. The arguments that are
checked are:
- agens
- patiens
- opponent
- instrument
- target
If a new argument type gets introduced (that is somehow applicable to a goal), it should be added.
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object