DiagramElement
图表元素 。
继承自: BaseLogReceiver
实现: INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable
构造函数
protected DiagramElement()
diagramElement = DiagramElement()
初始化了 & ##DiagramElement+#的新实例.
属性
public bool CanAutoName { get; set; }
value = diagramElement.CanAutoName
diagramElement.CanAutoName = value
使用自动命名 。
public virtual string Category { get; private set; }
value = diagramElement.Category
diagramElement.Category = value
包含图元素的组名称 。
public DebuggerSyncObject DebuggerSyncObject { get; set; }
value = diagramElement.DebuggerSyncObject
diagramElement.DebuggerSyncObject = value
调试器的同步对象 。
public virtual string Description { get; private set; }
value = diagramElement.Description
diagramElement.Description = value
图表元素描述 。
protected virtual IDispatcher Dispatcher { get; }
value = diagramElement.Dispatcher
我发遣使.
public virtual string DocUrl { get; set; }
value = diagramElement.DocUrl
diagramElement.DocUrl = value
帮帮我们
public int FlushPriority { get; protected set; }
value = diagramElement.FlushPriority
diagramElement.FlushPriority = value
Is need flush state (FlushDisabled means No).
public virtual bool HasUndoManager { get; }
value = diagramElement.HasUndoManager
检查是否定义了撤消管理器
public IReadOnlyCollection<DiagramSocket> InputSockets { get; }
value = diagramElement.InputSockets
接通了关系
public virtual bool IsExternalCode { get; }
value = diagramElement.IsExternalCode
元素是否包含外部代码 。
public virtual bool IsUndoRedoing { get; }
value = diagramElement.IsUndoRedoing
是否正在撤销/ 重做操作 。
public override LogLevels LogLevel { get; set; }
value = diagramElement.LogLevel
diagramElement.LogLevel = value
执行此规则的级别 。
public override string Name { get; set; }
value = diagramElement.Name
diagramElement.Name = value
名曰为相.
public IReadOnlyCollection<DiagramSocket> OutputSockets { get; }
value = diagramElement.OutputSockets
外出连接。
public virtual IEnumerable<IDiagramElementParam> Parameters { get; }
value = diagramElement.Parameters
图表元素设置 。
public CompositionDiagramElement ParentComposition { get; private set; }
value = diagramElement.ParentComposition
diagramElement.ParentComposition = value
父组成元素属于此元素 。
protected int ProcessingLevel { get; private set; }
value = diagramElement.ProcessingLevel
diagramElement.ProcessingLevel = value
Element processing level. How many times DiagramSocketValue) is reentered.
public bool ProcessNullValues { get; set; }
value = diagramElement.ProcessNullValues
diagramElement.ProcessNullValues = value
处理无效值 。
public bool ShowParameters { get; set; }
value = diagramElement.ShowParameters
diagramElement.ShowParameters = value
以高顺序元素显示元素参数。
public bool ShowSockets { get; set; }
value = diagramElement.ShowSockets
diagramElement.ShowSockets = value
在高阶元素中显示元素套接字 。
public virtual DiagramStrategy Strategy { get; set; }
value = diagramElement.Strategy
diagramElement.Strategy = value
要素所附带的战略。
protected virtual bool WaitAllInput { get; }
value = diagramElement.WaitAllInput
等待所有参数后, 才能引用方法 。
方法
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 的套接字 。
返回值: 连接。
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 的套接字 。
返回值: 连接。
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
- 动态套接字在装入( ) 时被移除 。
返回值: 连接。
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
- 动态套接字在装入( ) 时被移除 。
返回值: 连接。
protected void AddParam(IDiagramElementParam param)
diagramElement.AddParam(param)
要添加一个参数 。
- param
- 参数 。
protected DiagramElementParam<T> AddParam<T>(string name, T value)
result = diagramElement.AddParam(name, value)
要添加一个参数 。
- name
- 名曰为相.
- value
- 价值.
返回值: 参数 。
public virtual void ClearSocketValues()
diagramElement.ClearSocketValues()
清除套接字值 。
public virtual DiagramElement Clone(bool cloneSockets)
result = diagramElement.Clone(cloneSockets)
Create a copy of DiagramElement.
- cloneSockets
- 创建连接副本 。
返回值: 收到了,我们得去查查
protected virtual DiagramElement CreateCopy()
result = diagramElement.CreateCopy()
Create a copy of DiagramElement.
返回值: DiagramElement copy.
protected virtual DiagramSocket CreateSocketInstance(DiagramSocketDirection dir, string socketId)
result = diagramElement.CreateSocketInstance(dir, socketId)
创建新套接字实例 。
public static string GenerateSocketId(string suffix)
result = DiagramElement.GenerateSocketId(suffix)
生成套接字标识符 。
- suffix
- 后结相.
返回值: 辨相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相
public virtual string GetCategory()
result = diagramElement.GetCategory()
得到分类。
返回值: 类别。
public DiagramSocket[] GetConnectedSourceSockets(DiagramSocket targetInputSocket)
result = diagramElement.GetConnectedSourceSockets(targetInputSocket)
获取连接源套接字 。
- targetInputSocket
public virtual string GetDescription()
result = diagramElement.GetDescription()
获取描述。
返回值: 说明
public virtual string GetDisplayName()
result = diagramElement.GetDisplayName()
获取显示名称 。
返回值: 名曰为相.
public int GetNumConnections(DiagramSocket socket)
result = diagramElement.GetNumConnections(socket)
联系点数
- socket
- 袜子。
返回值: 数起.
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
- 如果已有套接字, 则返回已存在的套接字 。
返回值: 连接。
public virtual void InitializeCopy(DiagramElement copiedFrom)
diagramElement.InitializeCopy(copiedFrom)
public override void Load(SettingsStorage storage)
diagramElement.Load(storage)
装入设置 。
- storage
- 设置存储 。
protected virtual void OnProcess(DateTime time, IDictionary<DiagramSocket, DiagramSocketValue> values, DiagramSocketValue source)
diagramElement.OnProcess(time, values, source)
这种方法在新入值的处理中被调用.
- time
- 时间到了
- values
- 价值.
- source
- 出处相值.
protected virtual void OnSocketConnected(DiagramSocket socket, DiagramSocket source)
diagramElement.OnSocketConnected(socket, source)
这种方法在订阅图元素输出值的处理时被调用.
- socket
- 图表元素套接字 。
- source
- 源图元素套接字 。
protected virtual void OnSocketDisconnected(DiagramSocket socket, DiagramSocket source)
diagramElement.OnSocketDisconnected(socket, source)
这种方法在未订阅时从图元素输出值的处理中调用.
- socket
- 图表元素套接字 。
- source
- 源图元素套接字 。
protected virtual void OnStart(DateTime time)
diagramElement.OnStart(time)
该方法在图元素算法的起步时被叫作.
protected virtual void RaiseParameterValueChanged(string parameterName)
diagramElement.RaiseParameterValueChanged(parameterName)
致电"""""ParameterValueChanged"活动.
- parameterName
- 参数名.
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
- 订阅.
protected virtual void RaisePropertiesChanged()
diagramElement.RaisePropertiesChanged()
致电"""""PropertiesChanged"活动.
protected virtual void RaisePropertyChanged(string propertyName)
diagramElement.RaisePropertyChanged(propertyName)
致电"""""PropertyChanged"活动.
- propertyName
- 地产名.
protected virtual void RaisePropertyChanged(object sender, PropertyChangedEventArgs args)
diagramElement.RaisePropertyChanged(sender, args)
致电"""""PropertyChanged"活动.
- sender
- 发者.
- args
- 辩才相.
protected virtual void RaisePropertyChanging(string propertyName)
diagramElement.RaisePropertyChanging(propertyName)
致电"""""PropertyChanging"活动.
- propertyName
- 地产名.
protected virtual void RaisePropertyChanging(object sender, PropertyChangingEventArgs args)
diagramElement.RaisePropertyChanging(sender, args)
致电"""""PropertyChanging"活动.
- sender
- 发者.
- args
- 辩才相.
protected void RaiseSocketChanged(DiagramSocket socket)
diagramElement.RaiseSocketChanged(socket)
To call the event SocketChanged.
- socket
- 袜子。
protected void RemoveParam(IDiagramElementParam param)
diagramElement.RemoveParam(param)
要删除一个参数 。
- param
- 参数 。
protected void RemoveSocket(DiagramSocket socket)
diagramElement.RemoveSocket(socket)
以去去去去一相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相通相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相
- socket
- 连接。
protected void RemoveSockets(Func<DiagramSocket, bool> predicate, bool raiseSocketRemoved)
diagramElement.RemoveSockets(predicate, raiseSocketRemoved)
移除多个套接字 。
- predicate
- raiseSocketRemoved
- Raise SocketRemoved event.
protected virtual void RemoveSockets(bool raiseSocketRemoved)
diagramElement.RemoveSockets(raiseSocketRemoved)
移除所有进出连接 。
- raiseSocketRemoved
- Raise SocketRemoved event.
protected void ResetFlushPriority()
diagramElement.ResetFlushPriority()
Reset FlushPriority.
public override void Save(SettingsStorage storage)
diagramElement.Save(storage)
保存设置 。
- storage
- 设置存储 。
protected IDisposable SaveUndoState(object debugState)
result = diagramElement.SaveUndoState(debugState)
保存状态以启用撤销 。
protected void SetElementName(string name)
diagramElement.SetElementName(name)
设置元素名称 。
- name
- 名曰为相.
事件
public event Action<DiagramElement, IUndoableEdit> CommittedUndoableOperation
diagramElement.CommittedUndoableOperation += handler
进行无法解除的行动。
public event Action<string> ParameterValueChanged
diagramElement.ParameterValueChanged += handler
图表元素参数值变化事件 。
public event Action<DiagramSocketValue> ProcessOutput
diagramElement.ProcessOutput += handler
正在发生新数据事件。
public event Action PropertiesChanged
diagramElement.PropertiesChanged += handler
可用的属性更改事件 。
public event PropertyChangedEventHandler PropertyChanged
diagramElement.PropertyChanged += handler
图表元素属性值变化事件 。
public event PropertyChangingEventHandler PropertyChanging
diagramElement.PropertyChanging += handler
图表元素属性值变化事件 。
public event Action<DiagramSocket> SocketAdded
diagramElement.SocketAdded += handler
图表元素连接添加事件 。
public event Action<DiagramSocket> SocketChanged
diagramElement.SocketChanged += handler
图表元素连接更改事件 。
public event Action<DiagramSocket> SocketRemoved
diagramElement.SocketRemoved += handler
已删除的图元素连接事件 。
public event Action StartedUndoableOperation
diagramElement.StartedUndoableOperation += handler
开始无法操作 。
字段
protected const int FlushDisabled
value = DiagramElement.FlushDisabled
Disabled value for FlushPriority.
protected const int FlushNormal
value = DiagramElement.FlushNormal
Normal value for FlushPriority.