Package org.drools.core.reteoo
Class RuleRemovalContext
java.lang.Object
org.drools.core.reteoo.RuleRemovalContext
- All Implemented Interfaces:
Externalizable,Serializable
This context class is used during rule removal to ensure
network consistency.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRuleRemovalContext(RuleImpl rule) RuleRemovalContext(RuleImpl rule, InternalRuleBase ruleBase) -
Method Summary
Modifier and TypeMethodDescriptiongetRule()Returns the reference to the rule being removed from the kbaseintvoidvoidsetRuleBase(InternalRuleBase ruleBase) voidsetSubRuleIndex(int subRuleIndex) void
-
Constructor Details
-
RuleRemovalContext
public RuleRemovalContext() -
RuleRemovalContext
-
RuleRemovalContext
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getRule
Returns the reference to the rule being removed from the kbase- Returns:
-
getRuleBase
-
setRuleBase
-
getSubRuleIndex
public int getSubRuleIndex() -
setSubRuleIndex
public void setSubRuleIndex(int subRuleIndex)
-