jadex.testcases
Class ResultPlan
java.lang.Object
jadex.runtime.AbstractPlan
jadex.runtime.Plan
jadex.testcases.ResultPlan
- All Implemented Interfaces:
- Serializable
- public class ResultPlan
- extends Plan
This plan waits for a specified time,
sets the assigned result as goal state and finishes.
- See Also:
- Serialized Form
Constructor Summary |
ResultPlan(long wait,
boolean success)
Create a new result plan. |
ResultPlan(long wait,
boolean success,
Object result)
Create a new result plan. |
ResultPlan(Object result)
Create a new result plan. |
Method Summary |
void |
body()
The plan body. |
Methods inherited from class jadex.runtime.Plan |
aborted, dispatchSubgoalAndWait, dispatchSubgoalAndWait, failed, getInitialEvent, passed, sendMessageAndWait, sendMessageAndWait, waitFor, waitFor, waitFor, waitForBeliefChange, waitForBeliefChange, waitForBeliefSetChange, waitForBeliefSetChange, waitForCondition, waitForCondition, waitForCondition, waitForCondition, waitForFactAdded, waitForFactAdded, waitForFactAddedOrRemoved, waitForFactAddedOrRemoved, waitForFactRemoved, waitForFactRemoved, waitForGoal, waitForGoal, waitForInternalEvent, waitForInternalEvent, waitForMessageEvent, waitForMessageEvent, waitForReply, waitForReply, waitForSubgoal, waitForSubgoal |
Methods inherited from class jadex.runtime.AbstractPlan |
createCondition, createCondition, createExpression, createExpression, createGoal, createInternalEvent, createInternalEvent, createMessageEvent, createMessageEventFromNative, createQuery, dispatchInternalEvent, dispatchSubgoal, dispatchTopLevelGoal, endAtomic, fail, getAgentName, getBeliefbase, getCondition, getEventbase, getException, getExpression, getExpressionbase, getExternalAccess, getGoalbase, getLogger, getName, getParameter, getParameters, getParameterSet, getParameterSets, getPlanbase, getPropertybase, getQuery, getRootGoal, getRPlan, getScope, getWaitqueue, hasParameter, hasParameterSet, isAbortedOnSuccess, killAgent, sendMessage, setException, startAtomic, toString |
ResultPlan
public ResultPlan(Object result)
- Create a new result plan.
- Parameters:
result
- The result value.
ResultPlan
public ResultPlan(long wait,
boolean success)
- Create a new result plan.
- Parameters:
wait
- The waiting time.success
- The goal state after execution.
ResultPlan
public ResultPlan(long wait,
boolean success,
Object result)
- Create a new result plan.
- Parameters:
wait
- The waiting time.success
- The goal state after execution.
body
public void body()
- The plan body.
Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples. Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.