|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.agent.task.Task | +--fipaos.platform.df.SubscriptionHandlerTask
This Task provides a mechanism for informing subscribed Agents about the something that has changed within the DF - DFListenerTask is the counterpart to this Task.
Currently this Task (and its counterpart) only support intra-platform communication over a transport which maintains message content as objects (i.e. RMI).
Fields inherited from class fipaos.agent.task.Task |
_children, _lock, _owner, _tm |
Constructor Summary | |
SubscriptionHandlerTask(Conversation conv)
Creates a SubscribeAction - once the Task has started, it will attempt to "agree" and "inform" the subscribing Agent that the subscription has been started OK |
Method Summary | |
void |
handleCancel(Conversation conv)
Invoked when agree messages are received - generally indicates that DF will allow us to subscribe |
void |
handleNotUnderstood(Conversation conv)
Deal with not-understood messages here |
void |
startTask()
Invoked when the Task starts - sends subscription message to target DF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubscriptionHandlerTask(Conversation conv)
conv
- Conversation associated with this subscriptionMethod Detail |
public void startTask()
startTask
in class Task
public void handleCancel(Conversation conv)
conv
- The subscription conversationpublic void handleNotUnderstood(Conversation conv)
handleNotUnderstood
in class Task
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |