CompositionDiagramElement

StockSharp.Diagram

Verbundelement.

Erbt von: DiagramElement

Konstruktoren

CompositionDiagramElement
public CompositionDiagramElement(ICompositionModel model)
compositionDiagramElement = CompositionDiagramElement(model)

Initialisiert eine neue Instanz von CompositionDiagramElement.

model
ICompositionModel

Eigenschaften

Category
public string Category { get; set; }
value = compositionDiagramElement.Category
compositionDiagramElement.Category = value

Der Name der Gruppe, die ein Diagrammelement enthält.

DocUrl
public override string DocUrl { get; set; }
value = compositionDiagramElement.DocUrl
compositionDiagramElement.DocUrl = value

Dokumentation url.

Elements
public IEnumerable<DiagramElement> Elements { get; }
value = compositionDiagramElement.Elements

Elemente

HasErrors
public bool HasErrors { get; }
value = compositionDiagramElement.HasErrors

HasErrors

HasUndoManager
public override bool HasUndoManager { get; }
value = compositionDiagramElement.HasUndoManager

Prüfen Sie, ob der Undo-Manager definiert ist

IconName
public override string IconName { get; }
value = compositionDiagramElement.IconName

Icon Resource Name.

IsLoaded
public bool IsLoaded { get; set; }
value = compositionDiagramElement.IsLoaded
compositionDiagramElement.IsLoaded = value

Ist ein zusammengesetztes Diagrammelement geladen.

IsUndoRedoing
public override bool IsUndoRedoing { get; }
value = compositionDiagramElement.IsUndoRedoing

Ob die Undo/Redo-Operation in Arbeit ist.

LastError
public Exception LastError { get; internal set; }
value = compositionDiagramElement.LastError
compositionDiagramElement.LastError = value

Der letzte Fehler.

LastErrorElement
public DiagramElement LastErrorElement { get; internal set; }
value = compositionDiagramElement.LastErrorElement
compositionDiagramElement.LastErrorElement = value

Das letzte Fehlerelement.

Model
public ICompositionModel Model { get; set; }
value = compositionDiagramElement.Model
compositionDiagramElement.Model = value

ICompositionModel

Parameters
public override IEnumerable<IDiagramElementParam> Parameters { get; }
value = compositionDiagramElement.Parameters

Berechnete Parameter.

SchemaVersion
public int SchemaVersion { get; set; }
value = compositionDiagramElement.SchemaVersion
compositionDiagramElement.SchemaVersion = value

Schemaversion.

Strategy
public override DiagramStrategy Strategy { get; set; }
value = compositionDiagramElement.Strategy
compositionDiagramElement.Strategy = value

Die Strategie, an die das Element angehängt ist.

TypeId
public override Guid TypeId { get; }
value = compositionDiagramElement.TypeId

Typ ID.

Methoden

CanRedo
public bool CanRedo()
result = compositionDiagramElement.CanRedo()

Dieses Prädikat ist wahr, wenn man Redo anrufen kann.

Rückgabe: Prüfergebnis.

CanUndo
public bool CanUndo()
result = compositionDiagramElement.CanUndo()

Dieses Prädikat ist wahr, wenn man Undo anrufen kann.

Rückgabe: Prüfergebnis.

Clone
public override DiagramElement Clone(bool cloneSockets)
result = compositionDiagramElement.Clone(cloneSockets)

Erstellen Sie eine Kopie von CompositionDiagramElement.

cloneSockets
Um Kopien von Verbindungen zu erstellen.

Rückgabe: Kopie.

ConnectedToSockets
public IEnumerable<DiagramSocket> ConnectedToSockets(DiagramSocket socket)
result = compositionDiagramElement.ConnectedToSockets(socket)

Andere Steckdosen, wenn diese angeschlossen ist.

socket
DiagramSocket

Rückgabe: Steckdosen.

CreateSocketInstance
protected override DiagramSocket CreateSocketInstance(DiagramSocketDirection dir, string socketId)
result = compositionDiagramElement.CreateSocketInstance(dir, socketId)

Erstellen Sie eine neue Socket-Instanz.

FindMarketDepthPanels
public IEnumerable<MarketDepthPanelDiagramElement> FindMarketDepthPanels()
result = compositionDiagramElement.FindMarketDepthPanels()

Finden Sie alle MarketDepthPanelDiagramElement.

FindPortfolios
public IEnumerable<Portfolio> FindPortfolios()
result = compositionDiagramElement.FindPortfolios()

Finden Sie alle Portfolios in Elementen.

Flush
public override void Flush(DateTime time)
compositionDiagramElement.Flush(time)

Flush Nicht-Trigger-Elemente (Root-Elemente).

GetCategory
public override string GetCategory()
result = compositionDiagramElement.GetCategory()

Kategorie erhalten.

Rückgabe: Kategorie.

GetDescription
public override string GetDescription()
result = compositionDiagramElement.GetDescription()

Beschreibung.

Rückgabe: Description.

GetDisplayName
public override string GetDisplayName()
result = compositionDiagramElement.GetDisplayName()

Name der Anzeige.

Rückgabe: Name.

Load
public override void Load(SettingsStorage storage)
compositionDiagramElement.Load(storage)

Lasteinstellungen.

storage
Einstellungen Lagerung.
OnInit
protected override void OnInit()
compositionDiagramElement.OnInit()

Das Verfahren wird bei der Initialisierung des Diagrammelements aufgerufen.

OnPrepare
protected override void OnPrepare()
compositionDiagramElement.OnPrepare()

Zur Vorbereitung auf den Start des Diagrammelementalgorithmus.

OnProcess
protected override void OnProcess(DateTime time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
compositionDiagramElement.OnProcess(time, values, source)

Die Methode wird bei der Verarbeitung der neuen eingehenden Werte aufgerufen.

time
Uhrzeit.
values
Werte.
source
Quellenwert.
OnReseted
protected override void OnReseted()
compositionDiagramElement.OnReseted()

Es wird von der Reset-Methode aufgerufen.

OnSocketConnected
protected override void OnSocketConnected(DiagramSocket socket, DiagramSocket source)
compositionDiagramElement.OnSocketConnected(socket, source)

Das Verfahren wird bei Subskription der Verarbeitung von Diagrammelement-Ausgabewerten aufgerufen.

socket
Der Diagrammelement-Sockel.
source
Der Source-Diagramm-Element-Sockel.
OnSocketDisconnected
protected override void OnSocketDisconnected(DiagramSocket socket, DiagramSocket source)
compositionDiagramElement.OnSocketDisconnected(socket, source)

Das Verfahren wird bei der Abmeldung von der Verarbeitung von Diagrammelement-Ausgangswerten aufgerufen.

socket
Der Diagrammelement-Sockel.
source
Der Source-Diagramm-Element-Sockel.
OnStart
protected override void OnStart(DateTime time)
compositionDiagramElement.OnStart(time)

Das Verfahren wird zu Beginn des Diagrammelementalgorithmus aufgerufen.

OnStop
protected override void OnStop()
compositionDiagramElement.OnStop()

Das Verfahren wird am Stopp des Diagrammelementalgorithmus aufgerufen.

OnUnInit
protected override void OnUnInit()
compositionDiagramElement.OnUnInit()

Das Verfahren wird bei der Deinitialisierung des Diagrammelements aufgerufen.

RaiseChanged
protected void RaiseChanged()
compositionDiagramElement.RaiseChanged()

Invoke Changed.

RaiseElementAdded
protected void RaiseElementAdded(DiagramElement element)
compositionDiagramElement.RaiseElementAdded(element)

Rufen Sie ElementAdded an.

element
DiagramElement
RaiseElementRemoved
protected void RaiseElementRemoved(DiagramElement element)
compositionDiagramElement.RaiseElementRemoved(element)

Rufen Sie ElementRemoved an.

element
DiagramElement
RaiseParameterValueChanged
protected override void RaiseParameterValueChanged(string parameterName)
compositionDiagramElement.RaiseParameterValueChanged(parameterName)

Um das ParameterValueChanged-Event aufzurufen.

parameterName
Parameterbezeichnung.
RaiseStrategyChanged
protected void RaiseStrategyChanged()
compositionDiagramElement.RaiseStrategyChanged()

Rufen Sie StrategyChanged an.

Redo
public void Redo()
compositionDiagramElement.Redo()

Stellen Sie den Zustand einiger Modelle nach dem aktuellen Zustand wieder her.

ResumeUndoManager
public void ResumeUndoManager()
compositionDiagramElement.ResumeUndoManager()

Resume undo/redo Manager für Model.

Save
public override void Save(SettingsStorage storage)
compositionDiagramElement.Save(storage)

Einstellungen speichern.

storage
Einstellungen Lagerung.
SetTypeId
protected void SetTypeId(Guid typeId)
compositionDiagramElement.SetTypeId(typeId)

TypeId

typeId
TypeId
SuspendUndoManager
public void SuspendUndoManager()
compositionDiagramElement.SuspendUndoManager()

Suspend undo/redo Manager für Model.

Undo
public void Undo()
compositionDiagramElement.Undo()

Stellen Sie den Zustand einiger Modelle vor dem aktuellen Zustand wieder her.

UpdateTypeId
public void UpdateTypeId(Guid? id)
compositionDiagramElement.UpdateTypeId(id)

Aktualisieren Sie TypeId für Kompositionselemente.

id
Neuer Wert für TypeId. Kann sein.

Ereignisse

Changed
public event Action Changed
compositionDiagramElement.Changed += handler

Das Schaltbild des zusammengesetzten Elements ändert sich.

ElementAdded
public event Action<DiagramElement> ElementAdded
compositionDiagramElement.ElementAdded += handler

Child-Element hinzugefügt.

ElementRemoved
public event Action<DiagramElement> ElementRemoved
compositionDiagramElement.ElementRemoved += handler

Child-Element entfernt.

StrategyChanged
public event Action StrategyChanged
compositionDiagramElement.StrategyChanged += handler

Erhöht, als sich die Strategie änderte.