Class Activation


  • public class Activation
    extends java.lang.Object
    An activation is a rule and an associated fact tuple which represents a full match. Activations are created from terminal nodes and will be added to the agenda.
    • Field Detail

      • rule

        protected IRule rule
        The rule.
      • state

        protected IOAVState state
        The state.
      • priority

        protected int priority
        The priority.
      • inited

        protected boolean inited
    • Method Detail

      • getRule

        public IRule getRule()
        Get the rule.
        Returns:
        The rule.
      • getVariableAssignments

        public IVariableAssignments getVariableAssignments()
        Get the variable assignments.
      • getPriority

        public int getPriority()
        Get the priority.
        Returns:
        The priority.
      • execute

        public void execute()
        Execute the activation.
      • hashCode

        public int hashCode()
        Get the hashcode of this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hashcode.
      • equals

        public boolean equals​(java.lang.Object o)
        Test if two activations are equal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - The object to test.
      • toString

        public java.lang.String toString()
        Create a string representation of the activation.
        Overrides:
        toString in class java.lang.Object