repserver
Class RepProxy

java.lang.Object
  |
  +--fipaos.agent.FIPAOSAgent
        |
        +--repserver.RepProxy
All Implemented Interfaces:
fipaos.agent.conversation.ConversationListener, LocalMsg

public class RepProxy
extends fipaos.agent.FIPAOSAgent
implements LocalMsg

RepProxy is the message proxy for a replicant group. Each RepGroup has one. RepProxy waits (IdleTask) for messages either from one of its replicant group or from another agent in the MAS. Messages from agents in the replicant group arrive as PROPAGATE performatives.


Inner Class Summary
 class RepProxy.ConvHandlerTask
          Handle a conversation
 class RepProxy.IdleTask
          IdleTask.
 
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
RepProxy(java.lang.String platform, java.lang.String name, java.lang.String ownership, java.lang.String agent_type, RepGroup repgroup)
          constructor - sets up an IdleTask as the default ListenerTask for incoming messages, and starts off registration with the AMS and DF
 
Method Summary
 int getConvs()
           
 LocalPostOffice getLocalPostOffice()
           
 fipaos.ont.fipa.fipaman.AgentID getReceiver(fipaos.ont.fipa.ACL acl)
          retreive the replytoAID.
static void main(java.lang.String[] args)
          A main method to enable the agent to be run from the command line.
 void setLocalPostOffice(LocalPostOffice lpo)
           
 void shutdown()
          Invoked when this Agent is about to be shutdown - this overrides the shutdown() method in the FIPAOSAgent class to enable the RepServerGUI associated with this RepServer to be removed
 
Methods inherited from class fipaos.agent.FIPAOSAgent
activate, 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

RepProxy

public RepProxy(java.lang.String platform,
                java.lang.String name,
                java.lang.String ownership,
                java.lang.String agent_type,
                RepGroup repgroup)
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 RepServerGUI associated with this RepServer to be removed
Overrides:
shutdown in class fipaos.agent.FIPAOSAgent

getReceiver

public fipaos.ont.fipa.fipaman.AgentID getReceiver(fipaos.ont.fipa.ACL acl)
retreive the replytoAID. Convenience method

getConvs

public int getConvs()

setLocalPostOffice

public void setLocalPostOffice(LocalPostOffice lpo)
Specified by:
setLocalPostOffice in interface LocalMsg

getLocalPostOffice

public LocalPostOffice getLocalPostOffice()
Specified by:
getLocalPostOffice in interface LocalMsg

main

public static void main(java.lang.String[] args)
A main method to enable the agent to be run from the command line. The agent takes two command line parameters - the platform profile location, which is set up by the SetupFIPAOS.bat file to be in the system variable %PLATFORM%, and the agent name.