Package jade.domain.introspection
Class AddedBehaviour
- java.lang.Object
-
- jade.domain.introspection.AddedBehaviour
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class AddedBehaviour extends Object implements Event
An introspection event, recording that a behaviour was added to an agent.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddedBehaviour()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 the behaviour was added to.BehaviourIDgetBehaviour()Retrieve the value of thebehaviourslot of this event, containing the behaviour identifier of the newly added behaviour.StringgetName()Retrieve the name of this event.voidsetAgent(AID id)Set theagentof this event.voidsetBehaviour(BehaviourID id)Set thebehaviourof 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
-
setAgent
public void setAgent(AID id)
Set theagentof this event.- Parameters:
id- The agent identifier of the agent the behaviour was added to.
-
getAgent
public AID getAgent()
Retrieve the value of theagentslot of this event, containing the agent identifier of the agent the behaviour was added to.- Returns:
- The value of the
agentslot, ornullif no value was set.
-
setBehaviour
public void setBehaviour(BehaviourID id)
Set thebehaviourof this event.- Parameters:
id- The behaviour identifier of the newly added behaviour.
-
getBehaviour
public BehaviourID getBehaviour()
Retrieve the value of thebehaviourslot of this event, containing the behaviour identifier of the newly added behaviour.- Returns:
- The value of the
behaviourslot, ornullif no value was set.
-
-