Package jadex.bdi.benchmarks
Class StartPeerPlan
- java.lang.Object
-
- jadex.bdiv3x.runtime.Plan
-
- jadex.bdi.benchmarks.StartPeerPlan
-
public class StartPeerPlan extends Plan
Start another peer agent.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jadex.bdiv3x.runtime.Plan
Plan.PlanWaitAbstraction
-
-
Constructor Summary
Constructors Constructor Description StartPeerPlan()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
body()
The body method is called on the instatiated plan instance from the scheduler.protected java.lang.String
createPeerName(int num)
Create a name for a peer with a given number.protected IComponentIdentifier
serviceCreateAgent(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> args)
Create an agent by directly using the CMS service.protected void
serviceDestroyAgent(java.lang.String name)
Destroy an agent by directly using the CMS service.-
Methods inherited from class jadex.bdiv3x.runtime.Plan
aborted, checkNotInAtomic, createExpression, createGoal, createInternalEvent, createMessageEvent, dispatchInternalEvent, dispatchSubgoal, dispatchSubgoalAndWait, dispatchSubgoalAndWait, dispatchTopLevelGoal, endAtomic, fail, fail, fail, failed, getAgent, getBeliefbase, getClock, getComponentDescription, getComponentIdentifier, getComponentName, getDispatchedElement, getEventbase, getException, getExpression, getExpressionbase, getExternalAccess, getGoalbase, getLogger, getParameter, getParameters, getParameterSet, getParameterSets, getPlanbase, getPlanElement, getReason, getRPlan, getScope, getTime, getWaitqueue, hasParameter, hasParameterSet, killAgent, passed, sendMessage, sendMessageAndWait, sendMessageAndWait, startAtomic, toString, waitFor, waitForCondition, waitForCondition, waitForCondition, waitForConditionInline, waitForConditionInline, waitForEver, waitForFactAdded, waitForFactAdded, waitForFactChanged, waitForFactChanged, waitForFactRemoved, waitForFactRemoved, waitForGoalFinished, waitForGoalFinished, waitForGoalFinished, waitForGoalFinished, waitForInternalEvent, waitForInternalEvent, waitForMessageEvent, waitForMessageEvent, waitForReply, waitForReply, waitForReply, waitForReply, waitForTick
-
-
-
-
Method Detail
-
body
public void body()
The body method is called on the instatiated plan instance from the scheduler.
-
createPeerName
protected java.lang.String createPeerName(int num)
Create a name for a peer with a given number.
-
serviceCreateAgent
protected IComponentIdentifier serviceCreateAgent(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> args)
Create an agent by directly using the CMS service.- Parameters:
name
- The agent instance name.args
- The arguments.
-
serviceDestroyAgent
protected void serviceDestroyAgent(java.lang.String name)
Destroy an agent by directly using the CMS service.- Parameters:
name
- The agent instance name.args
- The arguments.
-
-