TypedDiagramElement
StockSharp.Diagram.Elements
The diagram element with the changeable data type.
Inherits: DiagramElement
Constructors
TypedDiagramElement
protected TypedDiagramElement(string typeParamCategory, bool ignoreHandler)
typedDiagramElement = TypedDiagramElement(typeParamCategory, ignoreHandler)
Initializes a new instance of the TypedDiagramElement.
- typeParamCategory
- The category of the diagram element parameter.
- ignoreHandler
Properties
OutputSocket
protected DiagramSocket OutputSocket { get; }
value = typedDiagramElement.OutputSocket
Output socket.
Type
public DiagramSocketType Type { get; set; }
value = typedDiagramElement.Type
typedDiagramElement.Type = value
Data type.
Methods
InputSocketConnected
private void InputSocketConnected(DiagramSocket socket, DiagramSocket source)
typedDiagramElement.InputSocketConnected(socket, source)
The method is called at subscription to the processing of diagram element output values.
- socket
- The diagram element socket.
- source
- The source diagram element socket.
InputSocketDisconnected
private void InputSocketDisconnected(DiagramSocket socket, DiagramSocket source)
typedDiagramElement.InputSocketDisconnected(socket, source)
The method is called at unsubscription from the processing of diagram element output values.
- socket
- The diagram element socket.
- source
- The source diagram element socket.
OnInputSocketConnected
protected virtual void OnInputSocketConnected(DiagramSocket socket, DiagramSocket source)
typedDiagramElement.OnInputSocketConnected(socket, source)
The method is called when the input socket is connected.
- socket
- The diagram element socket.
- source
- The source diagram element socket.
OnInputSocketDisconnected
protected virtual void OnInputSocketDisconnected(DiagramSocket socket, DiagramSocket source)
typedDiagramElement.OnInputSocketDisconnected(socket, source)
The method is called when the input socket is disconnected.
- socket
- The diagram element socket.
- source
- The source diagram element socket.
OnProcess
protected abstract void OnProcess(DiagramSocketValue value)
typedDiagramElement.OnProcess(value)
The method is called at the processing of the new incoming value.
- value
- The processed value.
TypeChanged
protected virtual void TypeChanged()
typedDiagramElement.TypeChanged()
The method is called when the data type is changed.
UpdateOutputSocketType
protected void UpdateOutputSocketType()
typedDiagramElement.UpdateOutputSocketType()
To change the output socket type.