ihelp
Class LoadAgents

java.lang.Object
  |
  +--fipaos.agent.FIPAOSAgent
        |
        +--ihelp.LoadAgents
All Implemented Interfaces:
fipaos.agent.conversation.ConversationListener

public class LoadAgents
extends fipaos.agent.FIPAOSAgent

Load Agents for the IHELP simulation


Inner Class Summary
 class LoadAgents.IdleTask
          Idletask, starts the loading process
 class LoadAgents.SendReqTask
          send requests to the RepServers to set up the application
 
Inner classes inherited from class fipaos.agent.FIPAOSAgent
fipaos.agent.FIPAOSAgent.TopLevelHandlerTask
 
Fields inherited from class fipaos.agent.FIPAOSAgent
_database_profile, _registered_with, _state, _tm
 
Constructor Summary
LoadAgents(java.lang.String platform, java.lang.String name, java.lang.String ownership)
          Agent constructor - sets up an IdleTask as the default ListenerTask for incoming messages, and starts off registration with the AMS and DF
 
Method Summary
 void activate()
          This method is invoked when GUI should be shown - generally this is invoked by the AgentLoader when the Agent is in the List of running Agents - the default implementation in FIPAOSAgent does nothing.
static void main(java.lang.String[] args)
          Test-harness
 void shutdown()
          Invoked when this Agent is about to be shutdown - this overrides the shutdown() method in the FIPAOSAgent class to enable the TestAgentGUI associated with this TestAgent to be removed
 
Methods inherited from class fipaos.agent.FIPAOSAgent
addNewProtocol, deregisterWithAMS, deregisterWithDF, forward, forward, getAID, getCM, getCurrentConversation, getHAP, getLocalAMS, getLocalAMSAID, getLocalDF, getLocalDFAID, getNewConversation, getOwnership, getPlatformProfile, getProfile, getState, isShutdown, knowsProtocol, notify, notify, notifyDone, notifyError, notifyMessageInEndedConversation, notifyMessageUndeliverable, notifyTimeout, registeredWith, registeredWithAMS, registeredWithDF, registerWithAMS, registerWithAMS, registerWithAMS, registerWithAMS, registerWithDF, registerWithDF, registerWithDF, registerWithDF, sendNotUnderstood, sendNotUnderstood, setListenerTask, setMessageSender, startPushing, waitForPushLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadAgents

public LoadAgents(java.lang.String platform,
                  java.lang.String name,
                  java.lang.String ownership)
Agent constructor - sets up an IdleTask as the default ListenerTask for incoming messages, and starts off registration with the AMS and DF
Method Detail

shutdown

public void shutdown()
Invoked when this Agent is about to be shutdown - this overrides the shutdown() method in the FIPAOSAgent class to enable the TestAgentGUI associated with this TestAgent to be removed
Overrides:
shutdown in class fipaos.agent.FIPAOSAgent

activate

public void activate()
This method is invoked when GUI should be shown - generally this is invoked by the AgentLoader when the Agent is in the List of running Agents - the default implementation in FIPAOSAgent does nothing.
Overrides:
activate in class fipaos.agent.FIPAOSAgent

main

public static void main(java.lang.String[] args)
Test-harness