ConditionInfo Class
Constructor
ConditionInfo
-
options
Parameters:
-
options
Object-
message
String | LocalizedTextthe event message
-
severity
UInt16severity
-
quality
StatusCodequality
-
retain
Booleanretain 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:
-
subscriptionId
Number -
context
Object
_getCompositeKey
-
node
-
key
Parameters:
-
node
BaseNode -
key
String
Returns:
Example:
var node = _getComposite(node,"enabledState.id");
_raiseAuditConditionCommentEvent
-
sourceName
-
eventId
-
comment
Parameters:
-
sourceName
String -
eventId
Buffer -
comment
LocalizedText
instantiate
-
namespace
-
conditionTypeId
-
options
-
data
instantiate a Condition. this will create the unique EventId and will set eventType
Parameters:
-
namespace
Namespace -
conditionTypeId
String | NodeIdthe EventType to instantiate
-
options
Object-
browseName
String | QualifiedName -
componentOf
NodeId | UAObject -
conditionOf
NodeId | UAObjectMandatory
-
organizedBy
NodeId | 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.
-
conditionSource
NodeId | 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
-
conditionName
Stringthe condition Name
-
[optionals] [Array<String>]
optionalan Array of optinals fields
-
-
data
Objecta object containing the value to set
-
eventId
String | NodeIdthe EventType Identifier to instantiate (type cannot be abstract)
-
Returns:
node
isDifferentFrom
-
otherConditionInfo
Parameters:
-
otherConditionInfo
ConditionInfo
Returns:
with_condition_method$
-
inputArguments
-
context
-
callback
-
inner_func
Helper method to handle condition methods that takes a branchId and a comment
Parameters:
-
inputArguments
Array -
context
Object-
object
BaseNode
-
-
callback
Function-
err
Error | Null -
result
Object-
statusCode
StatusCode
-
-
-
inner_func
Function-
eventId
Buffer | Null -
comment
LocalizedText -
branch
ConditionSnapshot -
conditionNode
UAConditionBase
-
Returns:
Properties
addComment
UAMethod
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
Events
addComment
raised when the branch has been added a comment
Event Payload:
-
eventId
Buffer | Null -
comment
LocalizedText -
branch
ConditionSnapshot