Package jade.domain.introspection
Class ChangedBehaviourState
- java.lang.Object
-
- jade.domain.introspection.ChangedBehaviourState
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class ChangedBehaviourState extends Object implements Event
An introspection event, recording the change of the state of an agent behaviour within the platform.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangedBehaviourState()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 behaviour state changed.BehaviourIDgetBehaviour()Retrieve the value of thebehaviourslot of this event, containing the behaviour identifier of the behaviour whose state changed.StringgetFrom()Retrieve the value of thefromslot of this event, containing the name of the state the behaviour was in before this event occurred.StringgetName()Retrieve the name of this event.StringgetTo()Retrieve the value of thetoslot of this event, containing the name of the state the behaviour was in after this event occurred.voidsetAgent(AID id)Set theagentslot of this event.voidsetBehaviour(BehaviourID id)Set thebehaviourslot of this event.voidsetFrom(String s)Set thefromslot of this event.voidsetTo(String s)Set thetoslot of this event.StringtoString()Retrieve an SL0-like string representation for this object.
-
-
-
Field Detail
-
NAME
public static final String NAME
A string constant for the name of this event.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAgent
public void setAgent(AID id)
Set theagentslot of this event.- Parameters:
id- The agent identifier of the agent whose behaviour state changed.
-
getAgent
public AID getAgent()
Retrieve the value of theagentslot of this event, containing the agent identifier of the agent whose behaviour state changed.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
setBehaviour
public void setBehaviour(BehaviourID id)
Set thebehaviourslot of this event.- Parameters:
id- The behaviour identifier of the behaviour whose state changed.
-
getBehaviour
public BehaviourID getBehaviour()
Retrieve the value of thebehaviourslot of this event, containing the behaviour identifier of the behaviour whose state changed.- Returns:
- The value of the
behaviourslot, ornullif no value was set.
-
setFrom
public void setFrom(String s)
Set thefromslot of this event.- Parameters:
s- The name of the state the behaviour was in before this event occurred.
-
getFrom
public String getFrom()
Retrieve the value of thefromslot of this event, containing the name of the state the behaviour was in before this event occurred.- Returns:
- The value of the
fromslot, ornullif no value was set.
-
setTo
public void setTo(String s)
Set thetoslot of this event.- Parameters:
s- The name of the state the behaviour was in after this event occurred.
-
getTo
public String getTo()
Retrieve the value of thetoslot of this event, containing the name of the state the behaviour was in after this event occurred.- Returns:
- The value of the
toslot, ornullif no value was set.
-
getName
public String getName()
Retrieve the name of this event.
-
-