|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.compiled.CompiledNetwork
public abstract class CompiledNetwork
This is the base type for all generated classes that that represent a "compiled" portion of the RETE network. By compiled we mean IF statements, switch statements, etc. as opposed to nodes, propagators, etc.
Constructor Summary | |
---|---|
CompiledNetwork()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.drools.reteoo.ObjectSink |
---|
assertObject, modifyObject |
Constructor Detail |
---|
public CompiledNetwork()
Method Detail |
---|
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 to
IOException
- 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 object
IOException
- if I/O errors occur
ClassNotFoundException
- If the class for an object being
restored cannot be found.public final void setObjectTypeNode(ObjectTypeNode objectTypeNode)
ObjectTypeNode
using a ObjectTypeNodeParser
.
objectTypeNode
- node for whom this network was createdprotected abstract void setNetworkNodeReference(NetworkNode networkNode)
networkNode
- node to set to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |