fipaos.tool
Class IOTestAgent

java.lang.Object
  |
  +--fipaos.agent.FIPAOSAgent
        |
        +--fipaos.tool.IOTestAgent
All Implemented Interfaces:
ConversationListener

public class IOTestAgent
extends FIPAOSAgent

Simple test agent for testing interoperability. It has a GUI that controls the actions.


Inner classes inherited from class fipaos.agent.FIPAOSAgent
FIPAOSAgent.TopLevelHandlerTask
 
Fields inherited from class fipaos.agent.FIPAOSAgent
_database_profile, _registered_with, _state, _tm
 
Constructor Summary
IOTestAgent(java.lang.String platform_profile_location, java.lang.String name, java.lang.String agent_owner)
          IOTestAgent constructor.
 
Method Summary
 void activate()
          Invoked when GUI should be shown
 void send(Message msg)
          Send message on behalf of GUI
 void shutdown()
          Shutdown Agent & GUI
 
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

IOTestAgent

public IOTestAgent(java.lang.String platform_profile_location,
                   java.lang.String name,
                   java.lang.String agent_owner)
IOTestAgent constructor. Normal agent registering, calling VisualACLParser. Then starts to wait for the button to be pressed.
Parameters:
name - java.lang.String agent's name
agent_owner - java.lang.String agent's owner (usually the same)
ior - True if this agent should use agent@IOR:.. addressing, false otherwise
Method Detail

send

public void send(Message msg)
Send message on behalf of GUI

shutdown

public void shutdown()
Shutdown Agent & GUI
Overrides:
shutdown in class FIPAOSAgent

activate

public void activate()
Invoked when GUI should be shown
Overrides:
activate in class FIPAOSAgent