Package com.marginallyclever.nodegraphcore
NodeGraphCore contains essential elements for describing a graph that contains nodes for flow-based programming.
The
NodeGraph
contains Node
s.
Nodes have NodeVariable
s. NodeVariables are connected with NodeConnection
s. A graph may be contained within a Subgraph
.
Nodes are exposed to editing and serialization tools by registering themselves to the NodeFactory. See BuiltInNodeRegistry
for examples which include PrintToStdOut
, boolean logical operators, and basic math functions.-
Interface Summary Interface Description PrintWithGraphics Node
s with this interface can draw using the Swing'sGraphics
context.SupergraphInput Nodes with this interface are advertising their inputs to the supergraph.SupergraphOutput Nodes with this interface are advertising their outputs to the supergraph. -
Class Summary Class Description BuiltInNodeRegistry Registers built-inNode
s to theNodeFactory
.JSONHelper Convenience methods for serializing and de-serializing objects in this package.Node Node
is a collection of zero or more inputs and zero or more outputs connected by some operator.NodeConnection Describes the connection between twoNodeVariable
s in differentNode
s.NodeConnectionPointInfo NodeFactory Maintains a map ofNode
s and their names.NodeGraph NodeVariable<T> Describes an input or output connection with for aNode
and stores the value at that connection.Subgraph TestNodeGraphCore Test the NodeGraphCore elements.