public class LabelledNode extends Node
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
m_label
An object associated to a node.
|
Constructor and Description |
---|
LabelledNode(java.lang.Object label)
Creates a new labelled node.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Node n)
Connects the first output pin of the current node to the first input pin
of another node.
|
LabelledNode |
duplicate(boolean with_state)
Creates a possibly stateful copy of an object.
|
java.lang.Object |
getLabel()
Gets the label associated to this node.
|
java.lang.String |
toString() |
addToInput, addToOutput, copyInto, duplicate, getInputArity, getInputLinks, getInputPin, getOutputArity, getOutputLinks, getOutputPin, removeFromInput, removeFromOutput, setToInput, setToOutput
public LabelledNode(java.lang.Object label)
label
- The node's labelpublic java.lang.Object getLabel()
public java.lang.String toString()
toString
in class java.lang.Object
public LabelledNode duplicate(boolean with_state)
Duplicable
duplicate
in interface Duplicable
duplicate
in class Node
with_state
- Set to true
for a stateful copy, false
otherwisepublic void addChild(Node n)
n
- The other nodeCopyright © Sylvain HallĂ©. All Rights Reserved.