Table of Contents

Class ComparisonDiagramElement

Namespace
StockSharp.Diagram.Elements
Assembly
StockSharp.Diagram.Core.dll

Two values comparison element.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Comparison", Description = "TwoValuesComparisonElement", GroupName = "Common")]
public sealed class ComparisonDiagramElement : DiagramElement, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable
Inheritance
ComparisonDiagramElement
Implements
INotifyPropertiesChanged
IPersistable
Inherited Members
Extension Methods

Constructors

ComparisonDiagramElement()

Initializes a new instance of the ComparisonDiagramElement.

public ComparisonDiagramElement()

Properties

IconName

Icon resource name.

public override string IconName { get; }

Property Value

string

LeftValue

Left operand.

public DiagramSocket LeftValue { get; set; }

Property Value

DiagramSocket

Operator

Operator.

public ComparisonOperator? Operator { get; set; }

Property Value

ComparisonOperator?

RightValue

Right operand.

public DiagramSocket RightValue { get; set; }

Property Value

DiagramSocket

TypeId

The unique identifier of the diagram element type.

public override Guid TypeId { get; }

Property Value

Guid

Methods

OnPrepare()

To prepare for starting the diagram element algorithm.

protected override void OnPrepare()

OnProcess(DateTimeOffset, IDictionary<DiagramSocket, DiagramSocketValue>, DiagramSocketValue)

The method is called at the processing of the new incoming values.

protected override void OnProcess(DateTimeOffset time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)

Parameters

time DateTimeOffset

Time.

values IDictionary<DiagramSocket, DiagramSocketValue>

Values.

source DiagramSocketValue

Source value.