Section: 5.5.2.5 Measurement object addition/modification
Content: The UE shall: 1> for each measObjectId included in the received measObjectToAddModList: 2> if an entry with the matching measObjectId exists in the measObjectList within the VarMeasConfig, for this entry: 3> reconfigure the entry with the value received for this measObject, except for the fields cellsToAddModList, excludedCellsToAddModList, allowedCellsToAddModList, cellsToRemoveList, excludedCellsToRemoveList, allowedCellsToRemoveList, tx-PoolMeasToRemoveList, tx-PoolMeasToAddModList, ssb-PositionQCL-CellsToRemoveList, ssb-PositionQCL-CellsToAddModList, cca-CellsToRemoveList, and cca-CellsToAddModList; 3> if the received measObject includes the cellsToRemoveList: 4> for each physCellId included in the cellsToRemoveList: 5> remove the entry with the matching physCellId from the cellsToAddModList; 3> if the received measObject includes the cellsToAddModList: 4> for each physCellId value included in the cellsToAddModList: 5> if an entry with the matching physCellId exists in the cellsToAddModList: 6> replace the entry with the value received for this physCellId; 5> else: 6> add a new entry for the received physCellId to the cellsToAddModList; 3> if the received measObject includes the excludedCellsToRemoveList: 4> for each pci-RangeIndex included in the excludedCellsToRemoveList: 5> remove the entry with the matching pci-RangeIndex from the excludedCellsToAddModList; NOTE 1: For each pci-RangeIndex included in the excludedCellsToRemoveList that concerns overlapping ranges of cells, a cell is removed from the exclude-list of cells only if all PCI ranges containing it are removed. 3> if the received measObject includes the excludedCellsToAddModList: 4> for each pci-RangeIndex included in the excludedCellsToAddModList: 5> if an entry with the matching pci-RangeIndex is included in the excludedCellsToAddModList: 6> replace the entry with the value received for this pci-RangeIndex; 5> else: 6> add a new entry for the received pci-RangeIndex to the excludedCellsToAddModList; 3> if the received measObject includes the allowedCellsToRemoveList: 4> for each pci-RangeIndex included in the allowedCellsToRemoveList: 5> remove the entry with the matching pci-RangeIndex from the allowedCellsToAddModList; NOTE2: For each pci-RangeIndex included in the allowedCellsToRemoveList that concerns overlapping ranges of cells, a cell is removed from the allow-list of cells only if all PCI ranges containing it are removed. 3> if the received measObject includes the allowedCellsToAddModList: 4> for each pci-RangeIndex included in the allowedCellsToAddModList: 5> if an entry with the matching pci-RangeIndex is included in the allowedCellsToAddModList: 6> replace the entry with the value received for this pci-RangeIndex; 5> else: 6> add a new entry for the received pci-RangeIndex to the allowedCellsToAddModList 3> for each measId associated with this measObjectId in the measIdList within the VarMeasConfig, if any: 4> if the UE does not support Uplink PDCP delay measurements upon MO update; or 4> if the UE supports Uplink PDCP delay measurements upon MO update and if ul-DelayValueConfig or ul-ExcessDelayConfig is not configured for the associated reportConfig: 5> remove the measurement reporting entry for this measId from the VarMeasReportList, if included; 5> stop the periodical reporting timer or timer T321 or timer T322, whichever one is running, and reset the associated information (e.g. timeToTrigger) for this measId; 3> if the received measObject includes the tx-PoolMeasToRemoveList: 4> for each transmission resource pool indicated in tx-PoolMeasToRemoveList: 5> remove the entry with the matching identity of the transmission resource pool from the tx-PoolMeasToAddModList; 3> if the received measObject includes the tx-PoolMeasToAddModList: 4> for each transmission resource pool indicated in tx-PoolMeasToAddModList: 5> if an entry with the matching identity of the transmission resource pool exists in the tx-PoolMeasToAddModList: 6> replace the entry with the value received for this transmission resource pool; 5> else: 6> add a new entry for the received identity of the transmission resource pool to the tx-PoolMeasToAddModList; 3> if the received measObject includes the ssb-PositionQCL-CellsToRemoveList: 4> for each physCellId included in the ssb-PositionQCL-CellsToRemoveList: 5> remove the entry with the matching physCellId from the ssb-PositionQCL-CellsToAddModList; 3> if the received measObject includes the ssb-PositionQCL-CellsToAddModList: 4> for each physCellId included in the ssb-PositionQCL-CellsToAddModList: 5> if an entry with the matching physCellId exists in the ssb-PositionQCL-CellsToAddModList: 6> replace the entry with the value received for this physCellId; 5> else: 6> add a new entry for the received physCellId to the ssb-PositionQCL-CellsToAddModList; 3> if the received measObject includes the cca-CellsToRemoveList: 4> for each physCellId included in the cca-CellsToRemoveList: 5> remove the entry with the matching physCellId from the cca-CellsToAddModList; 3> if the received measObject includes the cca-CellsToAddModList: 4> for each physCellId included in the cca-CellsToAddModList: 5> if an entry with the matching physCellId exists in the cca-CellsToAddModList: 6> replace the entry with the value received for this physCellId; 5> else: 6> add a new entry for the received physCellId to the cca-CellsToAddModList; 2> else: 3> add a new entry for the received measObject to the measObjectList within VarMeasConfig.