Package cmion.level3

Class CompetencyManagerRule


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

      Constructors 
      Constructor Description
      CompetencyManagerRule​(org.w3c.dom.Node domNode, IArchitecture architecture)
      create a new competency manager rule from a dom node (originating form the parsed competeny manager rules xml file).
    • Constructor Detail

      • CompetencyManagerRule

        public CompetencyManagerRule​(org.w3c.dom.Node domNode,
                                     IArchitecture architecture)
                              throws java.lang.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:
        java.lang.Exception
    • Method Detail

      • 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 "*"