public class DataFlowGraph extends Object
GraphBinding
s. These component
GraphBindings define how nodes in this graph are connected to each other: GraphBindings can add
nodes and connections when they are 'activated' and can remove nodes and connections when they're
deactivated.
Data flows through the graph on each frame, from input nodes to output nodes.
Modifier and Type | Method and Description |
---|---|
static DataFlowGraph |
create(TimingSource timingSource) |
static DataFlowGraph |
getInstance() |
void |
register(GraphBinding binding)
Adds an activated
GraphBinding . |
static void |
setInstance(DataFlowGraph dataFlowGraph)
For tests, let's the testing environment explicitly provide a specific DataFlowGraph instance
that can, for example, have a mocked TimingSource.
|
void |
unregister(GraphBinding binding)
Removes a
GraphBinding . |
public static DataFlowGraph getInstance()
public static void setInstance(DataFlowGraph dataFlowGraph)
public static DataFlowGraph create(TimingSource timingSource)
public void register(GraphBinding binding)
GraphBinding
. This means that binding's nodes are added to the
existing graph and data will flow through them on the next frame.public void unregister(GraphBinding binding)
GraphBinding
. This means any nodes that only belonged to that binding will be
removed from the graph.