Class FlowGraphConnection<BlockT, ConnectedToT>
Type Parameters
- BlockT
- ConnectedToT extends IConnectable
Hierarchy (View Summary)
- FlowGraphConnection
Implements
Constructors
constructor
-
new FlowGraphConnection<BlockT, ConnectedToT extends IConnectable>(
name: string,
_connectionType: FlowGraphConnectionType,
_ownerBlock: BlockT,
): FlowGraphConnection<BlockT, ConnectedToT>Type Parameters
- BlockT
- ConnectedToT extends IConnectable
Parameters
- name: string
- _connectionType: FlowGraphConnectionType
- _ownerBlock: BlockT
Returns FlowGraphConnection<BlockT, ConnectedToT>
Properties
_ owner Block
Optionalmetadata
metadata?: any
Optional host-format metadata associated with this connection.
name
name: string
The name of the connection.
unique Id
uniqueId: string = ...
A uniquely identifying string for the connection.
Accessors
connection Type
-
The type of the connection
Returns FlowGraphConnectionType
Methods
connect To
-
Connects two connections together.
Parameters
- point: ConnectedToT
the connection to connect to.
Returns void
- point: ConnectedToT
deserialize
-
Deserialize from a object into this
Parameters
- serializationObject: any
the object to deserialize from.
Returns void
- serializationObject: any
disconnect From
-
Disconnects two connections.
Parameters
- point: ConnectedToT
the connection to disconnect from.
- removeFromLocal: boolean = true
if true, the connection will be removed from the local connection list.
Returns void
- point: ConnectedToT
disconnect From All
-
Disconnects all connected points.
Returns void
dispose
-
Disconnects this point from every connected point.
Returns void
get Class Name
-
Returns string
class name of the connection.
is Connected
-
Returns if a point is connected to any other point.
Returns boolean
boolean indicating if the point is connected.
serialize
-
Saves the connection to a JSON object.
Parameters
- serializationObject: any = {}
the object to serialize to.
Returns void
- serializationObject: any = {}
The base connection class.