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, setToOutputpublic LabelledNode(java.lang.Object label)
label - The node's labelpublic java.lang.Object getLabel()
public java.lang.String toString()
toString in class java.lang.Objectpublic LabelledNode duplicate(boolean with_state)
Duplicableduplicate in interface Duplicableduplicate in class Nodewith_state - Set to true for a stateful copy, false
otherwisepublic void addChild(Node n)
n - The other nodeCopyright © Sylvain HallĂ©. All Rights Reserved.