CompositionDiagramElement

StockSharp.Diagram

Составной элемент.

Наследует: DiagramElement

Конструкторы

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

Инициализирует новый экземпляр CompositionDiagramElement.

model
ICompositionModel

Свойства

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

Название группы, включающей элемент диаграммы.

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

Документация URL.

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

Элементы

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

HasErrors

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

Проверьте, определен ли менеджер undo

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

Имя ресурса Иконы.

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

Композитный элемент диаграммы загружен.

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

В настоящее время проводится операция undo/redo.

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

Последняя ошибка.

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

Последний элемент ошибки.

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

ICompositionModel

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

Расчетные параметры.

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

Версия схемы.

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

Стратегия, к которой прикреплен элемент.

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

Тип идентификатора.

Методы

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

Этот предикат истинен, когда можно вызвать Redo.

Возвращает: Проверьте результат.

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

Этот предикат истинен, когда можно вызвать Undo.

Возвращает: Проверьте результат.

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

Создайте копию CompositionDiagramElement.

cloneSockets
Для создания копий соединений.

Возвращает: Копия.

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

Другие розетки, если эта подключена.

socket
DiagramSocket

Возвращает: Подключенные розетки.

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

Создайте новый экземпляр сокета.

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

Найдите всех MarketDepthPanelDiagramElement.

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

Найдите все портфолио в элементах.

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

Промывка нетриггерных (корневых) элементов.

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

Получить категорию.

Возвращает: Категория.

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

Описание.

Возвращает: Description.

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

Отображаемое имя.

Возвращает: Name.

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

Загрузить настройки.

storage
Хранилище настроек.
OnInit
protected override void OnInit()
compositionDiagramElement.OnInit()

Метод вызывается при инициализации элемента диаграммы.

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

Подготовиться к запуску алгоритма элемента диаграммы.

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

Метод вызывается при обработке новых поступающих значений.

time
Время.
values
Ценности.
source
Исходное значение.
OnReseted
protected override void OnReseted()
compositionDiagramElement.OnReseted()

Он вызывается из метода Reset.

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

Метод вызывается при подписке на обработку выходных значений элемента диаграммы.

socket
Сокет элемента диаграммы.
source
Сокет элемента исходной диаграммы.
OnSocketDisconnected
protected override void OnSocketDisconnected(DiagramSocket socket, DiagramSocket source)
compositionDiagramElement.OnSocketDisconnected(socket, source)

Метод вызывается при отписке от обработки выходных значений элемента диаграммы.

socket
Сокет элемента диаграммы.
source
Сокет элемента исходной диаграммы.
OnStart
protected override void OnStart(DateTime time)
compositionDiagramElement.OnStart(time)

Метод вызывается в начале алгоритма элемента диаграммы.

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

Метод вызывается при остановке алгоритма элемента диаграммы.

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

Метод вызывается при деинициализации элемента диаграммы.

RaiseChanged
protected void RaiseChanged()
compositionDiagramElement.RaiseChanged()

Вызов изменен.

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

Вызовите ElementAdded.

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

Вызовите ElementRemoved.

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

Чтобы вызвать событие ParameterValueChanged.

parameterName
Имя параметра.
RaiseStrategyChanged
protected void RaiseStrategyChanged()
compositionDiagramElement.RaiseStrategyChanged()

Вызовите StrategyChanged.

Redo
public void Redo()
compositionDiagramElement.Redo()

Восстановите состояние некоторых моделей после текущего состояния.

ResumeUndoManager
public void ResumeUndoManager()
compositionDiagramElement.ResumeUndoManager()

Возобновить работу менеджера отмены/повтора для модели.

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

Сохраните настройки.

storage
Хранилище настроек.
SetTypeId
protected void SetTypeId(Guid typeId)
compositionDiagramElement.SetTypeId(typeId)

TypeId

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

Приостановить работу менеджера отмены/повтора для модели.

Undo
public void Undo()
compositionDiagramElement.Undo()

Восстановите состояние некоторых моделей до текущего состояния.

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

Обновите TypeId для элементов композиции.

id
Новое значение для TypeId. Может быть.

События

Changed
public event Action Changed
compositionDiagramElement.Changed += handler

Событие изменения схемы составного элемента.

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

Добавлен дочерний элемент.

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

Дочерний элемент удален.

StrategyChanged
public event Action StrategyChanged
compositionDiagramElement.StrategyChanged += handler

Поднимается при изменении стратегии.