# OpcFiniteStateMachineNode&lt;T&gt; Class

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

<span class="api-meta">since v2.54</span>

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcFiniteStateMachineNode&lt;T&gt; Members</a></dd>
</dl>

Defines a specialization of the [OpcFiniteStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/) whose states are identified by values of the type `T`.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public class OpcFiniteStateMachineNode<T> : OpcFiniteStateMachineNode
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Class OpcFiniteStateMachineNode(Of T)
    Inherits OpcFiniteStateMachineNode
```

</div>

## Type parameters

| Name | Description |
|---|---|
| `T` | The type which identifies the states, e.g. an enumeration whose members are the state numbers. |

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnode/) → [OpcInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcinstancenode/) → [OpcObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjectnode/) → [OpcStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinenode/) → [OpcFiniteStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/) → **OpcFiniteStateMachineNode&lt;T&gt;**

## Implements

<ul class="api-implements">
<li><a href="../opc.uafx.iopcnode/">IOpcNode</a></li>
<li><a href="../opc.uafx.iopcnodeinfo/">IOpcNodeInfo</a></li>
<li><a href="../opc.uafx.iopcstatemachine/">IOpcStateMachine</a></li>
<li><a href="../opc.uafx.iopcstatemachine-1/">IOpcStateMachine</a>&lt;T&gt;</li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcFiniteStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode-1/members#opcfinitestatemachinenode)<span class="api-meta">10 overloads</span> | Initializes a new instance of the OpcFiniteStateMachineNode&lt;T&gt; class accessible by the `name` specified. |

## Methods

| Name | Description |
|---|---|
| [CanChangeStateTo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode-1/members#canchangestateto)<span class="api-meta">2 overloads</span> | Determines whether the [CurrentState](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#currentstate) can be changed to the `newState` specified using the further specified `context`. |
| [ChangeStateTo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode-1/members#changestateto) | Changes the [CurrentState](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#currentstate) to the `newState` specified using the further specified `context`. |
| [CreateSubStatesMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode-1/members#createsubstatesmachinenode)<span class="api-meta">protected · 2 overloads</span> | Creates the state machine of the sub-states of the `state` specified using [CreateSubStatesMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode-1/members#createsubstatesmachinenode-t0). |
| [GetSubStatesMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode-1/members#getsubstatesmachinenode) | Gets the state machine of the sub-states of the `state` specified whose states are identified by values of the type `TSubStates`. |

Inherits members from [OpcFiniteStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members), [OpcObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjectnode/members), [OpcInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcinstancenode/members), [OpcNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnode/members).

## Extension methods

| Name | Description |
|---|---|
| [OpcStateMachineNodeExtension.ChangeState](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcstatemachinenodeextension/members#changestate) | Changes the current state of the `stateMachineNode` specified using the further specified `context`. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.54–v2.59 |
