|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.goalhandler.Goal
@Immutable public class Goal
This class represents a goal.
Field Summary | |
---|---|
private double |
desire
The desire of this goal. |
private State |
goalState
The goal state. |
private static org.apache.commons.logging.Log |
logger
Logger for this class |
private SuperLinkID |
origin
The parent of this goal. |
Constructor Summary | |
---|---|
Goal(State goalState,
double desire,
SuperLinkID origin)
Constructor; returns a new instance of Goal. |
Method Summary | |
---|---|
int |
compareTo(Goal other)
|
boolean |
equals(java.lang.Object obj)
|
double |
getDesire()
Returns the desire of this goal. |
State |
getGoalState()
Returns the goal state of this goal. |
SuperLinkID |
getOrigin()
Returns the id of the originating PlanRequester of this
goal. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log logger
private final SuperLinkID origin
private final State goalState
private final double desire
Constructor Detail |
---|
public Goal(State goalState, double desire, SuperLinkID origin)
goalState
- the desired goal statedesire
- the desire of the goalorigin
- id of the originating plan requester of this goalMethod Detail |
---|
public double getDesire()
public State getGoalState()
public SuperLinkID getOrigin()
PlanRequester
of this
goal.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(Goal other)
compareTo
in interface java.lang.Comparable<Goal>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |