public class CompetencyExecutionPlan
extends java.lang.Object
| Constructor | Description |
|---|---|
CompetencyExecutionPlan(IArchitecture architecture) |
creates a new competencyExecutionPlan with no steps
|
CompetencyExecutionPlan(org.w3c.dom.Node domNode,
IArchitecture architecture) |
creates a new competencyExecutionPlan from a DOM node
|
| Modifier and Type | Method | Description |
|---|---|---|
CompetencyExecutionPlan |
getInstantiatedCopy(java.util.HashMap<java.lang.String,java.lang.String> mappings,
MindAction mindAction) |
returns an instantiated copy of this competency execution plan
|
MindAction |
getMindAction() |
returns the mind action that this plan is executing
|
int |
getNoOfSteps() |
returns the no of steps in the plan
|
CompetencyExecutionPlanStep |
getPlanStep(java.lang.String id) |
returns the plan step with the given id or null if such a step does not exist
|
java.util.Collection<CompetencyExecutionPlanStep> |
getPlanSteps() |
returns all plan steps as a collection, do not modify this collection
and do only use this method on instantiated competencyExecution Plans
|
java.util.ArrayList<CompetencyExecutionPlanStep> |
getStepsAlreadyCompleted() |
returns the steps of the plan that have already been completed,
this list may be modified outside of the class
|
java.util.ArrayList<CompetencyExecutionPlanStep> |
getStepsCurrentlyExecuted() |
returns the steps of the plan that are currently being executed,
this list may be modified outside of the class
|
boolean |
isCurrentlyExecuting() |
returns whether this plan is currently executing (only relevant for instantiated plans)
|
boolean |
isInstantiated() |
returns whether this plan is instantiated
|
void |
startExecution() |
the competency execution system should call this when it starts executing a plan
(only relevant for instantiated plans)
|
void |
stopExecution() |
the competency execution system should call this when it has finished executing a plan
(both in case of plan failure and success), (only relevant for instantiated plans)
|
public CompetencyExecutionPlan(IArchitecture architecture)
public CompetencyExecutionPlan(org.w3c.dom.Node domNode,
IArchitecture architecture)
throws java.lang.Exception
java.lang.Exceptionpublic CompetencyExecutionPlan getInstantiatedCopy(java.util.HashMap<java.lang.String,java.lang.String> mappings, MindAction mindAction)
mappings - the mappings for variables to use for instantiationmindAction - the mind action which this plan is executingpublic int getNoOfSteps()
public java.util.Collection<CompetencyExecutionPlanStep> getPlanSteps()
public CompetencyExecutionPlanStep getPlanStep(java.lang.String id)
public java.util.ArrayList<CompetencyExecutionPlanStep> getStepsAlreadyCompleted()
public java.util.ArrayList<CompetencyExecutionPlanStep> getStepsCurrentlyExecuted()
public boolean isInstantiated()
public boolean isCurrentlyExecuting()
public void startExecution()
public void stopExecution()
public MindAction getMindAction()