public abstract class AbstractBeliefGoal<K> extends java.lang.Object implements BeliefGoal<K>
| Modifier and Type | Field and Description |
|---|---|
protected K |
beliefName |
protected Belief<K,?> |
outputBelief |
| Constructor and Description |
|---|
AbstractBeliefGoal()
Default constructor.
|
AbstractBeliefGoal(K beliefName)
Creates a new AbstractBeliefGoal with the provided belief.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
K |
getBeliefName()
Returns the name of the belief associated with this goal.
|
Belief<K,?> |
getOutputBelief()
Returns the belief which is the output of this goal achievement.
|
int |
hashCode() |
void |
setBeliefName(K beliefName)
Sets the name of the belief associated with this goal.
|
void |
setOutputBelief(Belief<K,?> belief)
Sets the belief which is the output of this goal achievement.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisAchievedpublic AbstractBeliefGoal()
public AbstractBeliefGoal(K beliefName)
beliefName - the belief name.public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)@Parameter(direction=IN) public K getBeliefName()
getBeliefName in interface BeliefGoal<K>@Parameter(direction=OUT) public Belief<K,?> getOutputBelief()
getOutputBelief in interface BeliefGoal<K>public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void setBeliefName(K beliefName)
beliefName - the belief name.public void setOutputBelief(Belief<K,?> belief)
setOutputBelief in interface BeliefGoal<K>belief - the belief.