DiagramElement

StockSharp.Diagram

图表元素 。

继承自: BaseLogReceiver

实现: INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable

构造函数

DiagramElement
protected DiagramElement()
diagramElement = DiagramElement()

初始化了 & ##DiagramElement+#的新实例.

属性

CanAutoName
public bool CanAutoName { get; set; }
value = diagramElement.CanAutoName
diagramElement.CanAutoName = value

使用自动命名 。

Category
public virtual string Category { get; private set; }
value = diagramElement.Category
diagramElement.Category = value

包含图元素的组名称 。

Connector
protected IConnector Connector { get; }
value = diagramElement.Connector

Connector.

DebuggerSyncObject
public DebuggerSyncObject DebuggerSyncObject { get; set; }
value = diagramElement.DebuggerSyncObject
diagramElement.DebuggerSyncObject = value

调试器的同步对象 。

Description
public virtual string Description { get; private set; }
value = diagramElement.Description
diagramElement.Description = value

图表元素描述 。

Dispatcher
protected virtual IDispatcher Dispatcher { get; }
value = diagramElement.Dispatcher

我发遣使.

DocUrl
public virtual string DocUrl { get; set; }
value = diagramElement.DocUrl
diagramElement.DocUrl = value

帮帮我们

FlushPriority
public int FlushPriority { get; protected set; }
value = diagramElement.FlushPriority
diagramElement.FlushPriority = value

Is need flush state (FlushDisabled means No).

HasUndoManager
public virtual bool HasUndoManager { get; }
value = diagramElement.HasUndoManager

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

IconName
public abstract string IconName { get; }
value = diagramElement.IconName

图标资源名 。

InputSockets
public IReadOnlyCollection<DiagramSocket> InputSockets { get; }
value = diagramElement.InputSockets

接通了关系

IsExternalCode
public virtual bool IsExternalCode { get; }
value = diagramElement.IsExternalCode

元素是否包含外部代码 。

IsUndoRedoing
public virtual bool IsUndoRedoing { get; }
value = diagramElement.IsUndoRedoing

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

LogLevel
public override LogLevels LogLevel { get; set; }
value = diagramElement.LogLevel
diagramElement.LogLevel = value

执行此规则的级别 。

Name
public override string Name { get; set; }
value = diagramElement.Name
diagramElement.Name = value

名曰为相.

OutputSockets
public IReadOnlyCollection<DiagramSocket> OutputSockets { get; }
value = diagramElement.OutputSockets

外出连接。

Parameters
public virtual IEnumerable<IDiagramElementParam> Parameters { get; }
value = diagramElement.Parameters

图表元素设置 。

ParentComposition
public CompositionDiagramElement ParentComposition { get; private set; }
value = diagramElement.ParentComposition
diagramElement.ParentComposition = value

父组成元素属于此元素 。

ProcessingLevel
protected int ProcessingLevel { get; private set; }
value = diagramElement.ProcessingLevel
diagramElement.ProcessingLevel = value

Element processing level. How many times DiagramSocketValue) is reentered.

ProcessNullValues
public bool ProcessNullValues { get; set; }
value = diagramElement.ProcessNullValues
diagramElement.ProcessNullValues = value

处理无效值 。

ShowParameters
public bool ShowParameters { get; set; }
value = diagramElement.ShowParameters
diagramElement.ShowParameters = value

以高顺序元素显示元素参数。

ShowSockets
public bool ShowSockets { get; set; }
value = diagramElement.ShowSockets
diagramElement.ShowSockets = value

在高阶元素中显示元素套接字 。

Strategy
public virtual DiagramStrategy Strategy { get; set; }
value = diagramElement.Strategy
diagramElement.Strategy = value

要素所附带的战略。

TypeId
public abstract Guid TypeId { get; }
value = diagramElement.TypeId

图表元素类型的独特标识符 。

WaitAllInput
protected virtual bool WaitAllInput { get; }
value = diagramElement.WaitAllInput

等待所有参数后, 才能引用方法 。

方法

AddInput
protected DiagramSocket AddInput(StaticSocketIds id, string name, DiagramSocketType type, Action<DiagramSocketValue> process, int linkableMax, int index, bool? isDynamic)
result = diagramElement.AddInput(id, name, type, process, linkableMax, index, isDynamic)

要添加或获取已有的接通连接。 isDynamic 默认是虚假的 。

id
连接标识符 。
name
接通名.
type
连接类型 。
linkableMax
连接的最大数量 。
process
要求处理套接字的新入值。
index
套接字列表中的索引 。
isDynamic
套接字将随元素一起被保存。 默认是带有明确 ID 的套接字 。

返回值: 连接。

AddInput
protected DiagramSocket AddInput(string id, string name, DiagramSocketType type, Action<DiagramSocketValue> process, int linkableMax, int index, bool? isDynamic)
result = diagramElement.AddInput(id, name, type, process, linkableMax, index, isDynamic)

要添加或获取已有的接通连接。 isDynamic 默认为真实 。

id
连接标识符 。
name
接通名.
type
连接类型 。
linkableMax
连接的最大数量 。
process
要求处理套接字的新入值。
index
套接字列表中的索引 。
isDynamic
套接字将随元素一起被保存。 默认是带有明确 ID 的套接字 。

返回值: 连接。

AddOutput
protected DiagramSocket AddOutput(StaticSocketIds id, string name, DiagramSocketType type, int linkableMax, int index, bool isDynamic)
result = diagramElement.AddOutput(id, name, type, linkableMax, index, isDynamic)

要添加或获得一个正在发送的连接 。

id
连接标识符 。
name
接通名.
type
连接类型 。
linkableMax
连接的最大数量 。
index
套接字列表中的索引 。
isDynamic
动态套接字在装入( ) 时被移除 。

返回值: 连接。

AddOutput
protected DiagramSocket AddOutput(string id, string name, DiagramSocketType type, int linkableMax, int index, bool isDynamic)
result = diagramElement.AddOutput(id, name, type, linkableMax, index, isDynamic)

要添加或获得一个正在发送的连接 。

id
连接标识符 。
name
接通名.
type
连接类型 。
linkableMax
连接的最大数量 。
index
套接字列表中的索引 。
isDynamic
动态套接字在装入( ) 时被移除 。

返回值: 连接。

AddParam
protected void AddParam(IDiagramElementParam param)
diagramElement.AddParam(param)

要添加一个参数 。

param
参数 。
AddParam``1
protected DiagramElementParam<T> AddParam<T>(string name, T value)
result = diagramElement.AddParam(name, value)

要添加一个参数 。

name
名曰为相.
value
价值.

返回值: 参数 。

ClearSocketValues
public virtual void ClearSocketValues()
diagramElement.ClearSocketValues()

清除套接字值 。

Clone
public virtual DiagramElement Clone(bool cloneSockets)
result = diagramElement.Clone(cloneSockets)

Create a copy of DiagramElement.

cloneSockets
创建连接副本 。

返回值: 收到了,我们得去查查

CreateCopy
protected virtual DiagramElement CreateCopy()
result = diagramElement.CreateCopy()

Create a copy of DiagramElement.

返回值: DiagramElement copy.

CreateSocketInstance
protected virtual DiagramSocket CreateSocketInstance(DiagramSocketDirection dir, string socketId)
result = diagramElement.CreateSocketInstance(dir, socketId)

创建新套接字实例 。

DisposeManaged
protected override void DisposeManaged()
diagramElement.DisposeManaged()

释放资源。

Flush
public virtual void Flush(DateTime time)
diagramElement.Flush(time)

平滑非触发( root) 元素 。

GenerateSocketId
public static string GenerateSocketId(string suffix)
result = DiagramElement.GenerateSocketId(suffix)

生成套接字标识符 。

suffix
后结相.

返回值: 辨相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相

GetCategory
public virtual string GetCategory()
result = diagramElement.GetCategory()

得到分类。

返回值: 类别。

GetConnectedSourceSockets
public DiagramSocket[] GetConnectedSourceSockets(DiagramSocket targetInputSocket)
result = diagramElement.GetConnectedSourceSockets(targetInputSocket)

获取连接源套接字 。

targetInputSocket
GetDescription
public virtual string GetDescription()
result = diagramElement.GetDescription()

获取描述。

返回值: 说明

GetDisplayName
public virtual string GetDisplayName()
result = diagramElement.GetDisplayName()

获取显示名称 。

返回值: 名曰为相.

GetNumConnections
public int GetNumConnections(DiagramSocket socket)
result = diagramElement.GetNumConnections(socket)

联系点数

socket
袜子。

返回值: 数起.

GetOrAddSocket
protected ValueTuple<DiagramSocket, bool> GetOrAddSocket(string socketId, DiagramSocketDirection dir, string name, DiagramSocketType type, Action<DiagramSocketValue> process, int linkableMax, int index, bool isDynamic, bool allowGet)
result = diagramElement.GetOrAddSocket(socketId, dir, name, type, process, linkableMax, index, isDynamic, allowGet)

要添加或获得一个正在发送的连接 。

socketId
连接标识符 。
dir
DiagramSocketDirection
name
接通名.
type
连接类型 。
process
要求处理套接字的新入值。
linkableMax
连接的最大数量 。
index
套接字列表中的索引 。
isDynamic
Dynamic sockets are removed during SettingsStorage).
allowGet
如果已有套接字, 则返回已存在的套接字 。

返回值: 连接。

Init
public void Init(ILogSource parent)
diagramElement.Init(parent)

以初始化元素.

parent
父母的组成或策略。
InitializeCopy
public virtual void InitializeCopy(DiagramElement copiedFrom)
diagramElement.InitializeCopy(copiedFrom)
Load
public override void Load(SettingsStorage storage)
diagramElement.Load(storage)

装入设置 。

storage
设置存储 。
OnInit
protected virtual void OnInit()
diagramElement.OnInit()

这种方法在图元素初始化时被叫作.

OnPrepare
protected virtual void OnPrepare()
diagramElement.OnPrepare()

准备启动图元素算法 。

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

这种方法在新入值的处理中被调用.

time
时间到了
values
价值.
source
出处相值.
OnReseted
protected virtual void OnReseted()
diagramElement.OnReseted()

这种方法在图元素状态再初始化时被叫作.

OnSocketConnected
protected virtual void OnSocketConnected(DiagramSocket socket, DiagramSocket source)
diagramElement.OnSocketConnected(socket, source)

这种方法在订阅图元素输出值的处理时被调用.

socket
图表元素套接字 。
source
源图元素套接字 。
OnSocketDisconnected
protected virtual void OnSocketDisconnected(DiagramSocket socket, DiagramSocket source)
diagramElement.OnSocketDisconnected(socket, source)

这种方法在未订阅时从图元素输出值的处理中调用.

socket
图表元素套接字 。
source
源图元素套接字 。
OnStart
protected virtual void OnStart(DateTime time)
diagramElement.OnStart(time)

该方法在图元素算法的起步时被叫作.

OnStop
protected virtual void OnStop()
diagramElement.OnStop()

这种方法在图元素算法的站点被称作.

OnUnInit
protected virtual void OnUnInit()
diagramElement.OnUnInit()

该方法在图元素去初始化时被称作.

Prepare
public void Prepare()
diagramElement.Prepare()

准备启动图元素算法 。

Process
public void Process(DiagramSocketValue value)
diagramElement.Process(value)

处理入值。

value
价值.
RaiseParameterValueChanged
protected virtual void RaiseParameterValueChanged(string parameterName)
diagramElement.RaiseParameterValueChanged(parameterName)

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

parameterName
参数名.
RaiseProcessOutput
protected void RaiseProcessOutput(DiagramSocket socket, DateTime time, object value, DiagramSocketValue source, Subscription subscription)
diagramElement.RaiseProcessOutput(socket, time, value, source, subscription)

To call the event ProcessOutput.

socket
输出套接字 。
time
时间到了
value
价值.
source
出处相值.
subscription
订阅.
RaisePropertiesChanged
protected virtual void RaisePropertiesChanged()
diagramElement.RaisePropertiesChanged()

致电"""""PropertiesChanged"活动.

RaisePropertyChanged
protected virtual void RaisePropertyChanged(string propertyName)
diagramElement.RaisePropertyChanged(propertyName)

致电"""""PropertyChanged"活动.

propertyName
地产名.
RaisePropertyChanged
protected virtual void RaisePropertyChanged(object sender, PropertyChangedEventArgs args)
diagramElement.RaisePropertyChanged(sender, args)

致电"""""PropertyChanged"活动.

sender
发者.
args
辩才相.
RaisePropertyChanging
protected virtual void RaisePropertyChanging(string propertyName)
diagramElement.RaisePropertyChanging(propertyName)

致电"""""PropertyChanging"活动.

propertyName
地产名.
RaisePropertyChanging
protected virtual void RaisePropertyChanging(object sender, PropertyChangingEventArgs args)
diagramElement.RaisePropertyChanging(sender, args)

致电"""""PropertyChanging"活动.

sender
发者.
args
辩才相.
RaiseSocketChanged
protected void RaiseSocketChanged(DiagramSocket socket)
diagramElement.RaiseSocketChanged(socket)

To call the event SocketChanged.

socket
袜子。
RemoveParam
protected void RemoveParam(IDiagramElementParam param)
diagramElement.RemoveParam(param)

要删除一个参数 。

param
参数 。
RemoveSocket
protected void RemoveSocket(DiagramSocket socket)
diagramElement.RemoveSocket(socket)

以去去去去一相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相

socket
连接。
RemoveSockets
protected void RemoveSockets(Func<DiagramSocket, bool> predicate, bool raiseSocketRemoved)
diagramElement.RemoveSockets(predicate, raiseSocketRemoved)

移除多个套接字 。

predicate
raiseSocketRemoved
Raise SocketRemoved event.
RemoveSockets
protected virtual void RemoveSockets(bool raiseSocketRemoved)
diagramElement.RemoveSockets(raiseSocketRemoved)

移除所有进出连接 。

raiseSocketRemoved
Raise SocketRemoved event.
Reset
public void Reset()
diagramElement.Reset()

重新初始化图元素状态 。

ResetFlushPriority
protected void ResetFlushPriority()
diagramElement.ResetFlushPriority()

Reset FlushPriority.

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

保存设置 。

storage
设置存储 。
SaveUndoState
protected IDisposable SaveUndoState(object debugState)
result = diagramElement.SaveUndoState(debugState)

保存状态以启用撤销 。

SetElementName
protected void SetElementName(string name)
diagramElement.SetElementName(name)

设置元素名称 。

name
名曰为相.
Start
public void Start(DateTime time)
diagramElement.Start(time)

要开始图元素算法 。

Stop
public void Stop()
diagramElement.Stop()

停止图元素算法 。

UnInit
public void UnInit()
diagramElement.UnInit()

元素的去初始化.

事件

CommittedUndoableOperation
public event Action<DiagramElement, IUndoableEdit> CommittedUndoableOperation
diagramElement.CommittedUndoableOperation += handler

进行无法解除的行动。

ParameterValueChanged
public event Action<string> ParameterValueChanged
diagramElement.ParameterValueChanged += handler

图表元素参数值变化事件 。

ProcessOutput
public event Action<DiagramSocketValue> ProcessOutput
diagramElement.ProcessOutput += handler

正在发生新数据事件。

PropertiesChanged
public event Action PropertiesChanged
diagramElement.PropertiesChanged += handler

可用的属性更改事件 。

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
diagramElement.PropertyChanged += handler

图表元素属性值变化事件 。

PropertyChanging
public event PropertyChangingEventHandler PropertyChanging
diagramElement.PropertyChanging += handler

图表元素属性值变化事件 。

SocketAdded
public event Action<DiagramSocket> SocketAdded
diagramElement.SocketAdded += handler

图表元素连接添加事件 。

SocketChanged
public event Action<DiagramSocket> SocketChanged
diagramElement.SocketChanged += handler

图表元素连接更改事件 。

SocketRemoved
public event Action<DiagramSocket> SocketRemoved
diagramElement.SocketRemoved += handler

已删除的图元素连接事件 。

StartedUndoableOperation
public event Action StartedUndoableOperation
diagramElement.StartedUndoableOperation += handler

开始无法操作 。

字段

FlushDisabled
protected const int FlushDisabled
value = DiagramElement.FlushDisabled

Disabled value for FlushPriority.

FlushNormal
protected const int FlushNormal
value = DiagramElement.FlushNormal

Normal value for FlushPriority.