Package jade.domain.introspection
Class ChangedAgentState
- java.lang.Object
-
- jade.domain.introspection.ChangedAgentState
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class ChangedAgentState extends Object implements Event
An introspection event, recording the change of the atate of an agent within the platform.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangedAgentState()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AIDgetAgent()Retrieve the value of theagentslot of this event, containing the agent identifier of the agent whose state changed.AgentStategetFrom()Retrieve the value of thefromslot of this event, containing the name of the state the agent was in before this event occurred.StringgetName()Retrieve the name of this event.AgentStategetTo()Retrieve the value of thetoslot of this event, containing the name of the state the agent was in after this event occurred.voidsetAgent(AID id)Set theagentslot of this event.voidsetFrom(AgentState as)Set thefromslot of this event.voidsetTo(AgentState as)Set thetoslot of this event.
-
-
-
Field Detail
-
NAME
public static final String NAME
A string constant for the name of this event.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Retrieve the name of this event.
-
setAgent
public void setAgent(AID id)
Set theagentslot of this event.- Parameters:
id- The agent identifier of the agent whose state changed.
-
getAgent
public AID getAgent()
Retrieve the value of theagentslot of this event, containing the agent identifier of the agent whose state changed.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
setFrom
public void setFrom(AgentState as)
Set thefromslot of this event.- Parameters:
as- The name of the entity the state the agent was in before this event occurred.
-
getFrom
public AgentState getFrom()
Retrieve the value of thefromslot of this event, containing the name of the state the agent was in before this event occurred.- Returns:
- The value of the
fromslot, ornullif no value was set.
-
setTo
public void setTo(AgentState as)
Set thetoslot of this event.- Parameters:
as- The name of the state the agent was in after this event occurred.
-
getTo
public AgentState getTo()
Retrieve the value of thetoslot of this event, containing the name of the state the agent was in after this event occurred.- Returns:
- The value of the
toslot, ornullif no value was set.
-
-