Package org.drools.core.reteoo
Class RuleRemovalContext
- java.lang.Object
-
- org.drools.core.reteoo.RuleRemovalContext
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable
public class RuleRemovalContext extends java.lang.Object implements java.io.ExternalizableThis context class is used during rule removal to ensure network consistency.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuleRemovalContext()RuleRemovalContext(RuleImpl rule)RuleRemovalContext(RuleImpl rule, RuleBase ruleBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleImplgetRule()Returns the reference to the rule being removed from the kbaseRuleBasegetRuleBase()intgetSubRuleIndex()voidreadExternal(java.io.ObjectInput in)voidsetRuleBase(RuleBase ruleBase)voidsetSubRuleIndex(int subRuleIndex)voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
getRule
public RuleImpl getRule()
Returns the reference to the rule being removed from the kbase- Returns:
-
getRuleBase
public RuleBase getRuleBase()
-
setRuleBase
public void setRuleBase(RuleBase ruleBase)
-
getSubRuleIndex
public int getSubRuleIndex()
-
setSubRuleIndex
public void setSubRuleIndex(int subRuleIndex)
-
-