public abstract class AbstractMultipleAgentsPlan
extends jadex.bdiv3x.runtime.Plan
Modifier and Type | Field and Description |
---|---|
protected int |
agent_cnt
The intended number of agents.
|
protected java.util.List<jadex.bridge.IComponentIdentifier> |
agents
The list of agents.
|
Constructor and Description |
---|
AbstractMultipleAgentsPlan() |
Modifier and Type | Method and Description |
---|---|
void |
aborted()
The plan was aborted (because of conditional goal
success or termination from outside).
|
protected boolean |
assureTest(jadex.base.test.TestReport tr)
Assure that all agents needed for test are there.
|
protected java.util.List<jadex.bridge.IComponentIdentifier> |
createAgents(java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object>[] args)
Create agents of a given type with given arguments.
|
protected java.util.List<jadex.bridge.IComponentIdentifier> |
createAgents(java.lang.String type,
java.lang.String config,
java.util.Map<java.lang.String,java.lang.Object>[] args)
Create agents of a given type with given arguments.
|
protected void |
destroyAgents()
Destroy the agents.
|
void |
failed()
The failed method is called on plan failure/abort.
|
void |
passed()
The passed method is called on plan success.
|
body, checkNotInAtomic, createExpression, createGoal, createInternalEvent, createMessageEvent, dispatchInternalEvent, dispatchSubgoal, dispatchSubgoalAndWait, dispatchSubgoalAndWait, dispatchTopLevelGoal, endAtomic, fail, fail, fail, 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, 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
protected java.util.List<jadex.bridge.IComponentIdentifier> agents
protected int agent_cnt
protected java.util.List<jadex.bridge.IComponentIdentifier> createAgents(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object>[] args)
type
- The type.args
- The args.protected java.util.List<jadex.bridge.IComponentIdentifier> createAgents(java.lang.String type, java.lang.String config, java.util.Map<java.lang.String,java.lang.Object>[] args)
type
- The type.config
- The configuration.args
- The args.protected void destroyAgents()
protected boolean assureTest(jadex.base.test.TestReport tr)
tr
- The test report.public void passed()
passed
in class jadex.bdiv3x.runtime.Plan
public void failed()
failed
in class jadex.bdiv3x.runtime.Plan
public void aborted()
aborted
in class jadex.bdiv3x.runtime.Plan