|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.runtime.JavaMobilePlanExecutor
public class JavaMobilePlanExecutor
A plan executor for JADE-behaviour style plans (with action method called for each step). Plan bodies have to inherit from @link{MobilePlan}.
Constructor Summary | |
---|---|
JavaMobilePlanExecutor()
Create a new threadbased plan executor. |
Method Summary | |
---|---|
void |
cleanup(jadex.runtime.impl.RPlan rplan)
Called on termination of a plan. |
Object |
createPlanBody(jadex.runtime.impl.RPlan plan)
Create the body of a plan. |
jadex.runtime.impl.IREvent |
eventWaitFor(jadex.runtime.impl.RPlan rplan,
jadex.runtime.impl.WaitAbstraction wa)
Block a plan until an event matching the wait abstraction occurs. |
boolean |
executeAbortedStep(jadex.runtime.impl.RPlan plan)
Execute a step of the plans aborted() code. |
boolean |
executeFailedStep(jadex.runtime.impl.RPlan plan)
Execute a step of the plans failed() code. |
boolean |
executePassedStep(jadex.runtime.impl.RPlan plan)
Execute a step of the plans passed() code. |
boolean |
executePlanStep(jadex.runtime.impl.RPlan plan)
Execute a step of a plan. |
Thread |
getExecutionThread(jadex.runtime.impl.RPlan rplan)
Get the executing thread of a plan. |
void |
interruptPlanStep(jadex.runtime.impl.RPlan plan)
Interrupt a plan step during execution. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaMobilePlanExecutor()
Method Detail |
---|
public Object createPlanBody(jadex.runtime.impl.RPlan plan) throws Exception
createPlanBody
in interface IPlanExecutor
plan
- The plan.
Exception
public boolean executePlanStep(jadex.runtime.impl.RPlan plan) throws Exception
executePlanStep
in interface IPlanExecutor
Exception
public boolean executePassedStep(jadex.runtime.impl.RPlan plan) throws Exception
executePassedStep
in interface IPlanExecutor
Exception
public boolean executeFailedStep(jadex.runtime.impl.RPlan plan) throws Exception
executeFailedStep
in interface IPlanExecutor
Exception
public boolean executeAbortedStep(jadex.runtime.impl.RPlan plan) throws Exception
executeAbortedStep
in interface IPlanExecutor
Exception
public void interruptPlanStep(jadex.runtime.impl.RPlan plan)
interruptPlanStep
in interface IPlanExecutor
public void cleanup(jadex.runtime.impl.RPlan rplan)
cleanup
in interface IPlanExecutor
public Thread getExecutionThread(jadex.runtime.impl.RPlan rplan)
getExecutionThread
in interface IPlanExecutor
rplan
- The plan.
public jadex.runtime.impl.IREvent eventWaitFor(jadex.runtime.impl.RPlan rplan, jadex.runtime.impl.WaitAbstraction wa)
eventWaitFor
in interface IPlanExecutor
|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.