Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Graph that implements cross graphs connections logic.
Classes | |
class | CrossGraphVirtualConnection |
Describes virtual link between two graphs. More... | |
class | RelayGraphNode |
Node of the network that relays to another one real node. More... | |
class | TransferGraphNode |
Node that has no a real implementation and using to connect several real nodes within virtual graph. More... | |
Public Member Functions | |
GraphsNetwork () | |
Creates new networks of Graphs. | |
void | Connect (AFragmentGraph graph1, AFragmentGraph graph2, Direction direction=Direction.Default) |
Attach one fragment graph to another. More... | |
void | Connect (GraphNode graph1node, GraphNode graph2node, Direction direction=Direction.Default) |
Connects two nodes from a different Graphs into the network. More... | |
void | Disconnect (GraphNode graph1node, GraphNode graph2node) |
Disconnects two nodes withing the network. More... | |
bool | IsConnected (GraphNode from, GraphNode to) |
Checks is the pair of nodes are connected to each other. More... | |
virtual bool | Add (Graph graph) |
Adds graph to the network database. More... | |
void | Add (AFragmentGraph graph) |
Adds fragment graph to the network along with auto declaring of entire exists Enter nodes. More... | |
virtual bool | Remove (Graph graph) |
Removes graph presence from the network along with releasing of entire connections. More... | |
override void | Add (GraphNode node) |
Adding outside node to the network. More... | |
override bool | Remove (GraphNode node) |
Removes node connected to the network from the network. More... | |
override bool | Remove (string nodeSignature) |
Removes node connected to the network from the network. More... | |
override bool | Contains (string nodeSignature) |
Checks is the outside node included to the network. More... | |
override bool | Contains (GraphNode node) |
Checks is the outside node included to the network. More... | |
Path | BuildPath (GraphNode from, Direction escapeDirection, GraphNode to, Direction enteringDirection) |
Attempts to build path from one node to another withing graph network. More... | |
async Task< Path > | BuildPathAsync (GraphNode from, Direction escapeDirection, GraphNode to, Direction enteringDirection) |
Attempts to build path from one node to another withing graph network asynchronously. More... | |
delegate void | GraphsRegistryChangeHandler (Graph oldEntry, Graph newEntry) |
Delegate for an agent that handles. More... | |
virtual Vector3 | GetNodePosition (GraphNode node) |
Returns the node's point suggested by the graph logic. More... | |
virtual void | SetNodePosition (GraphNode node, Vector3 position) |
Defines world position for the certain graph node. More... | |
virtual GraphNode | Add () |
Adds new GraphNode to the graph. More... | |
void | Add (string signature) |
Creates new GraphNode. More... | |
void | Add (string signature, out GraphNode node) |
Creates new GraphNode. More... | |
virtual T | Add< T > () |
Adds new node to the graph. More... | |
virtual T | Add< T > (string signature) |
Adds new node to the graph. More... | |
virtual bool | TryGetNode (string signature, out GraphNode node) |
Tries to get graph`s node by the signature. More... | |
Connection | GetConnection (Guid connectionId) |
Returns descriptor for the Connection by id. More... | |
virtual void | GetObjectData (SerializationInfo info, StreamingContext context) |
override string | ToString () |
Returns graph info. More... | |
void | Clear () |
Clears entire graph from nodes. | |
void | CopyTo (GraphNode[] array, int arrayIndex) |
Copies graph nodes of the graph to array. More... | |
void | CopyTo (string[] array, int arrayIndex) |
Copies GraphNode.signature entries in graph to array. More... | |
Protected Member Functions | |
virtual bool | Add (Graph graph, out(TransferGraphNode selfNode, HashSet< GraphNode > relatedNodes) metadata) |
Adds graph to the network database. More... | |
GraphNode | GetRelatedNode (GraphNode source, string title) |
Returns node of the network related to the source node graph. More... | |
void | OnBinaryDataLoaded () |
Must be called within ctor(SerializationInfo info, StreamingContext context) after binary data deserialization. | |
Package Functions | |
GraphsNetwork (SerializationInfo info, StreamingContext context) | |
Restores object from the binary data. More... | |
void | ReleaseConnection (Guid id) |
Releases connection from internal registry. More... | |
void | SetConnectionInfo (Connection connection) |
Adds connection info to the registry. More... | |
Properties | |
int | GraphsCount [get] |
Count of unique graphs included to the network. | |
Guid | id [get] |
Id of the graph into internal runtime registry. | |
int | Count [get] |
Count of nodes into the graph. | |
int | ConnectionsCount [get] |
Count of currently established connections into the graph. | |
GraphNode | this[string signature] [get] |
Dictionary< string, GraphNode > | nodes [get] |
Graph navigation map. More... | |
bool | IsReadOnly [get] |
Always false. | |
Events | |
Action< GraphNode > | NodeAdded |
Occurs when new node added to the graph via the API. | |
Action< GraphNode > | NodeRemoved |
Occurs when new node removed from the graph via the API. | |
static GraphsRegistryChangeHandler | GraphObsoleted |
Occurs when registry overridden with a new graph with id that already has been registered. More... | |
|
package |
Restores object from the binary data.
info | |
context |
|
virtualinherited |
Adds new GraphNode to the graph.
void Doloro.Graphs.Fragmented.GraphsNetwork.Add | ( | AFragmentGraph | graph | ) |
Adds fragment graph to the network along with auto declaring of entire exists Enter
nodes.
graph | Graph to add. |
|
virtual |
Adds graph to the network database.
graph | Graph to add. |
true
in case if graph has been registered. false
if graph has been registered some time before the call.
|
protectedvirtual |
Adds graph to the network database.
graph | Graph to add. |
metadata | Meta data tuple related to the graph. |
true
in case if graph has been registered. false
if graph has been registered some time before the call.
|
virtual |
Adding outside node to the network.
node | Node outside from the network to the network include. |
NotSupportedException | Node already exist withing the network. |
Reimplemented from Doloro.Graphs.Graph.
|
inherited |
Creates new GraphNode.
signature | Node signature. |
|
inherited |
Creates new GraphNode.
signature | Node signature. |
node | Created instance. |
|
virtualinherited |
Adds new node to the graph.
T | Type of node to add. |
T | : | GraphNode | |
T | : | new() |
|
virtualinherited |
Adds new node to the graph.
T | Type of node to add. |
signature | Node signature. |
T | : | GraphNode |
Path Doloro.Graphs.Fragmented.GraphsNetwork.BuildPath | ( | GraphNode | from, |
Direction | escapeDirection, | ||
GraphNode | to, | ||
Direction | enteringDirection | ||
) |
Attempts to build path from one node to another withing graph network.
from | Origin node. |
escapeDirection | Direction preferring to leave the origin graph to entering the network space. |
to | Destination node. |
enteringDirection | Direction preferring to enter destination graph. |
async Task< Path > Doloro.Graphs.Fragmented.GraphsNetwork.BuildPathAsync | ( | GraphNode | from, |
Direction | escapeDirection, | ||
GraphNode | to, | ||
Direction | enteringDirection | ||
) |
Attempts to build path from one node to another withing graph network asynchronously.
from | Origin node. |
escapeDirection | Direction preferring to leave the origin graph to entering the network space. |
to | Destination node. |
enteringDirection | Direction preferring to enter destination graph. |
void Doloro.Graphs.Fragmented.GraphsNetwork.Connect | ( | AFragmentGraph | graph1, |
AFragmentGraph | graph2, | ||
Direction | direction = Direction.Default |
||
) |
Attach one fragment graph to another.
graph1 | First graph. |
graph2 | Second graph. |
direction | Direction from the first graph to a second one in world space. |
void Doloro.Graphs.Fragmented.GraphsNetwork.Connect | ( | GraphNode | graph1node, |
GraphNode | graph2node, | ||
Direction | direction = Direction.Default |
||
) |
Connects two nodes from a different Graphs into the network.
graph1node | Node from a first graph. |
graph2node | Node from a second graph. |
direction | Connection direction considered with graph position in 2D space to each other. |
|
virtual |
Checks is the outside node included to the network.
node | Node from outside of the network's raw graph. |
true
in case if the node has been included to the network.Reimplemented from Doloro.Graphs.Graph.
|
virtual |
Checks is the outside node included to the network.
nodeSignature | GraphNode.signature of the node from outside of the network's raw graph. |
true
in case if the node has been included to the network.Reimplemented from Doloro.Graphs.Graph.
|
inherited |
Copies graph nodes of the graph to array.
array | Destination array. |
arrayIndex | Start index at the destination array. |
|
inherited |
Copies GraphNode.signature entries in graph to array.
array | Destination array. |
arrayIndex | Insertion index at destination array. |
void Doloro.Graphs.Fragmented.GraphsNetwork.Disconnect | ( | GraphNode | graph1node, |
GraphNode | graph2node | ||
) |
Disconnects two nodes withing the network.
graph1node | First node of connection. |
graph2node | Second node of connection. |
|
inherited |
Returns descriptor for the Connection by id.
connectionId | Id of the connection. |
|
virtualinherited |
Returns the node's point suggested by the graph logic.
node | Target node. |
|
protected |
Returns node of the network related to the source node graph.
source | Bode of a graph included to the network. |
title | Title of node to system messages. |
ArgumentException | Node is not a part of the network. |
|
inherited |
Delegate for an agent that handles.
oldEntry | Entry that excluded from the registry. |
newEntry | Graph that applied to the registry instead of an old one. |
Checks is the pair of nodes are connected to each other.
from | |
to |
|
packageinherited |
Releases connection from internal registry.
id | Connection.id to release. |
|
virtual |
Removes graph presence from the network along with releasing of entire connections.
graph | Graph to release. |
true
in case if graph has been released. false
in case if graph has been found.
|
virtual |
Removes node connected to the network from the network.
node | Node to exclude. |
Not allows to remove node declared by the network itself. Allows access only for user-site nodes.
Reimplemented from Doloro.Graphs.Graph.
|
virtual |
Removes node connected to the network from the network.
nodeSignature | GraphNode.signature to exclude. |
Not allows to remove node declared by the network itself. Allows access only for user-site nodes.
Reimplemented from Doloro.Graphs.Graph.
|
packageinherited |
Adds connection info to the registry.
connection | Connection to add. |
|
virtualinherited |
Defines world position for the certain graph node.
node | Node to position declare. |
position | World position related to the node. |
|
inherited |
Returns graph info.
|
virtualinherited |
Tries to get graph`s node by the signature.
signature | GraphNode.signature as access key. |
node | Node instance if found. |
|
getpackageinherited |
Graph navigation map.
string
- GraphNode.signature <see cref="GraphNode"/>
- node instance.
|
staticinherited |
Occurs when registry overridden with a new graph with id that already has been registered.
Could occur when you loading the graph that has been loaded up to the moment from the binary data.