View Issue Details

IDProjectCategoryView StatusLast Update
0004352Compliance Test Tool (CTT) Unified Architecture3 - Feature Requestpublic2019-04-26 14:59
ReporterPaul Hunkar Assigned ToArchie Miller  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.03 
Target Version1.03 
Summary0004352: The CTT need C++ functionality IsSubtypeOfType
Description

Specifying an Object and the function needs to check whether the provided object is of that type or one of its subtypes. Input NodeID of an Item, Nodeid of a Type , returns True if is of Type return False if it not of the given type

TagsNo tags attached.
Files Affected

Activities

Archie Miller

2018-08-02 18:28

administrator   ~0009253

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.

API function will check whether provided object is type or subtype. This will work whether a type or and instance is passed in as the node id to be checked.

Classes created
/src/scriptengine/infrastructuretypes/UaIsSubTypeOfTypeRequestClass
/src/scriptengine/infrastructuretypes/UaIsSubTypeOfTypeResponseClass

API created
uaSessionClass::isSubTypeOfTypeCached

JS Helper created
/library/Information/IsSubTypeOfType.js

Usage Example

var result = IsSubTypeOfTypeHelper.Execute(
{ ItemNodeId : UaNodeId.fromString("ns=3;i=2000"),
TypeNodeId : UaNodeId.fromString("ns=3;i=1000")});

Success:
result =
{
"result": true,
"isSubTypeOf": true
}

Is not subtype:
result =
{
"result": true,
"isSubTypeOf": false
}

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

}

Paul Hunkar

2019-04-26 14:59

administrator   ~0010226

reviewed in CMP Meeting (code reviewed separately )

Issue History

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