jade.domain.introspection
Class StartNotify

java.lang.Object
  extended by jade.domain.introspection.StartNotify
All Implemented Interfaces:
AgentAction, Concept, ContentElement, Term, java.io.Serializable

public class StartNotify
extends java.lang.Object
implements AgentAction

This class represents the start-notify action, requesting to start a continuous notification of some events via ACL messages.

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

Constructor Summary
StartNotify()
          Default constructor.
 
Method Summary
 void addEvents(java.lang.String evName)
          Add an event name to the events slot collection of this object.
 Iterator getAllEvents()
          Remove all event names from the events slot collection of this object.
 AID getObserved()
          Retrieve the value of the observed slot of this event, containing the agent identifier of the agent whose events will be notified from now on.
 void setObserved(AID id)
          Set the observed slot of this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartNotify

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

Method Detail

setObserved

public void setObserved(AID id)
Set the observed slot of this action.

Parameters:
id - The agent identifier of the agent whose events will be notified from now on.

getObserved

public AID getObserved()
Retrieve the value of the observed slot of this event, containing the agent identifier of the agent whose events will be notified from now on.

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

addEvents

public void addEvents(java.lang.String evName)
Add an event name to the events slot collection of this object.

Parameters:
evName - The event name to add to the collection.

getAllEvents

public Iterator getAllEvents()
Remove all event names from the events slot collection of this object.