public class BeliefGoal extends java.lang.Object implements Goal
| Constructor and Description |
|---|
BeliefGoal(java.lang.Object beliefValue)
Creates a new BeliefGoal.
|
BeliefGoal(java.lang.String beliefName)
Creates a new BeliefGoal with the provided belief name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBeliefName() |
boolean |
isAchieved(BeliefBase beliefBase)
Checks if this goal is achieved by verifying if the provided belief base
contains the belief of this goal.
|
public BeliefGoal(java.lang.Object beliefValue)
beliefValue - the belief value whose toString() is the belief name.public BeliefGoal(java.lang.String beliefName)
beliefName - the belief name.public java.lang.String getBeliefName()
public boolean isAchieved(BeliefBase beliefBase)
beliefBase - the belief base to be checked.