Create operating point by merging data from two operating points
creates a new opNew
= merge(op1
, op2
)OperatingPoint
object opNew
,
with children from two OperatingPoint
objects,
op1
and op2
.
The function starts by copying all children from op1
into
opNew
. Then, if a child ID exists in
op2
but not in op1
, the function adds
the child to opNew
. If a child ID exists both in
op1
and op2
, then:
If both children are OperatingPoint
objects, the
function merges them according to the same rules.
If at least one of the two children is a Target
object, the function retains the child of op1
and
discards the child of op2
.