OTX Reference  
OpenTestSystem.Otx.Core.Actions.MapUnion Class Reference

Union of two Maps More...

Inheritance diagram for OpenTestSystem.Otx.Core.Actions.MapUnion:
Inheritance graph

Public Attributes

MapTerm[] otherMap
 Reference to a map. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.MapModifier
MapVariable map
 Reference to a map. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Union of two Maps

The MapUnion-activity unions two Maps with each other. The Map contains all the original elements and all elements of the other Map.

Map = Map + OtherMap
Note
IMPORTANT - If the modified map already contains the key of a put item, then the corresponding value is overwritten.
Checker rules
CheckerRule.Core_Chk042 - type-safe MapUnion

Syntax
MapUnion(MapVariable, {{MapTerm1}, {MapTerm2}, ...});
Examples
// Local Declarations
Map<Integer,Integer> Map1;
// Flow
MapUnion(Map1, {{1:2, 2:3}});

Member Data Documentation

◆ otherMap

MapTerm [] OpenTestSystem.Otx.Core.Actions.MapUnion.otherMap

Reference to a map.