BaseNode Class
Base class for all address_space classes
Constructor
BaseNode
-
options
Parameters:
-
optionsObject-
addressSpaceAddressSpace -
browseNameString -
[displayName]String | LocalizedText optional -
referencesReference[] -
[description]String | LocalizedText optional -
[browseFilter]Function optional
-
Item Index
Methods
- _clone
- _clone_children_references
- addReference
- browseNode
- browseNodeByTargetName
- dispose
- dumpReferences static
- findReference
- findReferences
- full_name
- getAggregates
- getComponentByName
- getComponents
- getEventSourceOfs
- getEventSources
- getFalseSubStates
- getFolderElements
- getMethodById
- getMethodByName
- getMethods
- getNotifiers
- getProperties
- getPropertyByName
- getTrueSubStates
- normalize_referenceTypeId
- propagate_back_references
- readAttribute
- resolveNodeId
- unpropagate_back_references
- writeAttribute
Properties
Methods
_clone
-
Constructor -
options -
extraInfo
Parameters:
-
ConstructorFunction -
optionsObject -
extraInfoObject
Returns:
_clone_children_references
-
newParent -
[optionalFilter = null] -
[extraInfo]
clone properties and methods
Parameters:
-
newParentObjectthe new parent object to which references of type HasChild will be attached
-
[optionalFilter = null]Function optionala filter
-
[extraInfo]Object optional
Returns:
addReference
-
reference
Parameters:
-
referenceObject-
referenceTypeString -
[isForward= true]Boolean optional -
nodeIdNode | NodeId | String
-
Example:
view.addReference({ referenceType: "Organizes", nodeId: myDevice });
or
myDevice1.addReference({ referenceType: "OrganizedBy", nodeId: view });
browseNode
-
browseDescription -
session
browse the node to extract information requested in browseDescription
Parameters:
-
browseDescriptionBrowseDescription-
referenceTypeIdNodeId -
browseDirectionBrowseDirection -
nodeClassMaskNodeClassMask -
resultMaskUInt32
-
-
sessionServerSession
Returns:
browseNodeByTargetName
-
relativePathElement
Parameters:
-
relativePathElementRelativePathElement-
targetNameQualifiedName-
nameString -
namespaceIndexUInt32
-
-
referenceTypeIdNodeId -
isInverseBoolean -
includeSubtypesBoolean
-
Returns:
dispose
()
the dispose method should be called when the node is no longer used, to release back pointer to the address space and clear caches.
dumpReferences
-
addressSpace -
references
Parameters:
-
addressSpaceAddressSpace -
referencesArray| | Null
findReference
-
strReference -
[isForward] -
[optionalSymbolicName]
Parameters:
-
strReferenceStringthe referenceType as a string.
-
[isForward]Boolean | Null optional -
[optionalSymbolicName]String optional
Returns:
findReferences
-
strReference -
[isForward=true]
Parameters:
-
strReferenceStringthe referenceType as a string.
-
[isForward=true]Boolean optional
Returns:
full_name
()
String
Returns:
the full path name of the node
getAggregates
()
BaseNode[]
Returns:
return an array with the Aggregates of this object.
getComponentByName
-
browseName
retrieve a component by name
Parameters:
-
browseNameObject
Returns:
getComponents
()
BaseNode[]
Returns:
return an array with the components of this object.
getEventSourceOfs
()
BaseNode[]
Returns:
return a array of the objects for which this node is an EventSource
getEventSources
()
BaseNode[]
Returns:
return a array with the event source of this object.
getFalseSubStates
()
BaseNode[]
Returns:
return an array with the SubStates of this object.
getFolderElements
()
Arrayreturns the list of nodes that this folder object organizes
Returns:
getMethodById
-
nodeId
Parameters:
-
nodeIdObject
Returns:
getMethodByName
-
browseName
Parameters:
-
browseNameObject
Returns:
getMethods
()
Arrayreturns the list of methods that this object provides
Returns:
returns an array wit"h Method objects.
Note: internally, methods are special types of components
getPropertyByName
-
browseName
retrieve a property by name
Parameters:
-
browseNameObject
Returns:
getTrueSubStates
()
BaseNode[]
Returns:
return an array with the SubStates of this object.
normalize_referenceTypeId
-
addressSpace -
referenceTypeId
Parameters:
-
addressSpaceAddressSpace -
referenceTypeIdString | NodeId | Null: the referenceType either as a string or a nodeId
Returns:
propagate_back_references
()
this methods propagates the forward references to the pointed node by inserting backward references to the counter part node
readAttribute
-
context -
attributeId -
[indexRange] -
[dataEncoding]
Parameters:
-
contextSessionContext -
attributeIdAttributeId -
[indexRange]NumericRange optional -
[dataEncoding]String optional
Returns:
unpropagate_back_references
()
private
Undo the effect of propagate_back_references
writeAttribute
-
context -
writeValue -
callback
Parameters:
-
contextSessionContext -
writeValueObject-
attributeIdAttributeId -
dataValueDataValue -
indexRangeNumericRange
-
-
callbackFunction-
errError | Null -
statusCodeStatusCode
-
Properties
hasMethods
Boolean
returns true if the object has some opcua methods
The NodeOPCUA API