Class VariableDiagramElement
- Namespace
- StockSharp.Diagram.Elements
- Assembly
- StockSharp.Diagram.Core.dll
Value storage element.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Variable", Description = "VariableElementDescription", GroupName = "Sources")]
public class VariableDiagramElement : TypedDiagramElement<VariableDiagramElement>, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable
- Inheritance
-
VariableDiagramElement
- Implements
-
INotifyPropertiesChangedIPersistable
- Inherited Members
- Extension Methods
Constructors
VariableDiagramElement()
Initializes a new instance of the VariableDiagramElement.
public VariableDiagramElement()
Properties
IconName
Icon resource name.
public override string IconName { get; }
Property Value
InputAsTrigger
Raise output value when input updated.
public bool InputAsTrigger { get; set; }
Property Value
TypeId
The unique identifier of the diagram element type.
public override Guid TypeId { get; }
Property Value
Value
The variable value.
public object Value { get; set; }
Property Value
Methods
Flush(DateTimeOffset)
Flush non trigger (root) elements.
public override void Flush(DateTimeOffset time)
Parameters
time
DateTimeOffset
OnInputSocketConnected(DiagramSocket, DiagramSocket)
The method is called when the input socket is connected.
protected override 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 override 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 override void OnProcess(DiagramSocketValue value)
Parameters
value
DiagramSocketValueThe processed value.
OnReseted()
The method is called at re-initialisation of the diagram element state.
protected override void OnReseted()
OnStart(DateTimeOffset)
The method is called at the start of the diagram element algorithm.
protected override void OnStart(DateTimeOffset time)
Parameters
time
DateTimeOffset
OnStop()
The method is called at the stop of the diagram element algorithm.
protected override void OnStop()
TypeChanged()
The method is called when the data type is changed.
protected override void TypeChanged()