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 boolean
checkNodeConsistency(ReteMemory mem)
Check the consistency of the node.java.lang.Object
clone()
Clone this object.protected abstract void
doClone(java.lang.Object theclone)
Do clone makes a deep clone without regarding cycles.boolean
equals(java.lang.Object obj)
Test for equality.int
getNodeId()
Get the nodeid.int
hashCode()
Get the hashcode.java.lang.String
toString()
Get the string representation.protected java.lang.String
toString(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:
hashCode
in classjava.lang.Object
- Returns:
- The hash code.
-
equals
public boolean equals(java.lang.Object obj)
Test for equality.- Overrides:
equals
in classjava.lang.Object
- Returns:
- True, if equal.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in 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:
checkNodeConsistency
in interfaceINode
-
-