Package cmion.level2

Class CompetencyExecutionPlanStep

java.lang.Object
cmion.level2.CompetencyExecutionPlanStep

public class CompetencyExecutionPlanStep extends Object
represents a step in a competency execution plan, can be instantiated or uninstantiated, see comments in class CompetencyExecutionPlan for more on this distinction.
  • Constructor Details

    • CompetencyExecutionPlanStep

      public CompetencyExecutionPlanStep(Node domNode, IArchitecture architecture) throws Exception
      create a new plan step from a DOM node
      Throws:
      Exception
  • Method Details

    • getInstantiatedCopy

      public CompetencyExecutionPlanStep getInstantiatedCopy(HashMap<String,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 String getID()
      returns the ID of this plan step
    • getCompetencyType

      public String getCompetencyType()
      returns the type/identifier of the competency to invoke in this step
    • getPreconditions

      public ArrayList<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 HashMap<String,String> getCompetencyParameters()
      returns the parameters for the competency to invoke in this step
    • getCompetenciesAlreadyTried

      public 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