|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.agent.FIPAOSAgent | +--repserver.RepServer
RepServer implements a proxy for replicant groups.
The RepServer extends the FIPAOSAgent shell.
RepServer manages a set of replicant groups (RepGroup). Each group consisting of a list of the agentids making up the group. The RepServer manages updating The repserver performs three tasks:
Inner Class Summary | |
class |
RepServer.ActivateTask
|
class |
RepServer.CheckRepGroupTask
Check a replicant group. |
class |
RepServer.CreateTask
Create N agents that will register with an existing replication group. |
class |
RepServer.IdleTask
IdleTask. |
class |
RepServer.PingRepGroupsTask
Calls PingRepGroupTask for each RepGroup in this RepServer When that completes it calls CheckRepGroup when that completes UpdateRepGroup. |
class |
RepServer.PingTask
Sends a PING request to the given agent. |
class |
RepServer.PingUpdateTask
manages the PingRepGroupsTask tasks. |
class |
RepServer.RegisterTask
Register an agent |
class |
RepServer.ReplicateTask
Create a replicant group |
class |
RepServer.StateTask
One of the replicant groups active agents wants to send its state. |
class |
RepServer.UpdateAgentTask
Sends a LOADSTATE request to the given agent. |
class |
RepServer.UpdateRepGroupTask
|
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 | |
RepServer(java.lang.String platform,
java.lang.String name,
java.lang.String ownership,
java.lang.String gui)
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. |
int |
getConvs()
|
LocalPostOffice |
getLocalPostOffice()
|
static void |
main(java.lang.String[] args)
Test-harness |
void |
removeConv(fipaos.agent.conversation.Conversation conv)
|
boolean |
sendReply(fipaos.ont.fipa.ACL orig_acl,
java.lang.String performative)
|
boolean |
sendReply(fipaos.ont.fipa.ACL orig_acl,
java.lang.String performative,
java.lang.Object content)
|
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 |
void |
writeMsg(java.lang.String msg)
write a message, either to the GUI or to system.out |
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 |
public RepServer(java.lang.String platform, java.lang.String name, java.lang.String ownership, java.lang.String gui)
Method Detail |
public void shutdown()
shutdown
in class fipaos.agent.FIPAOSAgent
public void activate()
activate
in class fipaos.agent.FIPAOSAgent
public void writeMsg(java.lang.String msg)
public void setLocalPostOffice(LocalPostOffice lpo)
setLocalPostOffice
in interface LocalMsg
public LocalPostOffice getLocalPostOffice()
getLocalPostOffice
in interface LocalMsg
public int getConvs()
public void removeConv(fipaos.agent.conversation.Conversation conv)
public boolean sendReply(fipaos.ont.fipa.ACL orig_acl, java.lang.String performative, java.lang.Object content)
public boolean sendReply(fipaos.ont.fipa.ACL orig_acl, java.lang.String performative)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |