public class BeliefGoal extends java.lang.Object implements Goal
| Constructor and Description |
|---|
BeliefGoal(java.lang.String beliefName)
Creates a new BeliefGoal with the provided belief name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBeliefName()
Returns the name of the belief associated with this goal.
|
boolean |
isAchieved(BeliefBase beliefBase)
Checks whether this goal is achieved by verifying if the provided belief
base contains the belief of this goal.
|
java.lang.String |
toString()
Returns a string representation of this goal, in the form
"BeliefGoal: 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.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()