Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.Graphs.Connection Class Reference

Detailed Description

Connection descriptor.

Inheritance diagram for Doloro.Graphs.Connection:
Collaboration diagram for Doloro.Graphs.Connection:

Public Member Functions

 Connection (GraphNode from, GraphNode to, params object[] properties)
 Initializes connections with data. More...
 
virtual void Initialize (GraphNode from, GraphNode to, params object[] properties)
 Initializes connections with data. More...
 
virtual void GetObjectData (SerializationInfo info, StreamingContext context)
 
void Disconnect ()
 Releasing connections.
 
virtual void OnChanged ()
 Occurs when non static parameter has been changed.
 
override string ToString ()
 

Public Attributes

Action< ConnectiononChanged
 Occurs when a dynamic parameter has been changed.
 

Package Functions

 Connection (SerializationInfo info, StreamingContext context)
 

Properties

Graph graph [get]
 Graph instance related to the nodes. More...
 
GraphNode from [get]
 First graph node instance. More...
 
GraphNode to [get]
 Second graph node instance. More...
 
virtual int weight [get, set]
 Defines complexity weight for the connection.
 
virtual bool isDuplex [get, set]
 If true then the connection visible for both directions. Otherwise works only in direction from => to
 
Guid id [get]
 Connection id at the graph registry.
 
Guid graphId [get]
 Id of graph related to the from node.
 
string fromNodeSign [get]
 Signature of the first connection node.
 
string toNodeSign [get]
 Signature of the second connection node.
 
object[] properties [get]
 Collection of custom properties applied to the connection.
 
bool isObsolete [get]
 true in case if connection not longer exists.
 

Constructor & Destructor Documentation

◆ Connection()

Doloro.Graphs.Connection.Connection ( GraphNode  from,
GraphNode  to,
params object[]  properties 
)

Initializes connections with data.

Parameters
fromConnection source node.
toConnection destination node.
propertiesCustom properties applied to the connection.

Member Function Documentation

◆ Initialize()

virtual void Doloro.Graphs.Connection.Initialize ( GraphNode  from,
GraphNode  to,
params object[]  properties 
)
virtual

Initializes connections with data.

Parameters
fromConnection source node.
toConnection destination node.
propertiesCustom properties applied to the connection.
Exceptions
NotSupportedExceptionAttempt to establish connection for nodes from different graphs.

Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.CrossGraphVirtualConnection.

Property Documentation

◆ from

GraphNode Doloro.Graphs.Connection.from
get

First graph node instance.

Could cause exception in case if the graph isn't loaded.

◆ graph

Graph Doloro.Graphs.Connection.graph
get

Graph instance related to the nodes.

Could cause exception in case if the graph isn't loaded.

◆ to

GraphNode Doloro.Graphs.Connection.to
get

Second graph node instance.

Could cause exception in case if the graph isn't loaded.


The documentation for this class was generated from the following file: