Package cmion.level3

Class CompetencyManagerRule

java.lang.Object
cmion.level3.CompetencyManagerRule

public class CompetencyManagerRule extends Object
a competency manager rule maps a mind action and the state of available competencies to a CompetencyExecutionPlan
  • Constructor Details

    • CompetencyManagerRule

      public CompetencyManagerRule(Node domNode, IArchitecture architecture) throws Exception
      create a new competency manager rule from a dom node (originating form the parsed competeny manager rules xml file). An exception is thrown when xml is malformed
      Throws:
      Exception
  • Method Details

    • getExecutionPlan

      public CompetencyExecutionPlan getExecutionPlan()
      returns the competency execution plan connected with this rule
    • getMindAction

      public MindAction getMindAction()
      returns the mind action connected with this rule
    • getSpecificity

      public int getSpecificity()
      returns the specificity of this rule. A rule is more specific, the less "*" matches it has. We thus define maximum specificity as 0, and subtract 1 for every "*"