Skip to content

Reference

OpcStateMachineNode Members

Defines the base class for all state machine nodes.

Reference

OpcStateMachineNode Members ​

Type
OpcStateMachineNode
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcObjectNode, OpcInstanceNode, OpcNode.

Constructors ​

OpcStateMachineNode ​

6 overloads

OverloadDescription
OpcStateMachineNode(OpcName)Initializes a new instance of the OpcStateMachineNode class accessible by the name specified.
OpcStateMachineNode(OpcName, OpcNodeId)Initializes a new instance of the OpcStateMachineNode class accessible by the name and id specified.
OpcStateMachineNode(IOpcNode, OpcName)Initializes a new instance of the OpcStateMachineNode class accessible by the name specified as a child node of the parent node given.
OpcStateMachineNode(IOpcNode, OpcName, OpcNodeId)Initializes a new instance of the OpcStateMachineNode class accessible by the name and id specified as a child node of the parent node given.
OpcStateMachineNode(StateMachineState)protected · since v2.50Initializes a new instance of the OpcStateMachineNode class using the content as the instance to wrap.
OpcStateMachineNode(StateMachineState, OpcNodeModel)protected · since v2.50Initializes a new instance of the OpcStateMachineNode class using the content as the instance to wrap.

OpcStateMachineNode(OpcName) ​

Initializes a new instance of the OpcStateMachineNode class accessible by the name specified.

csharp
public OpcStateMachineNode(OpcName name)
vbnet
Public Sub New(name As OpcName)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new state machine node can be accessed.

OpcStateMachineNode(OpcName, OpcNodeId) ​

Initializes a new instance of the OpcStateMachineNode class accessible by the name and id specified.

csharp
public OpcStateMachineNode(OpcName name, OpcNodeId id)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new state machine node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new state machine node can be identified and accessed.

OpcStateMachineNode(IOpcNode, OpcName) ​

Initializes a new instance of the OpcStateMachineNode class accessible by the name specified as a child node of the parent node given.

csharp
public OpcStateMachineNode(IOpcNode parent, OpcName name)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new state machine node can be accessed.

OpcStateMachineNode(IOpcNode, OpcName, OpcNodeId) ​

Initializes a new instance of the OpcStateMachineNode class accessible by the name and id specified as a child node of the parent node given.

csharp
public OpcStateMachineNode(IOpcNode parent, OpcName name, OpcNodeId id)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
parentIOpcNodeThe IOpcNode used as the parent node or a null reference (Nothing in Visual Basic) in the case there is no parent node available.
nameOpcNameThe OpcName through that the new state machine node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new state machine node can be identified and accessed.

OpcStateMachineNode(StateMachineState) ​

protected · since v2.50

Initializes a new instance of the OpcStateMachineNode class using the content as the instance to wrap.

csharp
protected OpcStateMachineNode(StateMachineState content)
vbnet
Protected Sub New(content As StateMachineState)

Parameters

NameTypeDescription
contentStateMachineStateThe StateMachineState to wrap.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe content is a null reference (Nothing in Visual Basic).

OpcStateMachineNode(StateMachineState, OpcNodeModel) ​

protected · since v2.50

Initializes a new instance of the OpcStateMachineNode class using the content as the instance to wrap.

csharp
protected OpcStateMachineNode(StateMachineState content, OpcNodeModel model)
vbnet
Protected Sub New(content As StateMachineState, model As OpcNodeModel)

Parameters

NameTypeDescription
contentStateMachineStateThe StateMachineState to wrap.
modelOpcNodeModelThe OpcNodeModel which defines the modelling directives for the new node or a null reference (Nothing in Visual Basic) if there are no directives are to be applied to the node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe content is a null reference (Nothing in Visual Basic).

Properties ​

CurrentState ​

virtual

Gets or sets the current state of the OpcStateMachineNode and provides a human readable name for the current state which may not be suitable for use in application control logic. Applications should use the VariableId property of the CurrentStateNode if they need a unique identifier for the state.

csharp
public virtual OpcText CurrentState { get; set; }
vbnet
Public Overridable Property CurrentState As OpcText

Property value

OpcText

A human readable name for the current state which may not be suitable for use in application control logic.

CurrentStateNode ​

Gets the OpcStateVariableNode of the CurrentState property.

csharp
public OpcStateVariableNode CurrentStateNode { get; }
vbnet
Public Property CurrentStateNode As OpcStateVariableNode

Property value

OpcStateVariableNode

An instance of the OpcStateVariableNode class.

DefaultTypeDefinitionId ​

protected · override

Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.

csharp
protected override OpcNodeId DefaultTypeDefinitionId { get; }
vbnet
Protected Overrides ReadOnly Property DefaultTypeDefinitionId As OpcNodeId

Property value

OpcNodeId

The OpcNodeId of the type node from that this OpcInstanceNode has been created from. These type node defines the typical structure of an instance node of its type definition. If there exists no specific type definition node a null reference (Nothing in Visual Basic).

Overrides

DefaultTypeDefinitionId

LastTransition ​

virtual

Gets or sets the last transition which occurred in an instance and provides a human readable name for the last transition which may not be suitable for use in application control logic. Applications should use the VariableId property of the LastTransitionNode if they need a unique identifier for the transition.

csharp
public virtual OpcText LastTransition { get; set; }
vbnet
Public Overridable Property LastTransition As OpcText

Property value

OpcText

A human readable name for the last transition which may not be suitable for use in application control logic.

LastTransitionNode ​

Gets the OpcTransitionVariableNode of the LastTransition property.

csharp
public OpcTransitionVariableNode LastTransitionNode { get; }
vbnet
Public Property LastTransitionNode As OpcTransitionVariableNode

Property value

OpcTransitionVariableNode

An instance of the OpcTransitionVariableNode class.