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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalKnowledgeBasegetKnowledgeBase()RuleImplgetRule()Returns the reference to the rule being removed from the kbasevoidreadExternal(ObjectInput in)voidsetKnowledgeBase(InternalKnowledgeBase kBase)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
RuleRemovalContext
public RuleRemovalContext()
-
RuleRemovalContext
public RuleRemovalContext(RuleImpl rule)
-
-
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:
-
getKnowledgeBase
public InternalKnowledgeBase getKnowledgeBase()
-
setKnowledgeBase
public void setKnowledgeBase(InternalKnowledgeBase kBase)
-
-