jade.domain.introspection
Class StopNotify

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

public class StopNotify
extends java.lang.Object
implements AgentAction

This class represents the stop-notify action, requesting to end 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
StopNotify()
          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 were being notified so far.
 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

StopNotify

public StopNotify()
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 were being notified so far.

getObserved

public AID getObserved()
Retrieve the value of the observed slot of this event, containing the agent identifier of the agent whose events were being notified so far.

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.