Package jade.domain.introspection
Class StopNotify
- java.lang.Object
-
- jade.domain.introspection.StopNotify
-
- All Implemented Interfaces:
AgentAction,Concept,ContentElement,Term,Serializable,Serializable
public class StopNotify extends Object implements AgentAction
This class represents thestop-notifyaction, requesting to end a continuous notification of some events via ACL messages.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StopNotify()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvents(String evName)Add an event name to theeventsslot collection of this object.IteratorgetAllEvents()Remove all event names from theeventsslot collection of this object.AIDgetObserved()Retrieve the value of theobservedslot of this event, containing the agent identifier of the agent whose events were being notified so far.voidsetObserved(AID id)Set theobservedslot of this action.
-
-
-
Method Detail
-
setObserved
public void setObserved(AID id)
Set theobservedslot 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 theobservedslot of this event, containing the agent identifier of the agent whose events were being notified so far.- Returns:
- The value of the
observedslot, ornullif no value was set.
-
addEvents
public void addEvents(String evName)
Add an event name to theeventsslot collection of this object.- Parameters:
evName- The event name to add to the collection.
-
getAllEvents
public Iterator getAllEvents()
Remove all event names from theeventsslot collection of this object.
-
-