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
-
INotifyPropertiesChangedIPersistable
- 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
Properties
OutputSocket
Output socket.
protected DiagramSocket OutputSocket { get; }
Property Value
Type
Data type.
public DiagramSocketType Type { get; set; }
Property Value
Methods
OnInputSocketConnected(DiagramSocket, DiagramSocket)
The method is called when the input socket is connected.
protected virtual void OnInputSocketConnected(DiagramSocket socket, DiagramSocket source)
Parameters
socket
DiagramSocketThe diagram element socket.
source
DiagramSocketThe 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
DiagramSocketThe diagram element socket.
source
DiagramSocketThe 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
DiagramSocketValueThe 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()