Table of Contents

Class DummyCompositionModelBehavior

Namespace
StockSharp.Diagram
Assembly
StockSharp.Diagram.Core.dll

Dummy implementation of ICompositionModelBehavior<TNode, TLink>.

public class DummyCompositionModelBehavior : ICompositionModelBehavior<DummyCompositionModelNode, DummyCompositionModelLink>, ICloneable
Inheritance
DummyCompositionModelBehavior
Implements
Inherited Members
Extension Methods

Constructors

DummyCompositionModelBehavior()

public DummyCompositionModelBehavior()

Properties

IsUndoManagerSuspended

Undo manager is suspended if this property is set to true.

public bool IsUndoManagerSuspended { get; set; }

Property Value

bool

Links.

public IEnumerable<DummyCompositionModelLink> Links { get; set; }

Property Value

IEnumerable<DummyCompositionModelLink>

Modifiable

Is it possible to edit a composite element diagram.

public bool Modifiable { get; set; }

Property Value

bool

Nodes

Nodes.

public IEnumerable<DummyCompositionModelNode> Nodes { get; set; }

Property Value

IEnumerable<DummyCompositionModelNode>

Parent

Parent.

public ICompositionModel Parent { get; set; }

Property Value

ICompositionModel

UndoManager

public IUndoManager UndoManager { get; set; }

Property Value

IUndoManager

Methods

Add link.

public void AddLink(DummyCompositionModelLink link)

Parameters

link DummyCompositionModelLink

DummyCompositionModelLink

Add link.

public DummyCompositionModelLink AddLink(DummyCompositionModelNode from, string fromPort, DummyCompositionModelNode to, string toPort)

Parameters

from DummyCompositionModelNode

From node.

fromPort string

FromPort

to DummyCompositionModelNode

To node.

toPort string

ToPort

Returns

DummyCompositionModelLink

DummyCompositionModelLink

AddNode(DummyCompositionModelNode)

Add node.

public void AddNode(DummyCompositionModelNode node)

Parameters

node DummyCompositionModelNode

DummyCompositionModelNode

CommitTransaction(string)

Commit transaction.

public bool CommitTransaction(string name)

Parameters

name string

Operation name.

Returns

bool

Operation result.

FindNodeByKey(string)

Find node by key.

public DummyCompositionModelNode FindNodeByKey(string key)

Parameters

key string

Key.

Returns

DummyCompositionModelNode

DummyCompositionModelNode

GetLinksForNode(DummyCompositionModelNode)

Get all links for the specified node.

public IEnumerable<DummyCompositionModelLink> GetLinksForNode(DummyCompositionModelNode node)

Parameters

node DummyCompositionModelNode

DummyCompositionModelNode

Returns

IEnumerable<DummyCompositionModelLink>

Links.

RaiseCommited(string, DummyCompositionModelNode, IUndoableEdit)

Raise commited event.

public void RaiseCommited(string name, DummyCompositionModelNode node, IUndoableEdit op)

Parameters

name string

Opeation name.

node DummyCompositionModelNode

DummyCompositionModelNode

op IUndoableEdit

IUndoableEdit

RaiseLinksRemoved(DummyCompositionModelNode)

Raise links removed event.

public void RaiseLinksRemoved(DummyCompositionModelNode node)

Parameters

node DummyCompositionModelNode

DummyCompositionModelNode

RaiseSocketAdded(DummyCompositionModelNode)

Raise socket added event.

public void RaiseSocketAdded(DummyCompositionModelNode node)

Parameters

node DummyCompositionModelNode

DummyCompositionModelNode

Remove link.

public void RemoveLink(DummyCompositionModelLink link)

Parameters

link DummyCompositionModelLink

DummyCompositionModelLink

Remove link.

public void RemoveLink(DummyCompositionModelNode from, string fromPort, DummyCompositionModelNode to, string toPort)

Parameters

from DummyCompositionModelNode

From node.

fromPort string

FromPort

to DummyCompositionModelNode

To node.

toPort string

ToPort

RemoveNode(DummyCompositionModelNode)

Remove node.

public void RemoveNode(DummyCompositionModelNode node)

Parameters

node DummyCompositionModelNode

DummyCompositionModelNode

RollbackTransaction()

Rollback transaction.

public bool RollbackTransaction()

Returns

bool

Operation result.

StartTransaction(string)

Start transaction.

public bool StartTransaction(string name)

Parameters

name string

Operation name.

Returns

bool

Operation result.

Events

BehaviorChanged

Changed event.

public event Action<(ModelChange change, object data, string propName, object oldValue, object oldParam, object newValue, object newParam)> BehaviorChanged

Event Type

Action<(ModelChange change, object data, string propName, object oldValue, object oldParam, object newValue, object newParam)>