public interface Connectable
Modifier and Type | Method and Description |
---|---|
void |
addToInput(int index,
Pin<? extends Node> pin)
Adds a node's output pin to the set of connections of this node's
input pin.
|
void |
addToOutput(int index,
Pin<? extends Node> pin)
Adds a node's input pin to the set of connections of this node's
output pin.
|
int |
getInputArity()
Gets the input arity of the node.
|
java.util.Collection<Pin<? extends Node>> |
getInputLinks(int index)
Gets the output pins of other nodes that are connected to a given
input pin of this node.
|
Pin<? extends Node> |
getInputPin(int index)
Gets the node's input pin for a given index.
|
int |
getOutputArity()
Gets the output arity of the node.
|
java.util.Collection<Pin<? extends Node>> |
getOutputLinks(int index)
Gets the input pins of other nodes that are connected to a given
output pin of this node.
|
Pin<? extends Node> |
getOutputPin(int index)
Gets the node's input pin for a given index.
|
void |
removeFromInput(int index,
Pin<? extends Node> pin)
Removes a node's output pin to the set of connections of this node's
input pin.
|
void |
removeFromOutput(int index,
Pin<? extends Node> pin)
Removes a node's input pin to the set of connections of this node's
output pin.
|
void |
setToInput(int index,
Pin<? extends Node> pin)
Sets a node's output pin as the connection of this node's input
pin.
|
void |
setToOutput(int index,
Pin<? extends Node> pin)
Sets a node's input pin as the connection of this node's output
pin.
|
int getInputArity()
int getOutputArity()
java.util.Collection<Pin<? extends Node>> getInputLinks(int index) throws java.lang.IndexOutOfBoundsException
index
- The index of the current node's input pinjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's input arityjava.util.Collection<Pin<? extends Node>> getOutputLinks(int index) throws java.lang.IndexOutOfBoundsException
index
- The index of the current node's output pinjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's output arityvoid addToInput(int index, Pin<? extends Node> pin) throws java.lang.IndexOutOfBoundsException
index
- The index of the current node's input pinpin
- A node's output pin to add to the connectionsjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's input arityvoid setToInput(int index, Pin<? extends Node> pin) throws java.lang.IndexOutOfBoundsException
index
- The index of the current node's input pinpin
- A node's output pin to add to the connectionsjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's input arityvoid removeFromInput(int index, Pin<? extends Node> pin) throws java.lang.IndexOutOfBoundsException
index
- The index of the current node's input pinpin
- A node's output pin to remove from the connectionsjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's input arityvoid addToOutput(int index, Pin<? extends Node> pin) throws java.lang.IndexOutOfBoundsException
index
- The index of the current node's output pinpin
- A node's input pin to add to the connectionsjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's output arityvoid setToOutput(int index, Pin<? extends Node> pin) throws java.lang.IndexOutOfBoundsException
index
- The index of the current node's output pinpin
- A node's input pin to add to the connectionsjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's output arityvoid removeFromOutput(int index, Pin<? extends Node> pin) throws java.lang.IndexOutOfBoundsException
index
- The index of the current node's output pinpin
- A node's input pin to remove from the connectionsjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's output arityPin<? extends Node> getInputPin(int index) throws java.lang.IndexOutOfBoundsException
index
- The indexjava.lang.IndexOutOfBoundsException
- If the index is incompatible with
the node's input arityCopyright © Sylvain HallĂ©. All Rights Reserved.