Class AbstractNode
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.nodes.AbstractNode
 
- 
- All Implemented Interfaces:
- INode,- java.lang.Cloneable
 - Direct Known Subclasses:
- AbstractBetaNode,- AlphaNode,- CollectNode,- InitialFactNode,- LeftInputAdapterNode,- ReteNode,- RightInputAdapterNode,- SplitNode,- TerminalNode,- TestNode
 
 public abstract class AbstractNode extends java.lang.Object implements INode Abstract super class for all kinds of nodes.
- 
- 
Constructor SummaryConstructors Constructor Description AbstractNode(int nodeid)Create a new node.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancheckNodeConsistency(ReteMemory mem)Check the consistency of the node.java.lang.Objectclone()Clone this object.protected abstract voiddoClone(java.lang.Object theclone)Do clone makes a deep clone without regarding cycles.booleanequals(java.lang.Object obj)Test for equality.intgetNodeId()Get the nodeid.inthashCode()Get the hashcode.java.lang.StringtoString()Get the string representation.protected java.lang.StringtoString(java.lang.String insert)Customizable string representation.- 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.rules.rulesystem.rete.nodes.INodecreateNodeMemory, getIndirectAttributes, getNodeMemory, getRelevantAttributes, modifyIndirectObject
 
- 
 
- 
- 
- 
Method Detail- 
getNodeIdpublic int getNodeId() Get the nodeid.
 - 
hashCodepublic int hashCode() Get the hashcode.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hash code.
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test for equality.- Overrides:
- equalsin class- java.lang.Object
- Returns:
- True, if equal.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
toStringprotected java.lang.String toString(java.lang.String insert) Customizable string representation. The given string will be inserted.
 - 
clonepublic java.lang.Object clone() Clone this object.
 - 
doCloneprotected abstract void doClone(java.lang.Object theclone) Do clone makes a deep clone without regarding cycles. Method is overridden by subclasses to actually incorporate their attributes.- Parameters:
- theclone- The clone.
 
 - 
checkNodeConsistencypublic boolean checkNodeConsistency(ReteMemory mem) Check the consistency of the node.- Specified by:
- checkNodeConsistencyin interface- INode
 
 
- 
 
-