# OpcFiniteStateMachineNode Class

> Reference: Defines a specialization of the OpcStateMachineNode that provides a mechanism to explicitly define the states and transitions.

<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 Members</a></dd>
</dl>

Defines a specialization of the [OpcStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinenode/) that provides a mechanism to explicitly define the states and transitions. A server should use this mechanism if it knows what the possible states are and the state machine is not trivial.

## Syntax

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

```csharp
public class OpcFiniteStateMachineNode : OpcStateMachineNode
```

</div>

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

```vbnet
<OpcNodeType(2771)>
Public Class OpcFiniteStateMachineNode
    Inherits OpcStateMachineNode
```

</div>

## 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**

## 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>
</ul>

## Derived types

- [OpcExclusiveLimitStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcexclusivelimitstatemachinenode/)
- [OpcFiniteStateMachineNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode-1/)
- [OpcShelvedStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcshelvedstatemachinenode/)

## Constructors

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

## Properties

| Name | Description |
|---|---|
| [AvailableStates](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#availablestates)<span class="api-meta">since v2.54</span> | Gets the available states of the OpcFiniteStateMachineNode. |
| [AvailableStatesNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#availablestatesnode)<span class="api-meta">since v2.54</span> | Gets the [OpcNodeIdArrayVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeidarrayvariablenode/) of the [AvailableStates](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#availablestates) property. |
| [AvailableTransitions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#availabletransitions)<span class="api-meta">since v2.54</span> | Gets the available transitions of the OpcFiniteStateMachineNode. |
| [AvailableTransitionsNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#availabletransitionsnode)<span class="api-meta">since v2.54</span> | Gets the [OpcNodeIdArrayVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeidarrayvariablenode/) of the [AvailableTransitions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#availabletransitions) property. |
| [CurrentState](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#currentstate)<span class="api-meta">override</span> | Gets the current state of the OpcFiniteStateMachineNode and provides a human readable name for the current state which may not be suitable for use in application control logic. |
| [CurrentStateNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#currentstatenode) | Gets the [OpcFiniteStateVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatevariablenode/) of the [CurrentState](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#currentstate) property. |
| [DefaultTypeDefinitionId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#defaulttypedefinitionid)<span class="api-meta">protected · override</span> | Gets the default identifier which identifies the node that defines the underlying node type from that this [OpcInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcinstancenode/) has been created. |
| [LastTransition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#lasttransition)<span class="api-meta">override</span> | Gets 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. |
| [LastTransitionNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#lasttransitionnode) | Gets the [OpcFiniteTransitionVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitetransitionvariablenode/) of the [LastTransition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#lasttransition) property. |
| [SupportsCurrentState](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#supportscurrentstate)<span class="api-meta">virtual · since v2.54</span> | Gets a value indicating whether the current OpcFiniteStateMachineNode does support changes of the [CurrentState](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#currentstate); |

## Methods

| Name | Description |
|---|---|
| [CanChangeStateTo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#canchangestateto)<span class="api-meta">2 overloads · since v2.54</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/members#changestateto)<span class="api-meta">since v2.29</span> | 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/members#createsubstatesmachinenode)<span class="api-meta">protected · virtual · since v2.54</span> | When overridden in a derived class, creates the state machine of the sub-states of the `state` specified. |
| [GetSubStatesMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#getsubstatesmachinenode)<span class="api-meta">2 overloads · since v2.54</span> | Gets the state machine of the sub-states of the current state. |
| [IsAccessible](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#isaccessible)<span class="api-meta">override · since v2.54</span> | Determines whether the node is accessible using the `context` specified within the view identified by the `viewId` specified. |
| [OnBeforeAdded](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfinitestatemachinenode/members#onbeforeadded)<span class="api-meta">protected · override · since v2.29</span> | Raises the [BeforeAdded](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnode/members#beforeadded) event using the event data specified. |

Inherits members from [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.5–v2.59 |
