public class BeliefPresentGoal<K> extends java.lang.Object implements BeliefGoal<K>
| Constructor and Description |
|---|
BeliefPresentGoal()
Default constructor.
|
BeliefPresentGoal(K beliefName)
Creates a new BeliefGoal with the provided belief name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
K |
getBeliefName()
Returns the name of the belief associated with this goal.
|
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.
|
void |
setBeliefName(K beliefName)
Sets the name of the belief associated with this goal.
|
java.lang.String |
toString()
Returns a string representation of this goal, in the form
"BeliefGoal: belief name".
|
public BeliefPresentGoal()
public BeliefPresentGoal(K beliefName)
beliefName - the belief name.public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)@Parameter(direction=IN) public K getBeliefName()
getBeliefName in interface BeliefGoal<K>public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean isAchieved(BeliefBase beliefBase)
isAchieved in interface BeliefGoal<K>beliefBase - the belief base to be checked.public void setBeliefName(K beliefName)
beliefName - the belief name.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()