Package org.drools.core.reteoo
Class RuleRemovalContext
- java.lang.Object
-
- org.drools.core.reteoo.RuleRemovalContext
-
- All Implemented Interfaces:
Externalizable,Serializable
public class RuleRemovalContext extends Object implements Externalizable
This 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(ObjectInput in)voidsetRuleBase(RuleBase ruleBase)voidsetSubRuleIndex(int subRuleIndex)voidwriteExternal(ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
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)
-
-