Skip to content

Reference

OpcStateMachineNode Class

Defines the base class for all state machine nodes.

Reference

OpcStateMachineNode Class ​

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

Defines the base class for all state machine nodes. It uses a single variable which represents the current state of the machine.

Syntax ​

csharp
[OpcNodeType(2299)]
public class OpcStateMachineNode : OpcObjectNode
vbnet
<OpcNodeType(2299)>
Public Class OpcStateMachineNode
    Inherits OpcObjectNode

Inheritance ​

Object → OpcNode → OpcInstanceNode → OpcObjectNode → OpcStateMachineNode

Implements ​

Derived types ​

Remarks ​

An instance of this object should generate an event whenever a significant state change occurs. The server decides which state changes are significant. Servers should use the GeneratesEvent reference type to indicate which event(s) could be produced by the state machine.

Subtypes may add methods which affect the state of the machine. The Executable attribute is used to indicate whether the method is valid given the current state of the machine. A state machine may not be active. In this case, the CurrentState and LastTransition vvariables should have a status equal to BadStateNotActive.

Subtypes may add components which are instances of state machines. These components are considered to be sub-states of the state machine. Sub state machines are only active when the parent machine is in an appropriate state.

Events produced by sub state machines may be suppressed by the parent machine. In some cases, the parent machine will produce a single event that reflects changes in multiple sub state machines.

Constructors ​

NameDescription
OpcStateMachineNode6 overloadsInitializes a new instance of the OpcStateMachineNode class accessible by the name specified.

Properties ​

NameDescription
CurrentStatevirtualGets 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.
CurrentStateNodeGets the OpcStateVariableNode of the CurrentState property.
DefaultTypeDefinitionIdprotected · overrideGets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.
LastTransitionvirtualGets 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.
LastTransitionNodeGets the OpcTransitionVariableNode of the LastTransition property.

Inherits members from OpcObjectNode, OpcInstanceNode, OpcNode.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59