Class FlowGraphDataConnection<T>
Type Parameters
T
Hierarchy
- FlowGraphConnection<FlowGraphBlock, FlowGraphDataConnection<T>>
- FlowGraphDataConnection
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Create a new data connection point.
Type Parameters
T
Parameters
name: string
connectionType: FlowGraphConnectionType
ownerBlock: FlowGraphBlock
richType: RichType<T>
Returns FlowGraphDataConnection<T>
Properties
_connection TypeSearch playground for _connectionType
nameSearch playground for name
rich TypeSearch playground for richType
unique IdSearch playground for uniqueId
A uniquely identifying string for the connection.
Accessors
connection Type
The type of the connection
Returns FlowGraphConnectionType
is Set
Verifies if the connection has had a value set or not, either through a connection or by setting it directly.
Returns boolean
Methods
_is Singular ConnectionSearch playground for _isSingularConnection
An output data block can connect to multiple input data blocks, but an input data block can only connect to one output data block.
Returns boolean
connect ToSearch playground for connectTo
Connects two points together.
Parameters
point: FlowGraphDataConnection<T>
Returns void
get ValueSearch playground for getValue
Gets the value of the connection in a specific context.
Parameters
context: FlowGraphContext
the context from which the value is retrieved
Returns T
the value of the connection
is ConnectedSearch playground for isConnected
Returns if a point is connected to any other point.
Returns boolean
boolean indicating if the point is connected.
set ValueSearch playground for setValue
Set the value of the connection in a specific context.
Parameters
value: T
the value to set
context: FlowGraphContext
the context to which the value is set
Returns void
Represents a connection point for data. An unconnected input point can have a default value. An output point will only have a value if it is connected to an input point. Furthermore, if the point belongs to a "function" node, the node will run its function to update the value.