CompositionDiagramElement
复合元素.
继承自: DiagramElement
构造函数
public CompositionDiagramElement(ICompositionModel model)
compositionDiagramElement = CompositionDiagramElement(model)
初始化了 & ##CompositionDiagramElement+#的新实例.
- model
- ICompositionModel
属性
public string Category { get; set; }
value = compositionDiagramElement.Category
compositionDiagramElement.Category = value
包含图元素的组名称 。
public override string DocUrl { get; set; }
value = compositionDiagramElement.DocUrl
compositionDiagramElement.DocUrl = value
文档url.
public IEnumerable<DiagramElement> Elements { get; }
value = compositionDiagramElement.Elements
要件
public override bool HasUndoManager { get; }
value = compositionDiagramElement.HasUndoManager
检查是否定义了撤消管理器
public override string IconName { get; }
value = compositionDiagramElement.IconName
图标资源名 。
public bool IsLoaded { get; set; }
value = compositionDiagramElement.IsLoaded
compositionDiagramElement.IsLoaded = value
是否装入了复合图元素 。
public override bool IsUndoRedoing { get; }
value = compositionDiagramElement.IsUndoRedoing
是否正在撤销/ 重做操作 。
public Exception LastError { get; internal set; }
value = compositionDiagramElement.LastError
compositionDiagramElement.LastError = value
最后一个错误 。
public DiagramElement LastErrorElement { get; internal set; }
value = compositionDiagramElement.LastErrorElement
compositionDiagramElement.LastErrorElement = value
最后一个错误元素 。
public ICompositionModel Model { get; set; }
value = compositionDiagramElement.Model
compositionDiagramElement.Model = value
ICompositionModel
public override IEnumerable<IDiagramElementParam> Parameters { get; }
value = compositionDiagramElement.Parameters
已计算参数 。
public int SchemaVersion { get; set; }
value = compositionDiagramElement.SchemaVersion
compositionDiagramElement.SchemaVersion = value
斯克马版本.
public override DiagramStrategy Strategy { get; set; }
value = compositionDiagramElement.Strategy
compositionDiagramElement.Strategy = value
要素所附带的战略。
方法
public bool CanRedo()
result = compositionDiagramElement.CanRedo()
这样的上游是真实的,当人们可以叫Redo。
返回值: 检查结果。
public bool CanUndo()
result = compositionDiagramElement.CanUndo()
此上游可调用 Undo 时为真.
返回值: 检查结果。
public override DiagramElement Clone(bool cloneSockets)
result = compositionDiagramElement.Clone(cloneSockets)
创建 CompositionDiagramElement 的副本 。
- cloneSockets
- 创建连接副本 。
返回值: 收到了,我们得去查查
public IEnumerable<DiagramSocket> ConnectedToSockets(DiagramSocket socket)
result = compositionDiagramElement.ConnectedToSockets(socket)
如果连接到这个插座, 则另设插座 。
- socket
- DiagramSocket
返回值: 连接到插座 。
protected override DiagramSocket CreateSocketInstance(DiagramSocketDirection dir, string socketId)
result = compositionDiagramElement.CreateSocketInstance(dir, socketId)
创建新套接字实例 。
public IEnumerable<MarketDepthPanelDiagramElement> FindMarketDepthPanels()
result = compositionDiagramElement.FindMarketDepthPanels()
找到所有%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
public IEnumerable<Portfolio> FindPortfolios()
result = compositionDiagramElement.FindPortfolios()
查找元素中的所有组合 。
public override void Flush(DateTime time)
compositionDiagramElement.Flush(time)
平滑非触发( root) 元素 。
public override string GetCategory()
result = compositionDiagramElement.GetCategory()
得到分类。
返回值: 类别。
public override string GetDescription()
result = compositionDiagramElement.GetDescription()
说明
返回值: Description.
public override string GetDisplayName()
result = compositionDiagramElement.GetDisplayName()
显示名称 。
返回值: Name.
public override void Load(SettingsStorage storage)
compositionDiagramElement.Load(storage)
装入设置 。
- storage
- 设置存储 。
protected override void OnProcess(DateTime time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
compositionDiagramElement.OnProcess(time, values, source)
这种方法在新入值的处理中被调用.
- time
- 时间到了
- values
- 价值.
- source
- 出处相值.
protected override void OnSocketConnected(DiagramSocket socket, DiagramSocket source)
compositionDiagramElement.OnSocketConnected(socket, source)
这种方法在订阅图元素输出值的处理时被调用.
- socket
- 图表元素套接字 。
- source
- 源图元素套接字 。
protected override void OnSocketDisconnected(DiagramSocket socket, DiagramSocket source)
compositionDiagramElement.OnSocketDisconnected(socket, source)
这种方法在未订阅时从图元素输出值的处理中调用.
- socket
- 图表元素套接字 。
- source
- 源图元素套接字 。
protected override void OnStart(DateTime time)
compositionDiagramElement.OnStart(time)
该方法在图元素算法的起步时被叫作.
protected void RaiseElementAdded(DiagramElement element)
compositionDiagramElement.RaiseElementAdded(element)
Invoke ElementAdded.
- element
- DiagramElement
protected void RaiseElementRemoved(DiagramElement element)
compositionDiagramElement.RaiseElementRemoved(element)
Invoke ElementRemoved.
- element
- DiagramElement
protected override void RaiseParameterValueChanged(string parameterName)
compositionDiagramElement.RaiseParameterValueChanged(parameterName)
致电"""""ParameterValueChanged"活动.
- parameterName
- 参数名.
protected void RaiseStrategyChanged()
compositionDiagramElement.RaiseStrategyChanged()
Invoke StrategyChanged.
public void ResumeUndoManager()
compositionDiagramElement.ResumeUndoManager()
恢复模型的撤销/重做管理器 。
public override void Save(SettingsStorage storage)
compositionDiagramElement.Save(storage)
保存设置 。
- storage
- 设置存储 。
protected void SetTypeId(Guid typeId)
compositionDiagramElement.SetTypeId(typeId)
TypeId
- typeId
- TypeId
public void SuspendUndoManager()
compositionDiagramElement.SuspendUndoManager()
暂停 Model 的撤销/重做管理器 。
public void UpdateTypeId(Guid? id)
compositionDiagramElement.UpdateTypeId(id)
Update TypeId for composition elements.
- id
- New value for TypeId. Can be .
事件
public event Action<DiagramElement> ElementAdded
compositionDiagramElement.ElementAdded += handler
增加了儿童因素。
public event Action<DiagramElement> ElementRemoved
compositionDiagramElement.ElementRemoved += handler
儿童元素被移除。
public event Action StrategyChanged
compositionDiagramElement.StrategyChanged += handler
战略改变后升起。