T - the type of the belief value.public class BeliefValueGoal<T> extends BeliefGoal
| Constructor and Description |
|---|
BeliefValueGoal(java.lang.String beliefName,
T value)
Creates a new BeliefValueGoal with the provided belief name and a value.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
The belief value associated with this goal.
|
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".
|
getBeliefNamepublic BeliefValueGoal(java.lang.String beliefName,
T value)
beliefName - the belief name.value - the value that is target of this goal.public T getValue()
public boolean isAchieved(BeliefBase beliefBase)
isAchieved in class BeliefGoalbeliefBase - the belief base to be checked.public java.lang.String toString()
toString in class BeliefGoalObject.toString()