Class DSLHandler<TDSLInterface>
Connection handler for DSLInput<TNodeDefinition, TDSLDefinition, IDSL> and DSLOutput<TNodeDefinition, TDSLDefinition, IDSL> port types. The implementation is invoked whenever connections on DSL ports tied to this handler are made or broken.
Inherited Members
Namespace: Unity.DataFlowGraph
Syntax
public abstract class DSLHandler<TDSLInterface> : IDSLHandler, IDisposable
Type Parameters
Name | Description |
---|---|
TDSLInterface | The user defined interface which NodeDefinition<TNodeData, TSimulationPortDefinition>s must implement so that the DSLHandler<TDSLInterface> can interact with them. |
Methods
Connect(DSLHandler<TDSLInterface>.ConnectionInfo, DSLHandler<TDSLInterface>.ConnectionInfo)
Declaration
protected abstract void Connect(DSLHandler<TDSLInterface>.ConnectionInfo left, DSLHandler<TDSLInterface>.ConnectionInfo right)
Parameters
Type | Name | Description |
---|---|---|
DSLHandler.ConnectionInfo<> | left | |
DSLHandler.ConnectionInfo<> | right |
Connect(NodeSet, NodeHandle, OutputPortID, NodeHandle, InputPortID)
Declaration
public void Connect(NodeSet set, NodeHandle source, OutputPortID sourcePort, NodeHandle destination, InputPortID destinationPort)
Parameters
Type | Name | Description |
---|---|---|
NodeSet | set | |
NodeHandle | source | |
OutputPortID | sourcePort | |
NodeHandle | destination | |
InputPortID | destinationPort |
Implements
Disconnect(DSLHandler<TDSLInterface>.ConnectionInfo, DSLHandler<TDSLInterface>.ConnectionInfo)
Declaration
protected abstract void Disconnect(DSLHandler<TDSLInterface>.ConnectionInfo left, DSLHandler<TDSLInterface>.ConnectionInfo right)
Parameters
Type | Name | Description |
---|---|---|
DSLHandler.ConnectionInfo<> | left | |
DSLHandler.ConnectionInfo<> | right |
Disconnect(NodeSet, NodeHandle, OutputPortID, NodeHandle, InputPortID)
Declaration
public void Disconnect(NodeSet set, NodeHandle source, OutputPortID sourcePort, NodeHandle destination, InputPortID destinationPort)
Parameters
Type | Name | Description |
---|---|---|
NodeSet | set | |
NodeHandle | source | |
OutputPortID | sourcePort | |
NodeHandle | destination | |
InputPortID | destinationPort |
Implements
Dispose()
Declaration
public virtual void Dispose()