CompositionDiagramElement

StockSharp.Diagram

Composite element.

继承自: DiagramElement

构造函数

CompositionDiagramElement(ICompositionModel)

Initializes a new instance of the CompositionDiagramElement.

model
ICompositionModel

属性

Category : string

The name of the group which includes a diagram element.

DocUrl : string

Documentation url.

HasErrors : bool

HasErrors

HasUndoManager : bool

Check if undo manager is defined

IconName : string

Icon resource name.

IsLoaded : bool

Is composite diagram element loaded.

IsUndoRedoing : bool

Whether undo/redo operation is in progress.

LastError : Exception

The last error.

LastErrorElement : DiagramElement

The last error element.

Model : ICompositionModel

ICompositionModel

Parameters : IEnumerable<IDiagramElementParam>

Calculated parameters.

SchemaVersion : int

Schema version.

Strategy : DiagramStrategy

The strategy to which the element is attached.

TypeId : Guid

Type id.

方法

CanRedo() : bool

This predicate is true when one can call Redo.

返回值: Check result.

CanUndo() : bool

This predicate is true when one can call Undo.

返回值: Check result.

Clone(bool) : DiagramElement

Create a copy of CompositionDiagramElement.

cloneSockets
To create copies of connections.

返回值: Copy.

ConnectedToSockets(DiagramSocket) : IEnumerable<DiagramSocket>

Other sockets if this one is connected.

socket
DiagramSocket

返回值: Connected sockets.

FindMarketDepthPanels() : IEnumerable<MarketDepthPanelDiagramElement>

Find all MarketDepthPanelDiagramElement.

FindPortfolios() : IEnumerable<Portfolio>

Find all portfolios in elements.

Flush(DateTime)

Flush non trigger (root) elements.

GetCategory() : string

Get category.

返回值: Category.

GetDescription() : string

Description.

GetDisplayName() : string

Display name.

Load(SettingsStorage)

Load settings.

storage
Settings storage.
OnInit()

The method is called at initialization of the diagram element.

OnPrepare()

To prepare for starting the diagram element algorithm.

OnProcess(DateTime, IDictionary<DiagramSocket, DiagramSocketValue>, DiagramSocketValue)

The method is called at the processing of the new incoming values.

time
Time.
values
Values.
source
Source value.
OnReseted()

It is called from the Reset method.

OnSocketConnected(DiagramSocket, DiagramSocket)

The method is called at subscription to the processing of diagram element output values.

socket
The diagram element socket.
source
The source diagram element socket.
OnSocketDisconnected(DiagramSocket, DiagramSocket)

The method is called at unsubscription from the processing of diagram element output values.

socket
The diagram element socket.
source
The source diagram element socket.
OnStart(DateTime)

The method is called at the start of the diagram element algorithm.

OnStop()

The method is called at the stop of the diagram element algorithm.

OnUnInit()

The method is called at deinitialization of the diagram element.

RaiseChanged()

Invoke Changed.

RaiseElementAdded(DiagramElement)

Invoke ElementAdded.

element
DiagramElement
RaiseElementRemoved(DiagramElement)

Invoke ElementRemoved.

element
DiagramElement
RaiseParameterValueChanged(string)

To call the ParameterValueChanged event.

parameterName
Parameter name.
RaiseStrategyChanged()

Invoke StrategyChanged.

Redo()

Restore the state of some models to after the current state.

ResumeUndoManager()

Resume undo/redo manager for Model.

Save(SettingsStorage)

Save settings.

storage
Settings storage.
SetTypeId(Guid)

TypeId

typeId
TypeId
SuspendUndoManager()

Suspend undo/redo manager for Model.

Undo()

Restore the state of some models to before the current state.

UpdateTypeId(Guid?)

Update TypeId for composition elements.

id
New value for TypeId. Can be .

事件

Changed : Action

The composite element diagram change event.

ElementAdded : Action<DiagramElement>

Child element added.

ElementRemoved : Action<DiagramElement>

Child element removed.

StrategyChanged : Action

Raised when strategy changed.