| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
fipaos.agent.FIPAOSAgent | +--fipaos.tutorial.emarkets.agent.SubscribingAgent
Abstract class that provides the ability to subscribe to another agent using the FIPA subscribe protocol
Inner classes inherited from class fipaos.agent.FIPAOSAgent |
FIPAOSAgent.TopLevelHandlerTask |
Fields inherited from class fipaos.agent.FIPAOSAgent |
_registered_with, _state |
Constructor Summary | |
SubscribingAgent(String platform_profile, String name, String owner, String agent_type) Constructs a SubscribingAgent |
Method Summary | |
void | addAgent(AgentID agent_id) An extending subclass must implement the missing methods from the interfaces implemented by this SubscribingAgent When the subclass is notified of a successful subscription it makes a callback to its parent (this) via this method |
void | doneFIPASubscribeInitiatorHandlerTask(Object obj) Callback method that is invoked when the task used to make subscriptions has finished. |
void | doneFIPASubscribeInitiatorHandlerTask(Task t) Callback method that is invoked when the task used to make subscriptions has finished. |
AgentID | getSubscribedWith() Returns the AgentID of the agent that this agent is currently subscribed with |
Vector | searchForAgents(String service_type) This method is called by the gui to request that this agent performs a DF search to locate agents which are offering a service of the given type |
synchronized void | shutdown() Shuts down the agent by first deregistering with the DF and AMS (if registered) and then invoking shutdown() on the FIPAOSAgent shell |
void | subscribe(AgentID agent) Attempts to subscribe to the specified agent using the FIPA subscribe protocol |
void | subscriberGUIClosed() Callback from the subscriber GUI to inform this agent that its close icon was pressed |
void | unsubscribe(AgentID agent) Unsubscribe this agent from the specified agent |
Methods inherited from class fipaos.agent.FIPAOSAgent |
activate, forward, forward, getAID, getCurrentConversation, getHAP, getLocalAMS, getLocalAMSAID, getLocalDF, getLocalDFAID, getNewConversation, getOwnership, getPlatformProfile, getProfile, getState, isShutdown, notify, notify, notifyDone, notifyError, notifyMessageInEndedConversation, notifyMessageUndeliverable, notifyTimeout, sendNotUnderstood, sendNotUnderstood, setMessageSender, waitForPushLock |
Constructor Detail |
public SubscribingAgent(String platform_profile, String name, String owner, String agent_type)
Method Detail |
public void addAgent(AgentID agent_id)
public void doneFIPASubscribeInitiatorHandlerTask(Object obj)
public void doneFIPASubscribeInitiatorHandlerTask(Task t)
public AgentID getSubscribedWith()
public Vector searchForAgents(String service_type)
public synchronized void shutdown()
public void subscribe(AgentID agent)
public void subscriberGUIClosed()
public void unsubscribe(AgentID agent)
Association Links |
to Class java.lang.String
to Class fipaos.ont.fipa.fipaman.AgentID
to Class fipaos.tutorial.emarkets.agent.InitiatorGUI
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |