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

检查是否定义了撤消管理器

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

是否正在撤销/ 重做操作 。

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()

找到所有%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

查找元素中的所有组合 。

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

平滑非触发( root) 元素 。

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()

是从重置方法调用的。

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)

Invoke ElementAdded.

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

Invoke ElementRemoved.

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

致电"""""ParameterValueChanged"活动.

parameterName
参数名.
RaiseStrategyChanged
protected void RaiseStrategyChanged()
compositionDiagramElement.RaiseStrategyChanged()

Invoke 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()

暂停 Model 的撤销/重做管理器 。

Undo
public void Undo()
compositionDiagramElement.Undo()

将一些模型状态恢复到当前状态之前 。

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

Update TypeId for composition elements.

id
New value for TypeId. Can be .

事件

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

战略改变后升起。