|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgalatea.glorias.Goals
This class contains all the goals that an agent may perform.
-----
Esta clase almacena todas las metas que un agente podría llegar a ejecutar.
| Field Summary | |
java.lang.String[] |
allGoals
Array that contains all the agent's goals. |
int |
intention
Quantity of actions that an agent could perform (independently if the conditions to perform them are activated or not). |
| Constructor Summary | |
Goals()
Constructor of the class. |
|
| Method Summary | |
void |
activateGoal(Goal goal)
This method adds a goal to the array that contains the set of agent goals. |
java.lang.String |
getForExecution(int i)
This method takes out a determined goal from the set of agent's goals, to perform the action related to that goal. |
boolean |
isEmpty()
This method initializes agent's goals to zero. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.String[] allGoals
public int intention
| Constructor Detail |
public Goals()
| Method Detail |
public void activateGoal(Goal goal)
goal - Goal. It is the reference to a new agent goal. public java.lang.String getForExecution(int i)
i - int. It indicates the goal position number at the goals array.
public boolean isEmpty()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||