UADataType Class
Constructor
UADataType
-
options
Parameters:
-
options
Object-
definition_name
Object -
definition
Object
-
Item Index
Methods
- _clone
- _clone_children_references
- addReference
- browseNode
- browseNodeByTargetName
- dispose
- findReference
- findReferences
- full_name
- getAggregates
- getComponentByName
- getComponents
- getEventSourceOfs
- getEventSources
- getFalseSubStates
- getFolderElements
- getMethodById
- getMethodByName
- getMethods
- getNotifiers
- getProperties
- getPropertyByName
- getTrueSubStates
- isArgumentValid
- isSupertypeOf
- normalize_referenceTypeId
- propagate_back_references
- readAttribute
- removeReference
- resolveNodeId
- unpropagate_back_references
- verifyArguments_ArgumentList
- writeAttribute
Properties
- binaryEncoding
- binaryEncodingDefinition
- binaryEncodingDefinition
- description
- displayName
- hasEncoding !~YUIDOC_LINE~!TODO objects have 2 encodings : XML and Binaries
- hasMethods
- isFalseSubStateOf
- isTrueSubStateOf
- modellingRule
- namespaceIndex
- namespaceUri
- parent
- subtypeOf
- typeDefinition
- typeDefinitionObj
- xmlEncoding
Methods
_clone
-
Constructor
-
options
-
extraInfo
-
optionalFilter
Parameters:
-
Constructor
Function -
options
Object -
extraInfo
Object -
optionalFilter
Object
Returns:
_clone_children_references
-
newParent
-
[optionalFilter = null]
-
[extraInfo]
clone properties and methods
Parameters:
-
newParent
Objectthe new parent object to which references of type HasChild will be attached
-
[optionalFilter = null]
Function optionala filter
-
[extraInfo]
Object optional
Returns:
addReference
-
reference
Parameters:
-
reference
Object-
referenceType
String -
[isForward= true]
Boolean optional -
nodeId
Node | 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:
-
browseDescription
BrowseDescription-
referenceTypeId
NodeId -
browseDirection
BrowseDirection -
nodeClassMask
NodeClassMask -
resultMask
UInt32
-
-
session
ServerSession
Returns:
browseNodeByTargetName
-
relativePathElement
Parameters:
-
relativePathElement
RelativePathElement-
targetName
QualifiedName-
name
String -
namespaceIndex
UInt32
-
-
referenceTypeId
NodeId -
isInverse
Boolean -
includeSubtypes
Boolean
-
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.
findReference
-
strReference
-
[isForward]
-
[optionalSymbolicName]
Parameters:
-
strReference
Stringthe referenceType as a string.
-
[isForward]
Boolean | Null optional -
[optionalSymbolicName]
String optional
Returns:
findReferences
-
referenceType
-
[isForward=true]
Parameters:
-
referenceType
String | NodeId | ReferenceTypethe 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
-
[namespaceIndex=null]
retrieve a component by name
Parameters:
-
browseName
Object -
[namespaceIndex=null]
Object optional
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:
-
nodeId
Object
Returns:
getMethodByName
-
browseName
-
[namespaceIndex=null]
Parameters:
-
browseName
Object -
[namespaceIndex=null]
Object optional
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
-
[namespaceIndex=null]
retrieve a property by name
Parameters:
-
browseName
Object -
[namespaceIndex=null]
Object optional
Returns:
getTrueSubStates
()
BaseNode[]
Returns:
return an array with the SubStates of this object.
isArgumentValid
-
addressSpace
-
argDefinition
-
arg
Parameters:
-
addressSpace
AddressSpace -
argDefinition
Argument -
arg
Variant
Returns:
isSupertypeOf
-
baseType
returns true if self is a super type of baseType
Parameters:
-
baseType
UADataType
Returns:
true if self is a Subtype of baseType
Example:
var dataTypeDouble = addressSpace.findDataType("Double"); var dataTypeNumber = addressSpace.findDataType("Number"); assert(dataTypeDouble.isSupertypeOf(dataTypeNumber)); assert(!dataTypeNumber.isSupertypeOf(dataTypeDouble));
normalize_referenceTypeId
-
addressSpace
-
referenceTypeId
Parameters:
-
addressSpace
AddressSpace -
referenceTypeId
String | 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:
-
context
SessionContext -
attributeId
AttributeId -
[indexRange]
NumericRange optional -
[dataEncoding]
String optional
Returns:
removeReference
-
reference
Parameters:
-
reference
Object
Returns:
void
unpropagate_back_references
()
private
Undo the effect of propagate_back_references
verifyArguments_ArgumentList
-
addressSpace
-
methodInputArguments
-
inputArguments
Parameters:
-
addressSpace
AddressSpace -
methodInputArguments
Argument[] -
inputArguments
Variant[]
Returns:
statusCode,inputArgumentResults
writeAttribute
-
context
-
writeValue
-
callback
Parameters:
-
context
SessionContext -
writeValue
Object-
attributeId
AttributeId -
dataValue
DataValue -
indexRange
NumericRange
-
-
callback
Function-
err
Error | Null -
statusCode
StatusCode
-
Properties
binaryEncodingDefinition
String
binaryEncodingDefinition
String
hasEncoding !~YUIDOC_LINE~!TODO objects have 2 encodings : XML and Binaries
NodeId
returns the encoding of this node's
hasMethods
Boolean
returns true if the object has some opcua methods