Class SerializedEdgeUpgrade
SerializedEdgeUpgrade, upgrade module for edges. Implements the UpgradeModule
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
[UpgradeEngine(typeof(SerializedEdge))]
public class SerializedEdgeUpgrade : UpgradeModule
Methods
FindNode(SystemGraphData, String, out SerializedNode)
Finds the node.
Declaration
public bool FindNode(SystemGraphData ctx, string nodeGuid, out SerializedNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| SystemGraphData | ctx | The graph data. |
| String | nodeGuid | The node unique identifier. |
| SerializedNode | node | The node. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
GetPatch(Int32)
Gets the patch.
Declaration
protected override UpgradeModule.Patch GetPatch(int version)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | version | The version. |
Returns
| Type | Description |
|---|---|
| UpgradeModule.Patch | Patch. |
Overrides
UpgradeV1(SerializedEdgeUpgrade, SystemGraphData, VersionedStruct)
Upgrades to v1.
Declaration
public static bool UpgradeV1(SerializedEdgeUpgrade self, SystemGraphData ctx, VersionedStruct upgradedStruct)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializedEdgeUpgrade | self | The self. |
| SystemGraphData | ctx | The graph data. |
| VersionedStruct | upgradedStruct | The upgraded structure. |
Returns
| Type | Description |
|---|---|
| Boolean |
|