| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
fipaos.agent.task.Task | +--fipaos.platform.df.DFListenerTask
This Task provides a mechanism for listening to events occuring to a particular DF.
Currently this Task (and its counterpart) only support intra-platform communication
over a transport which maintains message content as objects (i.e. RMI).
Constructor Summary | |
DFListenerTask() Creates a DFListenerTask - once the Task has started, it will attempt to subscribe to events from the given DF and forward them to the given DFListener |
Method Summary | |
void | handleInform(Conversation conv) Invoked when an inform is received - either indicates that the subscription has been setup OK, or indicates an event has occured that meets the requirements of the original subscription request. |
void | handleNotUnderstood(Conversation conv) Deal with not-understood messages here. |
void | handleRefuse(Conversation conv) Invoked when the DF refuses subscription. |
void | init(DFListener listener, AgentID df, Task idle_task) Initialises the DFListenerManager - should be invoked BEFORE newTask() is invoked on an instance of DFListenerManager. |
void | startTask() Invoked when the Task starts - sends subscription message to target DF |
void | stopListening() When invoked, causes the subscription with the DF to be cancelled |
boolean | subscribedOK() Indicates if this DFListenerTask has been succesfull in subscribing. |
Constructor Detail |
public DFListenerTask()
Method Detail |
public void handleInform(Conversation conv)
public void handleNotUnderstood(Conversation conv)
public void handleRefuse(Conversation conv)
public void init(DFListener listener, AgentID df, Task idle_task)
public void startTask()
public void stopListening()
public boolean subscribedOK()
Association Links |
to Class fipaos.ont.fipa.fipaman.AgentID
to Class java.lang.String
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |