public abstract class CompiledNetwork extends Object implements ObjectSink
Constructor and Description |
---|
CompiledNetwork() |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns the unique id that represents the node in the Rete network
|
RuleBasePartitionId |
getPartitionId()
Returns the partition ID to which this node belongs to
|
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
protected abstract void |
setNetworkNodeReference(NetworkNode networkNode)
Generated subclasses need to implement this method to set member variables based on the specified
NetworkNode.
|
void |
setObjectTypeNode(ObjectTypeNode objectTypeNode)
Sets the OTN for this network.
|
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assertObject, byPassModifyToBetaNode, modifyObject
getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getType, isAssociatedWith, thisNodeEquals
public int getId()
getId
in interface NetworkNode
public RuleBasePartitionId getPartitionId()
getPartitionId
in interface NetworkNode
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- the stream to write the object toIOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- the stream to read data from in order to restore the objectIOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public final void setObjectTypeNode(ObjectTypeNode objectTypeNode)
org.kie.reteoo.ObjectTypeNode
using a ObjectTypeNodeParser
.objectTypeNode
- node for whom this network was createdprotected abstract void setNetworkNodeReference(NetworkNode networkNode)
networkNode
- node to set to setCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.