Package cmion.level2
Class CompetencyExecutionPlanStep
- java.lang.Object
-
- cmion.level2.CompetencyExecutionPlanStep
-
public class CompetencyExecutionPlanStep extends java.lang.Objectrepresents a step in a competency execution plan, can be instantiated or uninstantiated, see comments in class CompetencyExecutionPlan for more on this distinction.
-
-
Constructor Summary
Constructors Constructor Description CompetencyExecutionPlanStep(org.w3c.dom.Node domNode, IArchitecture architecture)create a new plan step from a DOM node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignExecutionID()java.util.ArrayList<Competency>getCompetenciesAlreadyTried()during execution of a plan this returns a list of competencies that have already been tried to realize this plan step.java.util.HashMap<java.lang.String,java.lang.String>getCompetencyParameters()returns the parameters for the competency to invoke in this stepjava.lang.StringgetCompetencyType()returns the type/identifier of the competency to invoke in this steplonggetExecutionID()returns the executionID of this plan stepjava.lang.StringgetID()returns the ID of this plan stepCompetencyExecutionPlanStepgetInstantiatedCopy(java.util.HashMap<java.lang.String,java.lang.String> mappings)returns an instantiated copy of this plan step.java.util.ArrayList<java.lang.String>getPreconditions()returns the pre conditions (list of ids of other plan steps) for this plan steps, should only be read and not modified externally
-
-
-
Constructor Detail
-
CompetencyExecutionPlanStep
public CompetencyExecutionPlanStep(org.w3c.dom.Node domNode, IArchitecture architecture) throws java.lang.Exceptioncreate a new plan step from a DOM node- Throws:
java.lang.Exception
-
-
Method Detail
-
getInstantiatedCopy
public CompetencyExecutionPlanStep getInstantiatedCopy(java.util.HashMap<java.lang.String,java.lang.String> mappings)
returns an instantiated copy of this plan step. Concrete this means all variables in competency parameters values (indicated by starting with $) will be replaced with a concrete value for that variable, if this value is provided by the mappings given
-
assignExecutionID
public void assignExecutionID()
-
getExecutionID
public long getExecutionID()
returns the executionID of this plan step
-
getID
public java.lang.String getID()
returns the ID of this plan step
-
getCompetencyType
public java.lang.String getCompetencyType()
returns the type/identifier of the competency to invoke in this step
-
getPreconditions
public java.util.ArrayList<java.lang.String> getPreconditions()
returns the pre conditions (list of ids of other plan steps) for this plan steps, should only be read and not modified externally
-
getCompetencyParameters
public java.util.HashMap<java.lang.String,java.lang.String> getCompetencyParameters()
returns the parameters for the competency to invoke in this step
-
getCompetenciesAlreadyTried
public java.util.ArrayList<Competency> getCompetenciesAlreadyTried()
during execution of a plan this returns a list of competencies that have already been tried to realize this plan step. the returned list may be modified externally
-
-