NodeStateBase Class

Class for serializing the node state. The state of any concrete node must inherit from this class.

Definition

Namespace: Quine.Schemas.Graph
Assembly: Quine.Schemas.Graph (in Quine.Schemas.Graph.dll) Version: 1.0.0+0ea0706914ee4edf2b0ed66bec3ab4d062a43b68
C#
[DataContractAttribute(Namespace = "http://schemas.quine.no/graph/v8_0.xsd")]
[KnownTypeAttribute("GetKnownTypes")]
public abstract class NodeStateBase : GraphRuntimeHook
Inheritance
Object    GraphRuntimeHook    NodeStateBase
Derived

Constructors

NodeStateBase Constructor.

Properties

CompletionState The node's completion state.
Id "Local" id of this instance. This is valid only within the same graph.
(Inherited from GraphRuntimeHook)
ImplementingType Assembly-qualified name of the implementing type.
InputPorts Array of input ports.
OutputPorts Array of output ports.
Owner Parent/owner of this node, or null.
(Inherited from GraphRuntimeHook)
PathId Provides IDs of all job nodes from the root (1st element) to this. The byte array is a sequence of integer ids with variable-length encoding (7-bit).
(Inherited from GraphRuntimeHook)
RuntimeObject The object implementing the actual behavior.
(Inherited from GraphRuntimeHook)
Trace Trace events generated during the execution of this node.

Methods

SetId The override ensures that ports get assigned sequential ids.
(Overrides GraphRuntimeHookSetId(ITreeIdentity, Int32))
SetPorts This method is a deserialization hook. Subclasses must implement this so that InputPorts and OutputPorts are set correctly also after deserialization.
SetPorts(PortStateBase, PortStateBase) Assigns values to InputPorts and OutputPorts.

Fields

KnownTypes Derived types must be added to this collection.

See Also