View Issue Details

IDProjectCategoryView StatusLast Update
0004351Compliance Test Tool (CTT) Unified Architecture3 - Feature Requestpublic2019-04-26 15:00
ReporterPaul Hunkar Assigned ToArchie Miller  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.03 
Target Version1.03 
Summary0004351: The CTT needs C++ functionality FindObjectsOfType
Description

Specifying the Object Type and the function needs to run through the whole address space returning a list of items of the specified object type. This needs to be available with including Subtypes or not.
So need Inputs (nodeId of ObjectType), and Boolean (include Subtypes), Maximum Nodes to Return (int16). Outputs (array of Nodeid, that are instance of the given Type – up to Maximum number of values). If maximum size encountered then status should indicate warning that maximum reached.

TagsNo tags attached.
Files Affected

Activities

Archie Miller

2018-08-02 18:15

administrator   ~0009252

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/UaFindObjectsOfTypeRequestClass
/src/scriptengine/infrastructuretypes/UaFindObjectsOfTypeResponseClass

API created
uaSessionClass::findObjectsOfTypeCached

JS Helper created
/library/Information/FindObjectsOfType.js

Usage Example

var result = var findResult = FindObjectsOfTypeHelper.Execute(
{ TypeToFind : UaNodeId.fromString("ns=3;i=1000"),
IncludeSubTypes : true,
MaxNodesToReturn : 20 });

Success:
result =
{
"result": true,
"nodes": [
{
"NodeId": "ns=3;i=1000"
},
{
"NodeId": "ns=0;i=58"
}
]
}

Failed:
result =
{
"result": false,
"nodes": null

}

Paul Hunkar

2019-04-26 15:00

administrator   ~0010227

reviewed in CMP Meeting (code reviewed separately )

Issue History

Date Modified Username Field Change
2018-08-01 17:45 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:15 Archie Miller Note Added: 0009252
2018-08-02 18:15 Archie Miller Status assigned => resolved
2019-01-28 14:14 Paul Hunkar Category Feature Request => 3 - Feature Request
2019-04-26 15:00 Paul Hunkar Status resolved => closed
2019-04-26 15:00 Paul Hunkar Resolution open => fixed
2019-04-26 15:00 Paul Hunkar Note Added: 0010227