Package cmion.level3
Class CompetencyManagerRule
- java.lang.Object
-
- cmion.level3.CompetencyManagerRule
-
public class CompetencyManagerRule extends java.lang.Objecta 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).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompetencyExecutionPlangetExecutionPlan()returns the competency execution plan connected with this ruleMindActiongetMindAction()returns the mind action connected with this ruleintgetSpecificity()returns the specificity of this rule.
-
-
-
Constructor Detail
-
CompetencyManagerRule
public CompetencyManagerRule(org.w3c.dom.Node domNode, IArchitecture architecture) throws java.lang.Exceptioncreate 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 "*"
-
-