|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.cougaar.util.GenericStateModelAdapter
org.cougaar.core.blackboard.BlackboardClientComponent
org.cougaar.core.plugin.ComponentPlugin
org.cougaar.demo.mesh.MeshPlugin
public class MeshPlugin
This plugin is a relay scalability test that creates an arbitrarily large "mesh" of relays.
For example, this plugin can be configured to create a fully-connected "star" network formation:
agent "Peer0" sends to "Peer1" and "Peer2" agent "Peer1" sends to "Peer0" and "Peer2" agent "Peer2" sends to "Peer0" and "Peer1"
Other topologies can be created, e.g. chains, rings, trees, etc. The only requirement is that, if agent "A" lists agent "B" as a target, then "B" must also list "A" as a target.
Each relay iteration waits until the prior iteration has completed, making
it easy to identify bottlenecks and dropped/duplicate relays. Each agent
logs
Completed all N iterations
once all maxIterations have succeeded.
Plugin parameters:
Peer0, Peer1, Peer2
Note that this agent must be listed as one of the targets, otherwise
it will not send any relays. This "self" requirement makes it easy
to enable/disable many agents using a global-replace in the configuration
file.System.exit(int) when all maxIterations have been
completed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cougaar.core.blackboard.BlackboardClient |
|---|
org.cougaar.core.blackboard.BlackboardClient.Local |
| Field Summary |
|---|
| Fields inherited from class org.cougaar.core.blackboard.BlackboardClientComponent |
|---|
agentId, agentIdentificationService, alarmService, blackboard, blackboardClientName |
| Fields inherited from interface org.cougaar.core.plugin.PluginBase |
|---|
INSERTION_POINT |
| Fields inherited from interface org.cougaar.util.GenericStateModel |
|---|
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED |
| Fields inherited from interface org.cougaar.core.blackboard.BlackboardClient |
|---|
current |
| Constructor Summary | |
|---|---|
MeshPlugin()
|
|
| Method Summary | |
|---|---|
protected void |
execute()
This method is called whenever a subscription changes or alarm fires. |
void |
load()
This method is called when the agent is created |
protected void |
setupSubscriptions()
This method is called when the agent starts. |
| Methods inherited from class org.cougaar.core.plugin.ComponentPlugin |
|---|
getConfigFinder |
| Methods inherited from class org.cougaar.core.blackboard.BlackboardClientComponent |
|---|
currentTimeMillis, cycle, getAgentIdentifier, getAlarmService, getBindingSite, getBlackboardClientName, getBlackboardService, getMessageAddress, getParameter, getParameters, getServiceBroker, halt, precycle, requestCycle, resume, setAgentIdentificationService, setAlarmService, setBindingSite, setBlackboardService, setParameter, setSchedulerService, setServiceBroker, setSuicideService, shouldExecute, start, stop, suspend, toString, unload, wasAwakened |
| Methods inherited from class org.cougaar.util.GenericStateModelAdapter |
|---|
getModelState, initialize, transitState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.cougaar.util.GenericStateModel |
|---|
getModelState, halt, initialize, resume, start, stop, suspend, unload |
| Constructor Detail |
|---|
public MeshPlugin()
| Method Detail |
|---|
public void load()
load in interface org.cougaar.util.GenericStateModelload in class org.cougaar.core.blackboard.BlackboardClientComponentprotected void setupSubscriptions()
setupSubscriptions in class org.cougaar.core.plugin.ComponentPluginprotected void execute()
execute in class org.cougaar.core.plugin.ComponentPlugin
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||