| java.lang.Object org.drools.common.BaseNode
All known Subclasses: org.drools.reteoo.RuleTerminalNode, org.drools.reteoo.QueryTerminalNode, org.drools.reteoo.ObjectSource, org.drools.reteoo.TupleSource,
Constructor Summary | |
public | BaseNode(int id) All nodes have a unique id, set in the constructor. |
hasMemory | protected boolean hasMemory(Code) | | |
id | final protected int id(Code) | | |
sharedCount | protected int sharedCount(Code) | | |
BaseNode | public BaseNode(int id)(Code) | | All nodes have a unique id, set in the constructor.
Parameters: id - The unique id |
addShare | public void addShare()(Code) | | Each time a node is shared a counter is increased.
|
attach | abstract public void attach()(Code) | | Attaches the node into the network. Usually to the parent ObjectSource or TupleSource
|
getSharedCount | public int getSharedCount()(Code) | | Returns the number of times the node is shared
int value indicating the share count. |
hasMemory | public boolean hasMemory()(Code) | | Indicates whether the node has any memory.
|
hashCode | public int hashCode()(Code) | | The hashCode return is simply the unique id of the node. It is expected that base classes will also implement equals(Object object).
|
isInUse | public boolean isInUse()(Code) | | Returns true in case the current node is in use (is referenced by any other node)
|
isShared | public boolean isShared()(Code) | | Indicates whether the node is shared.
|
remove | abstract public void remove(BaseNode node, InternalWorkingMemory[] workingMemories)(Code) | | Removes the node from teh network. Usually from the parent ObjectSource or TupleSource
|
removeShare | public void removeShare()(Code) | | Each time a node is unshared a counter is decreased.
|
setHasMemory | protected void setHasMemory(boolean hasMemory)(Code) | | Specifies with the node has any memory.
Parameters: hasMemory - |
|
|