ComparisonDiagramElement
StockSharp.Diagram.Elements
Two values comparison element.
Inherits: DiagramElement
Constructors
ComparisonDiagramElement
public ComparisonDiagramElement()
comparisonDiagramElement = ComparisonDiagramElement()
Initializes a new instance of the ComparisonDiagramElement.
Properties
IconName
public override string IconName { get; }
value = comparisonDiagramElement.IconName
Icon resource name.
LeftValue
public DiagramSocket LeftValue { get; set; }
value = comparisonDiagramElement.LeftValue
comparisonDiagramElement.LeftValue = value
Left operand.
Operator
public ComparisonOperator? Operator { get; set; }
value = comparisonDiagramElement.Operator
comparisonDiagramElement.Operator = value
Operator.
RightValue
public DiagramSocket RightValue { get; set; }
value = comparisonDiagramElement.RightValue
comparisonDiagramElement.RightValue = value
Right operand.
TypeId
public override Guid TypeId { get; }
value = comparisonDiagramElement.TypeId
The unique identifier of the diagram element type.
Methods
OnPrepare
protected override void OnPrepare()
comparisonDiagramElement.OnPrepare()
To prepare for starting the diagram element algorithm.
OnProcess
protected override void OnProcess(DateTime time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
comparisonDiagramElement.OnProcess(time, values, source)
The method is called at the processing of the new incoming values.
- time
- Time.
- values
- Values.
- source
- Source value.