VariableDiagramElement
StockSharp.Diagram.Elements
Value storage element.
Inherits: TypedDiagramElement<VariableDiagramElement>
Constructors
VariableDiagramElement
public VariableDiagramElement()
variableDiagramElement = VariableDiagramElement()
Initializes a new instance of the VariableDiagramElement.
Properties
IconName
public override string IconName { get; }
value = variableDiagramElement.IconName
Icon resource name.
InputAsTrigger
public bool InputAsTrigger { get; set; }
value = variableDiagramElement.InputAsTrigger
variableDiagramElement.InputAsTrigger = value
Raise output value when input updated.
TypeId
public override Guid TypeId { get; }
value = variableDiagramElement.TypeId
The unique identifier of the diagram element type.
Value
public object Value { get; set; }
value = variableDiagramElement.Value
variableDiagramElement.Value = value
The variable value.
Methods
Flush
public override void Flush(DateTime time)
variableDiagramElement.Flush(time)
Flush non trigger (root) elements.
OnInputSocketConnected
protected override void OnInputSocketConnected(DiagramSocket socket, DiagramSocket source)
variableDiagramElement.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 override void OnInputSocketDisconnected(DiagramSocket socket, DiagramSocket source)
variableDiagramElement.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 override void OnProcess(DiagramSocketValue value)
variableDiagramElement.OnProcess(value)
The method is called at the processing of the new incoming value.
- value
- The processed value.
OnReseted
protected override void OnReseted()
variableDiagramElement.OnReseted()
The method is called at re-initialisation of the diagram element state.
OnStart
protected override void OnStart(DateTime time)
variableDiagramElement.OnStart(time)
The method is called at the start of the diagram element algorithm.
OnStop
protected override void OnStop()
variableDiagramElement.OnStop()
The method is called at the stop of the diagram element algorithm.
TypeChanged
protected override void TypeChanged()
variableDiagramElement.TypeChanged()
The method is called when the data type is changed.