DiagramStrategy
アルゴリズムが図形に提示される戦略。
継承元: Strategy
コンストラクター
public DiagramStrategy()
diagramStrategy = DiagramStrategy()
DiagramStrategy の新規インスタンスを初期化します。
プロパティ
public CompositionDiagramElement Composition { get; set; }
value = diagramStrategy.Composition
diagramStrategy.Composition = value
戦略図。
protected override TimeSpan? HistoryCalculated { get; }
value = diagramStrategy.HistoryCalculated
. .HistorySizeのコード版から計算される.
public override IEnumerable<IOrderBookSource> OrderBookSources { get; }
value = diagramStrategy.OrderBookSources
OrderBookDrawing で受け取れるIOrderBookMessageソースは、すべてOrderBookDrawing で入手できます。
public int OverflowLimit { get; set; }
value = diagramStrategy.OverflowLimit
diagramStrategy.OverflowLimit = value
スタックのオーバーフローを防ぐため、最大許容要素1回。
internal IReadOnlyList<Security> StartSecurities { get; }
value = diagramStrategy.StartSecurities
Securities the diagram refers to at the start: Security and the security values of the elements' parameters, resolved through the security provider. Available to the elements from CancellationToken).
メソッド
protected override ValueTask CopyToAsync(Strategy copy, CancellationToken cancellationToken)
result = diagramStrategy.CopyToAsync(copy, cancellationToken)
Copy settings into .
- copy
- Strategy
- cancellationToken
- CancellationToken
戻り値: ValueTask
public void Flush<TMessage>(TMessage message)
diagramStrategy.Flush(message)
フラッシュ非トリガー(root)要素。
public override IEnumerable<Portfolio> GetWorkingPortfolios()
result = diagramStrategy.GetWorkingPortfolios()
戦略に必要なすべてのポートフォリオを入手してください。
戻り値: ポートフォリオ
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramStrategy.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- SettingsStorage
- cancellationToken
- CancellationToken
戻り値: Task
protected override void OnStarted2(DateTime time)
diagramStrategy.OnStarted2(time)
メソッドはStartメソッドが呼び出されたとき、ProcessState状態はStart値が取得されたとき呼び出されます。
- time
- The strategy start time.
protected override ValueTask OnStartedAsync(DateTime time, CancellationToken cancellationToken)
result = diagramStrategy.OnStartedAsync(time, cancellationToken)
The method is called when the strategy has entered the started state, before DateTime). An exception stops the strategy the same way as one thrown from DateTime).
- time
- The strategy start time.
- cancellationToken
- Cancellation token.
戻り値: ValueTask
protected override void OnStopped()
diagramStrategy.OnStopped()
メソッドは、ProcessStateプロセス状態が停止値を取られたときに呼び出されます。
protected virtual void RaisePropertiesChanged()
diagramStrategy.RaisePropertiesChanged()
利用可能なプロパティの変更イベントを呼び出すため。
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramStrategy.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- SettingsStorage
- cancellationToken
- CancellationToken
戻り値: Task
public ValueTask SetCompositionAsync(CompositionDiagramElement composition, CancellationToken cancellationToken)
result = diagramStrategy.SetCompositionAsync(composition, cancellationToken)
Set Composition and apply to it the settings loaded before it was set.
- composition
- The strategy diagram.
- cancellationToken
- CancellationToken
戻り値: ValueTask
イベント
public event Action<CompositionDiagramElement> CompositionChanged
diagramStrategy.CompositionChanged += handler
戦略図変更イベント。
public event Action PropertiesChanged
diagramStrategy.PropertiesChanged += handler
利用可能なプロパティーの変更イベント。