Package cmion.level2

Class CompetencyExecutionPlanStep


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assignExecutionID()  
      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 step
      java.lang.String getCompetencyType()
      returns the type/identifier of the competency to invoke in this step
      long getExecutionID()
      returns the executionID of this plan step
      java.lang.String getID()
      returns the ID of this plan step
      CompetencyExecutionPlanStep getInstantiatedCopy​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompetencyExecutionPlanStep

        public CompetencyExecutionPlanStep​(org.w3c.dom.Node domNode,
                                           IArchitecture architecture)
                                    throws java.lang.Exception
        create 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