K - the type of the belief name.V - the type of the belief value.public class BeliefNotNullValueGoal<K,V> extends AbstractBeliefGoal<K>
beliefName, outputBelief| Constructor and Description |
|---|
BeliefNotNullValueGoal()
Default constructor.
|
BeliefNotNullValueGoal(K beliefName)
Creates a new BeliefNotNullValueGoal with the provided belief.
|
| 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
has the value specified in this goal.
|
java.lang.String |
toString()
Returns a string representation of this goal, in the form
"BeliefValueGoal: BELIEF NAME should be BELIEF VALUE".
|
getBeliefName, getOutputBelief, setBeliefName, setOutputBeliefpublic BeliefNotNullValueGoal()
public BeliefNotNullValueGoal(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()