Class RuleRemovalContext

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class RuleRemovalContext
    extends java.lang.Object
    implements java.io.Externalizable
    This context class is used during rule removal to ensure network consistency.
    See Also:
    Serialized Form
    • Constructor Detail

      • RuleRemovalContext

        public RuleRemovalContext()
      • RuleRemovalContext

        public RuleRemovalContext​(org.drools.base.definitions.rule.impl.RuleImpl rule)
      • RuleRemovalContext

        public RuleRemovalContext​(org.drools.base.definitions.rule.impl.RuleImpl rule,
                                  InternalRuleBase ruleBase)
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • getRule

        public org.drools.base.definitions.rule.impl.RuleImpl getRule()
        Returns the reference to the rule being removed from the kbase
        Returns:
      • getSubRuleIndex

        public int getSubRuleIndex()
      • setSubRuleIndex

        public void setSubRuleIndex​(int subRuleIndex)