Package com.marginallyclever.nodegraphcore
NodeGraphCore contains essential elements for describing a graph that contains nodes for flow-based programming.
The
NodeGraph contains Nodes.
Nodes have NodeVariables. NodeVariables are connected with NodeConnections. 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 Nodes with this interface can draw using the Swing'sGraphicscontext.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-inNodes to theNodeFactory.JSONHelper Convenience methods for serializing and de-serializing objects in this package.Node Nodeis a collection of zero or more inputs and zero or more outputs connected by some operator.NodeConnection Describes the connection between twoNodeVariables in differentNodes.NodeConnectionPointInfo NodeFactory Maintains a map ofNodes and their names.NodeGraph NodeVariable<T> Describes an input or output connection with for aNodeand stores the value at that connection.Subgraph TestNodeGraphCore Test the NodeGraphCore elements.