jade.domain.introspection
Class AddedBehaviour

java.lang.Object
  extended by jade.domain.introspection.AddedBehaviour
All Implemented Interfaces:
Concept, Term, Event, java.io.Serializable

public class AddedBehaviour
extends java.lang.Object
implements Event

An introspection event, recording that a behaviour was added to an agent.

Version:
$Date: 2005-02-16 18:18:28 +0100 (mer, 16 feb 2005) $ $Revision: 5552 $
Author:
Giovanni Rimassa - Universita' di Parma
See Also:
Serialized Form

Field Summary
static java.lang.String NAME
          A string constant for the name of this event.
 
Constructor Summary
AddedBehaviour()
          Default constructor.
 
Method Summary
 AID getAgent()
          Retrieve the value of the agent slot of this event, containing the agent identifier of the agent the behaviour was added to.
 BehaviourID getBehaviour()
          Retrieve the value of the behaviour slot of this event, containing the behaviour identifier of the newly added behaviour.
 java.lang.String getName()
          Retrieve the name of this event.
 void setAgent(AID id)
          Set the agent of this event.
 void setBehaviour(BehaviourID id)
          Set the behaviour of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
A string constant for the name of this event.

See Also:
Constant Field Values
Constructor Detail

AddedBehaviour

public AddedBehaviour()
Default constructor. A default constructor is necessary for ontological classes.

Method Detail

setAgent

public void setAgent(AID id)
Set the agent of this event.

Parameters:
id - The agent identifier of the agent the behaviour was added to.

getAgent

public AID getAgent()
Retrieve the value of the agent slot of this event, containing the agent identifier of the agent the behaviour was added to.

Returns:
The value of the agent slot, or null if no value was set.

setBehaviour

public void setBehaviour(BehaviourID id)
Set the behaviour of this event.

Parameters:
id - The behaviour identifier of the newly added behaviour.

getBehaviour

public BehaviourID getBehaviour()
Retrieve the value of the behaviour slot of this event, containing the behaviour identifier of the newly added behaviour.

Returns:
The value of the behaviour slot, or null if no value was set.

getName

public java.lang.String getName()
Retrieve the name of this event.

Specified by:
getName in interface Event
Returns:
A constant value for the event name.