K - the type of the belief name.V - the type of the belief value.public class BeliefNotNullValueGoal<K,V> extends java.lang.Object implements BeliefGoal<K>
| Constructor and Description |
|---|
BeliefNotNullValueGoal()
Default constructor.
|
BeliefNotNullValueGoal(K beliefName)
Creates a new BeliefValueGoal with the provided belief.
|
| 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
has the value specified in 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
"BeliefValueGoal: BELIEF NAME should be BELIEF VALUE".
|
public BeliefNotNullValueGoal()
public BeliefNotNullValueGoal(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()