|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.common.BaseNode
public abstract class BaseNode
The base class for all Rete nodes.
Field Summary | |
---|---|
protected int |
id
|
Constructor Summary | |
---|---|
BaseNode(int id)
All nodes have a unique id, set in the constructor. |
Method Summary | |
---|---|
abstract void |
attach()
Attaches the node into the network. |
abstract void |
attach(InternalWorkingMemory[] workingMemories)
|
int |
getId()
Returns the unique id that represents the node in the Rete network |
int |
hashCode()
The hashCode return is simply the unique id of the node. |
abstract boolean |
isInUse()
Returns true in case the current node is in use (is referenced by any other node) |
abstract void |
remove(RuleRemovalContext context,
BaseNode node,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final int id
Constructor Detail |
---|
public BaseNode(int id)
id
- The unique idMethod Detail |
---|
public int getId()
NetworkNode
getId
in interface NetworkNode
public abstract void attach()
ObjectSource
or TupleSource
public abstract void attach(InternalWorkingMemory[] workingMemories)
public abstract void remove(RuleRemovalContext context, BaseNode node, InternalWorkingMemory[] workingMemories)
ObjectSource
or TupleSource
public abstract boolean isInUse()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |