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 Summary
Constructors Constructor Description AbstractNode(int nodeid)Create a new node.
-
Method Summary
All 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.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jadex.rules.rulesystem.rete.nodes.INode
createNodeMemory, getIndirectAttributes, getNodeMemory, getRelevantAttributes, modifyIndirectObject
-
-
-
-
Method Detail
-
getNodeId
public int getNodeId()
Get the nodeid.
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code.
-
equals
public boolean equals(java.lang.Object obj)
Test for equality.- Overrides:
equalsin classjava.lang.Object- Returns:
- True, if equal.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
toString
protected java.lang.String toString(java.lang.String insert)
Customizable string representation. The given string will be inserted.
-
clone
public java.lang.Object clone()
Clone this object.
-
doClone
protected 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.
-
checkNodeConsistency
public boolean checkNodeConsistency(ReteMemory mem)
Check the consistency of the node.- Specified by:
checkNodeConsistencyin interfaceINode
-
-