|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.core.AgentState
public class AgentState
This class represents the Life-Cycle state of an agent.
| Constructor Summary | |
|---|---|
AgentState()
Default constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two agent states. |
boolean |
equals(java.lang.Object o)
Equality operations between agent states. |
static AgentState[] |
getAllInstances()
Access the whole prototypes array. |
static AgentState |
getInstance(int value)
Static access method to retrieve a prototype object for an agent life-cycle state. |
java.lang.String |
getName()
Retrieve the name of this state. |
int |
getValue()
Retrieve the numeric value of this state, in agreement with the AP_XXX constants defined in the Agent
class. |
int |
hashCode()
Calculate an hash code for this agent state. |
void |
setName(java.lang.String n)
Set the name of this state. |
void |
setValue(int v)
Set the numeric value of this state, in agreement with the AP_XXX constants defined in the Agent
class. |
java.lang.String |
toString()
Retrieve a string representation for this agent state. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AgentState()
jade-introspection ontology. Application code
should use the static access method getInstance(),
however.
| Method Detail |
|---|
public static AgentState getInstance(int value)
value - One of the AP_XXX constants defined
in the Agent class.
public static AgentState[] getAllInstances()
public void setName(java.lang.String n)
n - The name to give.public java.lang.String getName()
public void setValue(int v)
AP_XXX constants defined in the Agent
class.
v - The numeric value for this state.public int getValue()
AP_XXX constants defined in the Agent
class.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The right-hand side of the equality.
true, otherwise it returns false.public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
o - The object to compare the current object to.
-1, 0 or
1 depending upon whether the current object is
lesser, equal or greater than the given parameter.
java.lang.ClassCastException - If the given parameter is
not an instance of AgentState.public int hashCode()
hashCode in class java.lang.ObjectAgentState instances.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||