T - the type of the values in the belief set.public class BeliefSetValueGoal<T> extends BeliefValueGoal<T>
| Constructor and Description |
|---|
BeliefSetValueGoal(java.lang.String beliefSetName,
T value)
Creates a new BeliefSetValueGoal with the provided belief name and a
value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAchieved(BeliefBase beliefBase)
Checks whether this goal is achieved by verifying if the provided belief
set contains the value specified in this goal.
|
java.lang.String |
toString()
Returns a string representation of this goal, in the form
"BeliefSetValueGoal: BELIEF NAME should have BELIEF VALUE".
|
getValuegetBeliefNamepublic BeliefSetValueGoal(java.lang.String beliefSetName,
T value)
beliefSetName - the belief name.value - the value that is target of this goal.public boolean isAchieved(BeliefBase beliefBase)
isAchieved in class BeliefValueGoal<T>beliefBase - the belief base to be checked.public java.lang.String toString()
toString in class BeliefValueGoal<T>Object.toString()