Table of Contents

Class TypedDiagramElement<T>

Namespace
StockSharp.Diagram.Elements
Assembly
StockSharp.Diagram.Core.dll

The diagram element with the changeable data type.

public abstract class TypedDiagramElement<T> : DiagramElement, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable where T : TypedDiagramElement<T>

Type Parameters

T

Type of element.

Inheritance
TypedDiagramElement<T>
Implements
INotifyPropertiesChanged
IPersistable
Derived
Inherited Members
Extension Methods

Constructors

TypedDiagramElement(string, bool)

Initializes a new instance of the TypedDiagramElement<T>.

protected TypedDiagramElement(string typeParamCategory, bool ignoreHandler = false)

Parameters

typeParamCategory string

The category of the diagram element parameter.

ignoreHandler bool

Properties

OutputSocket

Output socket.

protected DiagramSocket OutputSocket { get; }

Property Value

DiagramSocket

Type

Data type.

public DiagramSocketType Type { get; set; }

Property Value

DiagramSocketType

Methods

OnInputSocketConnected(DiagramSocket, DiagramSocket)

The method is called when the input socket is connected.

protected virtual void OnInputSocketConnected(DiagramSocket socket, DiagramSocket source)

Parameters

socket DiagramSocket

The diagram element socket.

source DiagramSocket

The source diagram element socket.

OnInputSocketDisconnected(DiagramSocket, DiagramSocket)

The method is called when the input socket is disconnected.

protected virtual void OnInputSocketDisconnected(DiagramSocket socket, DiagramSocket source)

Parameters

socket DiagramSocket

The diagram element socket.

source DiagramSocket

The source diagram element socket.

OnProcess(DiagramSocketValue)

The method is called at the processing of the new incoming value.

protected abstract void OnProcess(DiagramSocketValue value)

Parameters

value DiagramSocketValue

The processed value.

TypeChanged()

The method is called when the data type is changed.

protected virtual void TypeChanged()

UpdateOutputSocketType()

To change the output socket type.

protected void UpdateOutputSocketType()