Skip to content

Reference

OpcFiniteStateMachineNode Members

Defines a specialization of the OpcFiniteStateMachineNode whose states are identified by values of the type T.

Reference

OpcFiniteStateMachineNode<T> Members ​

Type
OpcFiniteStateMachineNode<T>
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcFiniteStateMachineNode, OpcObjectNode, OpcInstanceNode, OpcNode.

Constructors ​

OpcFiniteStateMachineNode ​

10 overloads

OverloadDescription
OpcFiniteStateMachineNode(OpcName)Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name specified.
OpcFiniteStateMachineNode(OpcName, OpcNodeId)Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name and id specified.
OpcFiniteStateMachineNode(IOpcNode, OpcName)Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name specified as a child node of the parent node given.
OpcFiniteStateMachineNode(IOpcNode, OpcName, OpcNodeId)Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name and id specified as a child node of the parent node given.
OpcFiniteStateMachineNode(FiniteStateMachineState)protectedInitializes a new instance of the OpcFiniteStateMachineNode<T> class using the content as the instance to wrap.
OpcFiniteStateMachineNode(FiniteStateMachineState, OpcNodeModel)protectedInitializes a new instance of the OpcFiniteStateMachineNode<T> class using the content as the instance to wrap.
OpcFiniteStateMachineNode(OpcNodeModel, OpcName)protectedInitializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name specified.
OpcFiniteStateMachineNode(OpcNodeModel, OpcName, OpcNodeId)protectedInitializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name and id specified.
OpcFiniteStateMachineNode(OpcNodeModel, IOpcNode, OpcName)protectedInitializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name specified as a child node of the parent node given.
OpcFiniteStateMachineNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId)protectedInitializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name and id specified as a child node of the parent node given.

OpcFiniteStateMachineNode(OpcName) ​

Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name specified.

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

Parameters

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

OpcFiniteStateMachineNode(OpcName, OpcNodeId) ​

Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name and id specified.

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

Parameters

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

OpcFiniteStateMachineNode(IOpcNode, OpcName) ​

Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name specified as a child node of the parent node given.

csharp
public OpcFiniteStateMachineNode(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 finite state machine node can be accessed.

OpcFiniteStateMachineNode(IOpcNode, OpcName, OpcNodeId) ​

Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name and id specified as a child node of the parent node given.

csharp
public OpcFiniteStateMachineNode(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 finite state machine node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new finite state machine node can be identified and accessed.

OpcFiniteStateMachineNode(FiniteStateMachineState) ​

protected

Initializes a new instance of the OpcFiniteStateMachineNode<T> class using the content as the instance to wrap.

csharp
protected OpcFiniteStateMachineNode(FiniteStateMachineState content)
vbnet
Protected Sub New(content As FiniteStateMachineState)

Parameters

NameTypeDescription
contentFiniteStateMachineStateThe FiniteStateMachineState to wrap.

Exceptions

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

OpcFiniteStateMachineNode(FiniteStateMachineState, OpcNodeModel) ​

protected

Initializes a new instance of the OpcFiniteStateMachineNode<T> class using the content as the instance to wrap.

csharp
protected OpcFiniteStateMachineNode(
    FiniteStateMachineState content,
    OpcNodeModel model)
vbnet
Protected Sub New(content As FiniteStateMachineState, model As OpcNodeModel)

Parameters

NameTypeDescription
contentFiniteStateMachineStateThe FiniteStateMachineState 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).

OpcFiniteStateMachineNode(OpcNodeModel, OpcName) ​

protected

Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name specified.

csharp
protected OpcFiniteStateMachineNode(OpcNodeModel model, OpcName name)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName)

Parameters

NameTypeDescription
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.
nameOpcNameThe OpcName through that the new finite state machine node can be accessed.

OpcFiniteStateMachineNode(OpcNodeModel, OpcName, OpcNodeId) ​

protected

Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name and id specified.

csharp
protected OpcFiniteStateMachineNode(
    OpcNodeModel model,
    OpcName name,
    OpcNodeId id)
vbnet
Protected Sub New(model As OpcNodeModel, name As OpcName, id As OpcNodeId)

Parameters

NameTypeDescription
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.
nameOpcNameThe OpcName through that the new finite state machine node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new finite state machine node can be identified and accessed.

OpcFiniteStateMachineNode(OpcNodeModel, IOpcNode, OpcName) ​

protected

Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name specified as a child node of the parent node given.

csharp
protected OpcFiniteStateMachineNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name)
vbnet
Protected Sub New(model As OpcNodeModel, parent As IOpcNode, name As OpcName)

Parameters

NameTypeDescription
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.
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 finite state machine node can be accessed.

OpcFiniteStateMachineNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId) ​

protected

Initializes a new instance of the OpcFiniteStateMachineNode<T> class accessible by the name and id specified as a child node of the parent node given.

csharp
protected OpcFiniteStateMachineNode(
    OpcNodeModel model,
    IOpcNode parent,
    OpcName name,
    OpcNodeId id)
vbnet
Protected Sub New(
    model As OpcNodeModel,
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId)

Parameters

NameTypeDescription
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.
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 finite state machine node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new finite state machine node can be identified and accessed.

Methods ​

CanChangeStateTo ​

2 overloads

OverloadDescription
CanChangeStateTo(OpcContext, T)Determines whether the CurrentState can be changed to the newState specified using the further specified context.
CanChangeStateTo(OpcContext, T, T)Determines whether the oldState can be changed to the newState specified using the further specified context.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe context or newState is a null reference (Nothing in Visual Basic).

CanChangeStateTo(OpcContext, T) ​

Determines whether the CurrentState can be changed to the newState specified using the further specified context.

csharp
public bool CanChangeStateTo(OpcContext context, T newState)
vbnet
Public Function CanChangeStateTo(
    context As OpcContext,
    newState As T) As Boolean

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to use to determine.
newStateTThe state number or enum of the state to determine.

Returns

Boolean

Implements

CanChangeStateTo(OpcContext, T)

Remarks

In case SupportsCurrentState is equals false, this method does always returns false.

CanChangeStateTo(OpcContext, T, T) ​

Determines whether the oldState can be changed to the newState specified using the further specified context.

csharp
public bool CanChangeStateTo(OpcContext context, T oldState, T newState)
vbnet
Public Function CanChangeStateTo(
    context As OpcContext,
    oldState As T,
    newState As T) As Boolean

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to use to determine.
oldStateTThe assumed current state number or enum of the state to determine.
newStateTThe dedicated new state number or enum of the state to determine.

Returns

Boolean

Implements

CanChangeStateTo(OpcContext, T, T)

ChangeStateTo ​

Changes the CurrentState to the newState specified using the further specified context.

csharp
public void ChangeStateTo(OpcContext context, T newState)
vbnet
Public Sub ChangeStateTo(context As OpcContext, newState As T)

Parameters

NameTypeDescription
contextOpcContextThe OpcContext to use to change.
newStateTThe state number or enum of the state to change to.

Exceptions

ExceptionCondition
ArgumentExceptionThe newState is not a known state.
ArgumentNullExceptionThe context or newState is a null reference (Nothing in Visual Basic).
InvalidOperationExceptionNo transition leads from the current state to the newState.
OpcExceptionThe change operation failed (see exception details for more information).

Implements

ChangeStateTo(OpcContext, T)

Remarks

In case SupportsCurrentState is equals false, this method does not perform any state changes.

CreateSubStatesMachineNode ​

protected · 2 overloads

OverloadDescription
CreateSubStatesMachineNode(object)protected · overrideCreates the state machine of the sub-states of the state specified using CreateSubStatesMachineNode.
CreateSubStatesMachineNode(T)protected · virtualWhen overridden in a derived class, creates the state machine of the sub-states of the state specified.

CreateSubStatesMachineNode(object) ​

protected · override

Creates the state machine of the sub-states of the state specified using CreateSubStatesMachineNode.

csharp
protected override sealed OpcFiniteStateMachineNode CreateSubStatesMachineNode(
    object state)
vbnet
Protected NotOverridable Overrides Function CreateSubStatesMachineNode(
    state As Object) As OpcFiniteStateMachineNode

Parameters

NameTypeDescription
stateObjectThe state number of a state for which the type definition of the state machine declares a state machine of sub-states.

Returns

OpcFiniteStateMachineNode

The state machine of the sub-states of the state created by CreateSubStatesMachineNode.

Exceptions

ExceptionCondition
InvalidCastExceptionThe state number cannot be converted to T.

Overrides

CreateSubStatesMachineNode

Remarks

If T is an enumeration, the state number is passed as the member of the enumeration with that value; otherwise it is converted to T (see ChangeType(object, Type)).

CreateSubStatesMachineNode(T) ​

protected · virtual

When overridden in a derived class, creates the state machine of the sub-states of the state specified.

csharp
protected virtual OpcFiniteStateMachineNode CreateSubStatesMachineNode(T state)
vbnet
Protected Overridable Function CreateSubStatesMachineNode(
    state As T) As OpcFiniteStateMachineNode

Parameters

NameTypeDescription
stateTThe state for which the type definition of the state machine declares a state machine of sub-states.

Returns

OpcFiniteStateMachineNode

The state machine of the sub-states of the state. The default implementation returns a null reference (Nothing in Visual Basic).

Remarks

The method is called when the states and transitions of the state machine are determined from its type definition.

GetSubStatesMachineNode ​

Gets the state machine of the sub-states of the state specified whose states are identified by values of the type TSubStates.

csharp
public OpcFiniteStateMachineNode<TSubStates> GetSubStatesMachineNode<TSubStates>(
    T state)
vbnet
Public Function GetSubStatesMachineNode(Of TSubStates)(
    state As T) As OpcFiniteStateMachineNode(Of TSubStates)

Type parameters

NameDescription
TSubStatesThe type which identifies the sub-states.

Parameters

NameTypeDescription
stateTThe state whose sub-states machine is to be retrieved.

Returns

OpcFiniteStateMachineNode<TSubStates>

The state machine of the sub-states of the state, or a null reference (Nothing in Visual Basic) if the state has none or its states are not identified by TSubStates.