| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjadex.runtime.JavaStandardPlanExecutor
public class JavaStandardPlanExecutor
A plan executor for plans that run on their own thread and therefore may perform blocking wait operations. Plan bodies have to inherit from @link{Plan}.
| Nested Class Summary | |
|---|---|
| static class | JavaStandardPlanExecutor.BodyAbortedAn error thrown to abort the execution of the plan body. | 
| static class | JavaStandardPlanExecutor.PlanTerminatedAn error allowing the agent to terminate the execution of a plan. | 
| Field Summary | |
|---|---|
| static String | MAX_PLANSTEP_TIME | 
| static int | n | 
| Constructor Summary | |
|---|---|
| JavaStandardPlanExecutor(jadex.runtime.impl.RBDIAgent agent)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)Called from a plan. | 
|  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. | 
|  boolean | executeStep(jadex.runtime.impl.RPlan plan,
            String steptype)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 | 
| Field Detail | 
|---|
public static final String MAX_PLANSTEP_TIME
public static int n
| Constructor Detail | 
|---|
public JavaStandardPlanExecutor(jadex.runtime.impl.RBDIAgent agent)
| Method Detail | 
|---|
public Object createPlanBody(jadex.runtime.impl.RPlan plan)
                      throws Exception
createPlanBody in interface IPlanExecutorplan - The plan.
Exception
public boolean executeStep(jadex.runtime.impl.RPlan plan,
                           String steptype)
                    throws Exception
Exception
public boolean executePlanStep(jadex.runtime.impl.RPlan plan)
                        throws Exception
executePlanStep in interface IPlanExecutorException
public boolean executePassedStep(jadex.runtime.impl.RPlan plan)
                          throws Exception
executePassedStep in interface IPlanExecutorException
public boolean executeFailedStep(jadex.runtime.impl.RPlan plan)
                          throws Exception
executeFailedStep in interface IPlanExecutorException
public boolean executeAbortedStep(jadex.runtime.impl.RPlan plan)
                           throws Exception
executeAbortedStep in interface IPlanExecutorExceptionpublic void interruptPlanStep(jadex.runtime.impl.RPlan plan)
interruptPlanStep in interface IPlanExecutorpublic void cleanup(jadex.runtime.impl.RPlan rplan)
cleanup in interface IPlanExecutorpublic Thread getExecutionThread(jadex.runtime.impl.RPlan rplan)
getExecutionThread in interface IPlanExecutorrplan - The plan.
public jadex.runtime.impl.IREvent eventWaitFor(jadex.runtime.impl.RPlan rplan,
                                               jadex.runtime.impl.WaitAbstraction wa)
eventWaitFor in interface IPlanExecutorrplan - The planinstance.wa - The wait abstraction.| 
 | 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.