fipaos.platform.dfgui.swing
Class SwingDFGUIAgent

java.lang.Object
  |
  +--fipaos.agent.FIPAOSAgent
        |
        +--fipaos.platform.dfgui.DFGUIAgent
              |
              +--fipaos.platform.dfgui.swing.SwingDFGUIAgent
All Implemented Interfaces:
ConversationListener

public class SwingDFGUIAgent
extends DFGUIAgent

This is the DF GUI agent that uses Java Swing GUI to display controls for DF(s).


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
SwingDFGUIAgent(java.lang.String platform_profile, java.lang.String name, java.lang.String owner)
          Creates new SwingDFGUI.
 
Method Summary
 void activate()
          Invoked when GUI should be shown
 void deregistered(AgentID aid, DFAgentDescription description)
          Notification from the super class when agent has deregistered.
 void modified(AgentID aid, DFAgentDescription description)
          Notification from the super class when agent has been modified.
 void registered(AgentID aid, DFAgentDescription description)
          Notification from the super class when agent has been registered.
 void shutdown()
          Method to cleanly kill off Agent
 
Methods inherited from class fipaos.platform.dfgui.DFGUIAgent
deregisterAgent, federatedSearch, listAgents, modifyAgent, registerAgent, stopListeningToDF
 
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

SwingDFGUIAgent

public SwingDFGUIAgent(java.lang.String platform_profile,
                       java.lang.String name,
                       java.lang.String owner)
Creates new SwingDFGUI. Instansiates a DFGUIFrame that will start up the actual GUI.
Parameters:
platform_profile - location of the platform profile
name - name of the agent
owner - owner of the agent
Method Detail

shutdown

public void shutdown()
Method to cleanly kill off Agent
Overrides:
shutdown in class DFGUIAgent

activate

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

registered

public void registered(AgentID aid,
                       DFAgentDescription description)
Notification from the super class when agent has been registered.
Overrides:
registered in class DFGUIAgent
Parameters:
aid - AID of the DF this happens with
description - the description of the agent registered

deregistered

public void deregistered(AgentID aid,
                         DFAgentDescription description)
Notification from the super class when agent has deregistered.
Overrides:
deregistered in class DFGUIAgent
Parameters:
aid - AID of the DF this agent has deregisted from
description - description of the agent deregistered

modified

public void modified(AgentID aid,
                     DFAgentDescription description)
Notification from the super class when agent has been modified.
Overrides:
modified in class DFGUIAgent
Parameters:
aid - AID of the DF the agent has been modified on
description - the description of the modified agent