| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
fipaos.agent.FIPAOSAgent | +--fipaos.tutorial.emarkets.agent.manager.MarketManagerAgent
This class represents an agent that manages an e-marketplace. It provides a subscription management service that can accept subscriptions from buyers and sellers interested in forming e-markets. The MarketManagerAgent also provides an escrow service to validate buyer and seller claims of deals made.
Inner classes inherited from class fipaos.agent.FIPAOSAgent |
FIPAOSAgent.TopLevelHandlerTask |
Fields inherited from class fipaos.agent.FIPAOSAgent |
_registered_with, _state |
Constructor Summary | |
MarketManagerAgent(String platform_profile, String name, String owner) Constructs a MarketManagerAgent |
Method Summary | |
void | dealWithEscrowProtocolRequest(Object[] request) Handles an escrow request from a buyer or a seller |
void | dealWithFIPASubscribeCancel(Object cancel) Handles an unsubscription request from a buyer or seller agent |
void | dealWithFIPASubscribeSubscribe(Object[] subscribe) Handles a subscription request from a buyer or seller agent |
void | doneEmarketsTimerTask(Object obj) |
void | doneEscrowProtocolParticipantHandlerTask(Task t) Callback method invoked when an escrow handling task has completed |
void | emarketControlGUIClosed() Invoked when the emarket control GUI is closed. |
static void | main(String[] args) A main method to enable the agent to be run from the command line. |
void | saveReports() |
void | sendEscrowFailure(EscrowMessage escrow_msg, EscrowProtocolParticipantHandlerTask handler) |
void | sendEscrowInform(EscrowMessage escrow_msg, EscrowProtocolParticipantHandlerTask handler) |
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 | startEmarket(MarketplaceMap map) Starts an emarket by sending emarket and target messages to the subscribed buyer and seller agents |
void | startEscrowTimer(EscrowDataManager edm, String deal_id) |
void | subscriberManagerGUIClosed() This method is invoked when the close icon of the subscription manager GUI is pressed. |
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 MarketManagerAgent(String platform_profile, String name, String owner)
Method Detail |
public void dealWithEscrowProtocolRequest(Object[] request)
public void dealWithFIPASubscribeCancel(Object cancel)
public void dealWithFIPASubscribeSubscribe(Object[] subscribe)
public void doneEmarketsTimerTask(Object obj)
public void doneEscrowProtocolParticipantHandlerTask(Task t)
public void emarketControlGUIClosed()
public static void main(String[] args)
public void saveReports()
public void sendEscrowFailure(EscrowMessage escrow_msg, EscrowProtocolParticipantHandlerTask handler)
public void sendEscrowInform(EscrowMessage escrow_msg, EscrowProtocolParticipantHandlerTask handler)
public synchronized void shutdown()
public void startEmarket(MarketplaceMap map)
public void startEscrowTimer(EscrowDataManager edm, String deal_id)
public void subscriberManagerGUIClosed()
Association Links |
to Class java.util.Vector
to Class java.util.Vector
to Class java.util.Vector
to Class fipaos.tutorial.emarkets.subscribe.gui.FIPASubscribeParticipantGUI
to Class java.util.Hashtable
to Class fipaos.tutorial.emarkets.agent.manager.gui.EmarketControlGUI
to Class java.util.Hashtable
to Class fipaos.tutorial.emarkets.message.MarketplaceMap
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |