Skip to content

Reference

OpcTwoStateVariableNode Members

Defines a specialization of the OpcStateVariableNode which uses a bool as the value of the VariableId.

Reference

OpcTwoStateVariableNode Members ​

Type
OpcTwoStateVariableNode
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcStateVariableNode, OpcTextVariableNode, OpcVariableNode, OpcInstanceNode, OpcNode.

Constructors ​

OpcTwoStateVariableNode ​

10 overloads

OverloadDescription
OpcTwoStateVariableNode(OpcName)Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified.
OpcTwoStateVariableNode(OpcName, OpcText)Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified with the initial value given by value.
OpcTwoStateVariableNode(OpcName, OpcNodeId)Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified.
OpcTwoStateVariableNode(OpcName, OpcNodeId, OpcText)Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified with the initial value given by value.
OpcTwoStateVariableNode(IOpcNode, OpcName)Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified as a child node of the parent node given.
OpcTwoStateVariableNode(IOpcNode, OpcName, OpcText)Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified with the initial value defined by value as a child node of the parent node given.
OpcTwoStateVariableNode(IOpcNode, OpcName, OpcNodeId)Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified as a child node of the parent node given.
OpcTwoStateVariableNode(IOpcNode, OpcName, OpcNodeId, OpcText)Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.
OpcTwoStateVariableNode(TwoStateVariableState)protected · since v2.50Initializes a new instance of the OpcTwoStateVariableNode class using the content as the instance to wrap.
OpcTwoStateVariableNode(TwoStateVariableState, OpcNodeModel)protected · since v2.50Initializes a new instance of the OpcTwoStateVariableNode class using the content as the instance to wrap.

OpcTwoStateVariableNode(OpcName) ​

Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified.

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

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new two state variable node can be accessed.

OpcTwoStateVariableNode(OpcName, OpcText) ​

Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified with the initial value given by value.

csharp
public OpcTwoStateVariableNode(OpcName name, OpcText value)
vbnet
Public Sub New(name As OpcName, value As OpcText)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new two state variable node can be accessed.
valueOpcTextThe initial value of the new two state variable node.

OpcTwoStateVariableNode(OpcName, OpcNodeId) ​

Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified.

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

Parameters

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

OpcTwoStateVariableNode(OpcName, OpcNodeId, OpcText) ​

Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified with the initial value given by value.

csharp
public OpcTwoStateVariableNode(OpcName name, OpcNodeId id, OpcText value)
vbnet
Public Sub New(name As OpcName, id As OpcNodeId, value As OpcText)

Parameters

NameTypeDescription
nameOpcNameThe OpcName through that the new two state variable node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new two state variable node can be identified and accessed.
valueOpcTextThe initial value of the new two state variable node.

OpcTwoStateVariableNode(IOpcNode, OpcName) ​

Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified as a child node of the parent node given.

csharp
public OpcTwoStateVariableNode(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 two state variable node can be accessed.

OpcTwoStateVariableNode(IOpcNode, OpcName, OpcText) ​

Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified with the initial value defined by value as a child node of the parent node given.

csharp
public OpcTwoStateVariableNode(IOpcNode parent, OpcName name, OpcText value)
vbnet
Public Sub New(parent As IOpcNode, name As OpcName, value As OpcText)

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 two state variable node can be accessed.
valueOpcTextThe initial value of the new two state variable node.

OpcTwoStateVariableNode(IOpcNode, OpcName, OpcNodeId) ​

Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified as a child node of the parent node given.

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

OpcTwoStateVariableNode(IOpcNode, OpcName, OpcNodeId, OpcText) ​

Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.

csharp
public OpcTwoStateVariableNode(
    IOpcNode parent,
    OpcName name,
    OpcNodeId id,
    OpcText value)
vbnet
Public Sub New(
    parent As IOpcNode,
    name As OpcName,
    id As OpcNodeId,
    value As OpcText)

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 two state variable node can be accessed.
idOpcNodeIdThe OpcNodeId through that the new two state variable node can be identified and accessed.
valueOpcTextThe initial value of the new two state variable node.

OpcTwoStateVariableNode(TwoStateVariableState) ​

protected · since v2.50

Initializes a new instance of the OpcTwoStateVariableNode class using the content as the instance to wrap.

csharp
protected OpcTwoStateVariableNode(TwoStateVariableState content)
vbnet
Protected Sub New(content As TwoStateVariableState)

Parameters

NameTypeDescription
contentTwoStateVariableStateThe TwoStateVariableState to wrap.

Exceptions

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

OpcTwoStateVariableNode(TwoStateVariableState, OpcNodeModel) ​

protected · since v2.50

Initializes a new instance of the OpcTwoStateVariableNode class using the content as the instance to wrap.

csharp
protected OpcTwoStateVariableNode(
    TwoStateVariableState content,
    OpcNodeModel model)
vbnet
Protected Sub New(content As TwoStateVariableState, model As OpcNodeModel)

Parameters

NameTypeDescription
contentTwoStateVariableStateThe TwoStateVariableState 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).

Properties ​

DefaultTypeDefinitionId ​

protected · override

Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.

csharp
protected override OpcNodeId DefaultTypeDefinitionId { get; }
vbnet
Protected Overrides ReadOnly Property DefaultTypeDefinitionId As OpcNodeId

Property value

OpcNodeId

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

DefaultTypeDefinitionId

EffectiveTransitionTime ​

Gets or sets a value which specifies the time when the current state or one of its substates was entered.

csharp
public DateTime EffectiveTransitionTime { get; set; }
vbnet
Public Property EffectiveTransitionTime As Date

Property value

DateTime

The effective DateTime of the time the current state has been entered.

Remarks

If, for example, a level alarm is active and - while active - switches several times between high and highhigh, then the TransitionTime stays at the point in time where the alarm became active whereas the EffectiveTransitionTime changes with each shift of a sub state.

EffectiveTransitionTimeNode ​

Gets the OpcPropertyNode<T> of the EffectiveTransitionTime property.

csharp
public OpcPropertyNode<DateTime> EffectiveTransitionTimeNode { get; }
vbnet
Public ReadOnly Property EffectiveTransitionTimeNode As OpcPropertyNode(Of Date)

Property value

OpcPropertyNode<DateTime>

An instance of the OpcPropertyNode<T> class.

FalseState ​

Gets or sets a value which contains a human readable representation for the variable value when its VariableId property has the value true.

csharp
public OpcText FalseState { get; set; }
vbnet
Public Property FalseState As OpcText

Property value

OpcText

The human readable representation for the value true.

FalseStateNode ​

Gets the OpcTextPropertyNode of the FalseState property.

csharp
public OpcTextPropertyNode FalseStateNode { get; }
vbnet
Public ReadOnly Property FalseStateNode As OpcTextPropertyNode

Property value

OpcTextPropertyNode

An instance of the OpcTextPropertyNode class.

TransitionTime ​

Gets or sets a value which specifies when the current state was entered.

csharp
public DateTime TransitionTime { get; set; }
vbnet
Public Property TransitionTime As Date

Property value

DateTime

The DateTime of the time the current state was entered.

TransitionTimeNode ​

Gets the OpcPropertyNode<T> of the TransitionTime property.

csharp
public OpcPropertyNode<DateTime> TransitionTimeNode { get; }
vbnet
Public ReadOnly Property TransitionTimeNode As OpcPropertyNode(Of Date)

Property value

OpcPropertyNode<DateTime>

An instance of the OpcPropertyNode<T> class.

TrueState ​

Gets or sets a value which contains a human readable representation for the variable value when its VariableId property has the value true.

csharp
public OpcText TrueState { get; set; }
vbnet
Public Property TrueState As OpcText

Property value

OpcText

The human readable representation for the value true.

TrueStateNode ​

Gets the OpcTextPropertyNode of the TrueState property.

csharp
public OpcTextPropertyNode TrueStateNode { get; }
vbnet
Public ReadOnly Property TrueStateNode As OpcTextPropertyNode

Property value

OpcTextPropertyNode

An instance of the OpcTextPropertyNode class.

VariableId ​

Gets or sets a node identifier which uniquely identifies the current state within the state machine.

csharp
public bool? VariableId { get; set; }
vbnet
Public Property VariableId As Boolean?

Property value

Nullable<Boolean>

A bool which uniquely identifies the current state within the state machine.

Methods ​

InitializeDefaults ​

protected · override

Initializes the default values used by the OpcTwoStateVariableNode.

csharp
protected override void InitializeDefaults()
vbnet
Protected Overrides Sub InitializeDefaults()

Overrides

InitializeDefaults

Remarks

This method is used to ensure the availability of appropriate node specific default values. For more information like when this method is to be overwritten see InitializeDefaults.