ConditionInfo Class
Constructor
ConditionInfo
-
options
Parameters:
-
optionsObject-
messageString | LocalizedTextthe event message
-
severityUInt16severity
-
qualityStatusCodequality
-
retainBooleanretain flag
-
Item Index
Methods
Properties
Events
Methods
_check_subscription_id_is_valid
-
subscriptionId -
context
verify that the subscription id belongs to the session that make the call.
Parameters:
-
subscriptionIdNumber -
contextObject
_getCompositeKey
-
node -
key
Parameters:
-
nodeBaseNode -
keyString
Returns:
Example:
var node = _getComposite(node,"enabledState.id");
_raiseAuditConditionCommentEvent
-
sourceName -
eventId -
comment
Parameters:
-
sourceNameString -
eventIdBuffer -
commentLocalizedText
instantiate
-
addressSpace -
conditionTypeId -
options -
data
instantiate a Condition. this will create the unique EventId and will set eventType
Parameters:
-
addressSpaceObject -
conditionTypeIdString | NodeIdthe EventType to instantiate
-
optionsObject-
browseNameString | QualifiedName -
componentOfNodeId | UAObject -
conditionOfNodeId | UAObjectMandatory
-
organizedByNodeId | UAObject( only provide componentOf or organizedBy but not both)
-
[conditionClass=BaseConditionClassType]NodeId | UAObject optionalThe condition Class nodeId or object used to set the ConditionClassId and ConditionClassName properties of the condition. -
conditionSourceNodeId | UAObjectthe condition source node. this node must be marked a EventSource. the conditionSource is used to populate the sourceNode and sourceName variables defined by BaseEventType
-
conditionNameStringthe condition Name
-
[optionals] [Array<String>]optionalan Array of optinals fields
-
-
dataObjecta object containing the value to set
-
eventIdString | NodeIdthe EventType Identifier to instantiate (type cannot be abstract)
-
Returns:
node
isDifferentFrom
-
otherConditionInfo
Parameters:
-
otherConditionInfoConditionInfo
Returns:
with_condition_method$
-
inputArguments -
context -
callback -
inner_func
Helper method to handle condition methods that takes a branchId and a comment
Parameters:
-
inputArgumentsArray -
contextObject-
objectBaseNode
-
-
callbackFunction-
errError | Null -
resultObject-
statusCodeStatusCode
-
-
-
inner_funcFunction-
eventIdBuffer | Null -
commentLocalizedText -
branchConditionSnapshot -
conditionNodeUAConditionBase
-
Returns:
Properties
addComment
UAMethod
branchId
UAVariableType
dataType is DataType.NodeId
comment
UAVariableType
dataType is DataType.LocalizedText
conditionName
UAVariable
dataType: DataType.String
As per spec OPCUA 1.03 part 9:
ConditionName identifies the Condition instance that the Event originated from. It can be used
together with the SourceName in a user display to distinguish between different Condition
instances. If a ConditionSource has only one instance of a ConditionType, and the Server has
no instance name, the Server shall supply the ConditionType browse name.
conditionName
UAVariable
dataType: DataType.NodeId
As per spec OPCUA 1.03 part 9:
ConditionClassId specifies in which domain this Condition is used. It is the NodeId of the
corresponding ConditionClassType. See 5.9 for the definition of ConditionClass and a set of
ConditionClasses defined in this standard. When using this Property for filtering, Clients have
to specify all individual ConditionClassType NodeIds. The OfType operator cannot be applied.
BaseConditionClassType is used as class whenever a Condition cannot be assigned to a
more concrete class.
BaseConditionClassType | +---------------------------+----------------------------+ | | | ProcessConditionClassType MaintenanceConditionClassType SystemConditionClassType
disable
UAMethod
enable
UAMethod
eventType
UAVariableType
dataType is DataType.NodeId
lastSeverity
UAVariableType
dataType is DataType.StatusCode
quality
UAVariableType
dataType is DataType.StatusCode
sourceNode
UAVariableType
dataType is DataType.NodeId
Events
addComment
Event Payload:
-
eventIdBuffer | Null -
commentLocalizedText -
branchConditionSnapshotraised when the branch has been added a comment
The NodeOPCUA API