Reference
OpcFiniteStateMachineNode Members
Defines a specialization of the OpcStateMachineNode that provides a mechanism to explicitly define the states and transitions.
Reference
OpcFiniteStateMachineNode Members
- Type
- OpcFiniteStateMachineNode
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Inherits members from OpcObjectNode, OpcInstanceNode, OpcNode.
Constructors
OpcFiniteStateMachineNode
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opcname specified. |
| Opc | Initializes a new instance of the Opcname and id specified. |
| Opc | Initializes a new instance of the Opcname specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname and id specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opccontent as the instance to wrap. |
| Opc | Initializes a new instance of the Opccontent as the instance to wrap. |
| Opc | Initializes a new instance of the Opcname specified. |
| Opc | Initializes a new instance of the Opcname and id specified. |
| Opc | Initializes a new instance of the Opcname specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname and id specified as a child node of the parent node given. |
OpcFiniteStateMachineNode(OpcName)
Initializes a new instance of the OpcFiniteStateMachineNode class accessible by the name specified.
public OpcFiniteStateMachineNode(OpcName name)Public Sub New(name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new finite state machine node can be accessed. |
OpcFiniteStateMachineNode(OpcName, OpcNodeId)
Initializes a new instance of the OpcFiniteStateMachineNode class accessible by the name and id specified.
public OpcFiniteStateMachineNode(OpcName name, OpcNodeId id)Public Sub New(name As OpcName, id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new finite state machine node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new finite state machine node can be identified and accessed. |
OpcFiniteStateMachineNode(IOpcNode, OpcName)
Initializes a new instance of the OpcFiniteStateMachineNode class accessible by the name specified as a child node of the parent node given.
public OpcFiniteStateMachineNode(IOpcNode parent, OpcName name)Public Sub New(parent As IOpcNode, name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new finite state machine node can be accessed. |
OpcFiniteStateMachineNode(IOpcNode, OpcName, OpcNodeId)
Initializes a new instance of the OpcFiniteStateMachineNode class accessible by the name and id specified as a child node of the parent node given.
public OpcFiniteStateMachineNode(IOpcNode parent, OpcName name, OpcNodeId id)Public Sub New(parent As IOpcNode, name As OpcName, id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new finite state machine node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new finite state machine node can be identified and accessed. |
OpcFiniteStateMachineNode(FiniteStateMachineState)
Initializes a new instance of the OpcFiniteStateMachineNode class using the content as the instance to wrap.
protected OpcFiniteStateMachineNode(FiniteStateMachineState content)Protected Sub New(content As FiniteStateMachineState)Parameters
| Name | Type | Description |
|---|---|---|
content | Finite | The Finite |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The content is a null reference ( |
OpcFiniteStateMachineNode(FiniteStateMachineState, OpcNodeModel)
Initializes a new instance of the OpcFiniteStateMachineNode class using the content as the instance to wrap.
protected OpcFiniteStateMachineNode(
FiniteStateMachineState content,
OpcNodeModel model)Protected Sub New(content As FiniteStateMachineState, model As OpcNodeModel)Parameters
| Name | Type | Description |
|---|---|---|
content | Finite | The Finite |
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The content is a null reference ( |
OpcFiniteStateMachineNode(OpcNodeModel, OpcName)
Initializes a new instance of the OpcFiniteStateMachineNode class accessible by the name specified.
protected OpcFiniteStateMachineNode(OpcNodeModel model, OpcName name)Protected Sub New(model As OpcNodeModel, name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
name | OpcName | The OpcName through that the new finite state machine node can be accessed. |
OpcFiniteStateMachineNode(OpcNodeModel, OpcName, OpcNodeId)
Initializes a new instance of the OpcFiniteStateMachineNode class accessible by the name and id specified.
protected OpcFiniteStateMachineNode(
OpcNodeModel model,
OpcName name,
OpcNodeId id)Protected Sub New(model As OpcNodeModel, name As OpcName, id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
name | OpcName | The OpcName through that the new finite state machine node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new finite state machine node can be identified and accessed. |
OpcFiniteStateMachineNode(OpcNodeModel, IOpcNode, OpcName)
Initializes a new instance of the OpcFiniteStateMachineNode class accessible by the name specified as a child node of the parent node given.
protected OpcFiniteStateMachineNode(
OpcNodeModel model,
IOpcNode parent,
OpcName name)Protected Sub New(model As OpcNodeModel, parent As IOpcNode, name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new finite state machine node can be accessed. |
OpcFiniteStateMachineNode(OpcNodeModel, IOpcNode, OpcName, OpcNodeId)
Initializes a new instance of the OpcFiniteStateMachineNode class accessible by the name and id specified as a child node of the parent node given.
protected OpcFiniteStateMachineNode(
OpcNodeModel model,
IOpcNode parent,
OpcName name,
OpcNodeId id)Protected Sub New(
model As OpcNodeModel,
parent As IOpcNode,
name As OpcName,
id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new finite state machine node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new finite state machine node can be identified and accessed. |
Properties
AvailableStates
Gets the available states of the OpcFiniteStateMachineNode.
public OpcNodeId[] AvailableStates { get; set; }Public Property AvailableStates As OpcNodeId()Property value
An array of OpcNodeId instances identifying the available states, or a null reference (Nothing in Visual Basic) if the state machine has no AvailableStates variable or the variable has no value.
AvailableStatesNode
Gets the OpcNodeIdArrayVariableNode of the AvailableStates property.
public OpcNodeIdArrayVariableNode AvailableStatesNode { get; }Public ReadOnly Property AvailableStatesNode As OpcNodeIdArrayVariableNodeProperty value
An instance of the OpcNodeIdArrayVariableNode class.
AvailableTransitions
Gets the available transitions of the OpcFiniteStateMachineNode.
public OpcNodeId[] AvailableTransitions { get; set; }Public Property AvailableTransitions As OpcNodeId()Property value
An array of OpcNodeId instances identifying the available transitions, or a null reference (Nothing in Visual Basic) if the state machine has no AvailableTransitions variable or the variable has no value.
AvailableTransitionsNode
Gets the OpcNodeIdArrayVariableNode of the AvailableTransitions property.
public OpcNodeIdArrayVariableNode AvailableTransitionsNode { get; }Public ReadOnly Property AvailableTransitionsNode As OpcNodeIdArrayVariableNodeProperty value
An instance of the OpcNodeIdArrayVariableNode class.
CurrentState
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. Applications should use the VariableId property of the CurrentStateNode if they need a unique identifier for the state.
public override OpcText CurrentState { get; set; }Public Overrides Property CurrentState As OpcTextProperty value
A human readable name for the current state which may not be suitable for use in application control logic.
Overrides
Implements
CurrentStateNode
Gets the OpcFiniteStateVariableNode of the CurrentState property.
public OpcFiniteStateVariableNode CurrentStateNode { get; }Public ReadOnly Property CurrentStateNode As OpcFiniteStateVariableNodeProperty value
An instance of the OpcFiniteStateVariableNode class.
DefaultTypeDefinitionId
Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.
protected override OpcNodeId DefaultTypeDefinitionId { get; }Protected Overrides ReadOnly Property DefaultTypeDefinitionId As OpcNodeIdProperty value
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
LastTransition
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. Applications should use the VariableId property of the LastTransitionNode if they need a unique identifier for the transition.
public override OpcText LastTransition { get; set; }Public Overrides Property LastTransition As OpcTextProperty value
A human readable name for the last transition which may not be suitable for use in application control logic.
Overrides
Implements
LastTransitionNode
Gets the OpcFiniteTransitionVariableNode of the LastTransition property.
public OpcFiniteTransitionVariableNode LastTransitionNode { get; }Public ReadOnly Property LastTransitionNode As OpcFiniteTransitionVariableNodeProperty value
OpcFiniteTransitionVariableNode
An instance of the OpcFiniteTransitionVariableNode class, or null if this node is not present.
SupportsCurrentState
Gets a value indicating whether the current OpcFiniteStateMachineNode does support changes of the CurrentState;
public virtual bool SupportsCurrentState { get; }Public Overridable ReadOnly Property SupportsCurrentState As BooleanProperty value
The value true in case the OpcFiniteStateMachineNode supports state changes; otherwise the value false. The default value is true.
Implements
Methods
CanChangeStateTo
| Overload | Description |
|---|---|
| CanChangeStateTo( | Determines whether the CurrentState can be changed to the newState specified using the further specified context. |
| CanChangeStateTo( | Determines whether the oldState can be changed to the newState specified using the further specified context. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The context or newState is a null reference ( |
CanChangeStateTo(OpcContext, object)
Determines whether the CurrentState can be changed to the newState specified using the further specified context.
public bool CanChangeStateTo(OpcContext context, object newState)Public Function CanChangeStateTo(
context As OpcContext,
newState As Object) As BooleanParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to determine. |
newState | Object | The state number or enum of the state to determine. |
Returns
Implements
Remarks
In case SupportsCurrentState is equals false, this method does always returns false.
CanChangeStateTo(OpcContext, object, object)
Determines whether the oldState can be changed to the newState specified using the further specified context.
public bool CanChangeStateTo(
OpcContext context,
object oldState,
object newState)Public Function CanChangeStateTo(
context As OpcContext,
oldState As Object,
newState As Object) As BooleanParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to determine. |
oldState | Object | The assumed current state number or enum of the state to determine. |
newState | Object | The dedicated new state number or enum of the state to determine. |
Returns
Implements
ChangeStateTo
Changes the CurrentState to the newState specified using the further specified context.
public void ChangeStateTo(OpcContext context, object newState)Public Sub ChangeStateTo(context As OpcContext, newState As Object)Parameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to change. |
newState | Object | The state number or enum of the state to change to. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The newState is not a known state. |
| Argument | The context or newState is a null reference ( |
| Invalid | No transition leads from the current state to the newState. |
| OpcException | The change operation failed ( |
Implements
Remarks
In case SupportsCurrentState is equals false, this method does not perform any state changes.
CreateSubStatesMachineNode
When overridden in a derived class, creates the state machine of the sub-states of the state specified.
protected virtual OpcFiniteStateMachineNode CreateSubStatesMachineNode(
object state)Protected Overridable Function CreateSubStatesMachineNode(
state As Object) As OpcFiniteStateMachineNodeParameters
| Name | Type | Description |
|---|---|---|
state | Object | The state number of a state for which the type definition of the state machine declares a state machine of sub-states. |
Returns
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
| Overload | Description |
|---|---|
| Get | Gets the state machine of the sub-states of the current state. |
| Get | Gets the state machine of the sub-states of the state specified. |
GetSubStatesMachineNode()
Gets the state machine of the sub-states of the current state.
public OpcFiniteStateMachineNode GetSubStatesMachineNode()Public Function GetSubStatesMachineNode() As OpcFiniteStateMachineNodeReturns
The state machine of the sub-states of the current state, or a null reference (Nothing in Visual Basic) if the current state has none.
GetSubStatesMachineNode(object)
Gets the state machine of the sub-states of the state specified.
public OpcFiniteStateMachineNode GetSubStatesMachineNode(object state)Public Function GetSubStatesMachineNode(
state As Object) As OpcFiniteStateMachineNodeParameters
| Name | Type | Description |
|---|---|---|
state | Object | The state number or the enumeration member of the state, or a null reference ( |
Returns
The state machine of the sub-states of the state, or a null reference (Nothing in Visual Basic) if the state has none.
IsAccessible
Determines whether the node is accessible using the context specified within the view identified by the viewId specified.
public override bool IsAccessible(OpcContext context, OpcNodeId viewId)Public Overrides Function IsAccessible(
context As OpcContext,
viewId As OpcNodeId) As BooleanParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext within that the node is accessed. |
viewId | OpcNodeId | The OpcNodeId of the view within that the node is accessed or Null if the node is not accessed within a specific view. |
Returns
The value false if the node is the state machine of the sub-states of a state (see CreateSubStatesMachineNode); otherwise the value true.
Overrides
OnBeforeAdded
Raises the BeforeAdded event using the event data specified.
protected override void OnBeforeAdded(OpcNodeAddedEventArgs e)Protected Overrides Sub OnBeforeAdded(e As OpcNodeAddedEventArgs)Parameters
| Name | Type | Description |
|---|---|---|
e | Opc | The Opc |
Overrides

