public class BeliefNotPresentGoal<K> extends AbstractBeliefGoal<K>
beliefName, outputBelief| Constructor and Description |
|---|
BeliefNotPresentGoal()
Default constructor.
|
BeliefNotPresentGoal(K beliefName)
Creates a new BeliefNotPresentGoal with the provided belief name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isAchieved(BeliefBase beliefBase)
Checks whether this goal is achieved by verifying if the provided belief
base contains the belief of this goal.
|
java.lang.String |
toString()
Returns a string representation of this goal, in the form
"BeliefGoal: belief name".
|
getBeliefName, getOutputBelief, setBeliefName, setOutputBeliefpublic BeliefNotPresentGoal()
public BeliefNotPresentGoal(K beliefName)
beliefName - the belief name.public boolean equals(java.lang.Object obj)
equals in class AbstractBeliefGoal<K>Object.equals(java.lang.Object)public int hashCode()
hashCode in class AbstractBeliefGoal<K>Object.hashCode()public boolean isAchieved(BeliefBase beliefBase)
beliefBase - the belief base to be checked.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()