View Issue Details

IDProjectCategoryView StatusLast Update
0004350Compliance Test Tool (CTT) Unified Architecture3 - Feature Requestpublic2019-04-26 15:01
ReporterPaul Hunkar Assigned ToArchie Miller  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.03 
Target Version1.03 
Summary0004350: CTT needs to be able to cache the type directory/Hierarchy
Description

A function need to exist that the NodeId of a type can be passed in and all parent type objects (until a namespace 0 object is encountered) need to be provided back as an array of NodeId, and a parallel array of BrowseNames. This will allow the script to check the typedefinition of anything easily. The results should be available to the Java script until it is released.

TagsNo tags attached.
Files Affected

Activities

Archie Miller

2018-08-02 18:01

administrator   ~0009251

A map is created of the object model a single time, with the key being the string representation of a node id, and the value being the references. This model is stored in the main window, so it can be reused as necessary.

Classes created
/src/scriptengine/infrastructuretypes/UaTypeHierarchyRequestClass
/src/scriptengine/infrastructuretypes/UaTypeHierarchyResponseClass

API created
uaSessionClass::getTypeHierarchyCached

JS Helper created
/library/Information/GetTypeHierarchy.js

Usage Example

var result = GetTypeHierarchyHelper.Execute( { NodeToRead : UaNodeId.fromString("ns=3;s=MyNode") } );

Success:
result =
{
"result": true,
"typeHierarchy": {
"NodeIdsInHierarchy": [
{
"NodeId": "ns=3;i=1000"
},
{
"NodeId": "ns=0;i=58"
}
],
"BrowseNamesInHierarchy": [
{
"NamespaceIndex": "3",
"Name": "MyObjectType"
},
{
"NamespaceIndex": "3",
"Name": "BaseObjectType"
}
]
}
}

Failed:
result =
{
"result": false,
"typeHierarchy": null
}

Paul Hunkar

2019-04-26 15:01

administrator   ~0010228

reviewed in CMP Meeting (code reviewed separately )

Issue History

Date Modified Username Field Change
2018-08-01 17:44 Paul Hunkar New Issue
2018-08-01 18:06 Paul Hunkar Assigned To => Archie Miller
2018-08-01 18:06 Paul Hunkar Status new => assigned
2018-08-02 18:01 Archie Miller Note Added: 0009251
2018-08-02 18:01 Archie Miller Status assigned => resolved
2019-01-28 14:14 Paul Hunkar Category Feature Request => 3 - Feature Request
2019-04-26 15:01 Paul Hunkar Status resolved => closed
2019-04-26 15:01 Paul Hunkar Resolution open => fixed
2019-04-26 15:01 Paul Hunkar Note Added: 0010228