slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1 | /** |
| 2 | * This class file was automatically generated by jASN1 v1.8.0 (http://www.openmuc.org) |
| 3 | */ |
| 4 | |
| 5 | package org.onosproject.xran.codecs.pdu; |
| 6 | |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 7 | import com.fasterxml.jackson.annotation.JsonIgnore; |
| 8 | import org.onosproject.xran.codecs.ber.BerByteArrayOutputStream; |
| 9 | import org.onosproject.xran.codecs.ber.BerTag; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 10 | |
| 11 | import java.io.IOException; |
| 12 | import java.io.InputStream; |
| 13 | import java.io.Serializable; |
| 14 | |
| 15 | public class XrancPduBody implements Serializable { |
| 16 | |
| 17 | private static final long serialVersionUID = 1L; |
| 18 | |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 19 | @JsonIgnore |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 20 | public byte[] code = null; |
| 21 | private CellConfigRequest cellConfigRequest = null; |
| 22 | private CellConfigReport cellConfigReport = null; |
| 23 | private UEAdmissionRequest uEAdmissionRequest = null; |
| 24 | private UEAdmissionResponse uEAdmissionResponse = null; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 25 | private UEAdmissionStatus uEAdmissionStatus = null; |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 26 | private UEContextUpdate uEContextUpdate = null; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 27 | private UEReconfigInd uEReconfigInd = null; |
| 28 | private UEReleaseInd uEReleaseInd = null; |
| 29 | private BearerAdmissionRequest bearerAdmissionRequest = null; |
| 30 | private BearerAdmissionResponse bearerAdmissionResponse = null; |
| 31 | private BearerAdmissionStatus bearerAdmissionStatus = null; |
| 32 | private BearerReleaseInd bearerReleaseInd = null; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 33 | private HORequest hORequest = null; |
| 34 | private HOFailure hOFailure = null; |
| 35 | private HOComplete hOComplete = null; |
| 36 | private RXSigMeasConfig rXSigMeasConfig = null; |
| 37 | private RXSigMeasReport rXSigMeasReport = null; |
| 38 | private L2MeasConfig l2MeasConfig = null; |
| 39 | private RadioMeasReportPerUE radioMeasReportPerUE = null; |
| 40 | private RadioMeasReportPerCell radioMeasReportPerCell = null; |
| 41 | private SchedMeasReportPerUE schedMeasReportPerUE = null; |
| 42 | private SchedMeasReportPerCell schedMeasReportPerCell = null; |
| 43 | private PDCPMeasReportPerUe pDCPMeasReportPerUe = null; |
| 44 | private XICICConfig xICICConfig = null; |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 45 | private UECapabilityInfo uECapabilityInfo = null; |
| 46 | private UECapabilityEnquiry uECapabilityEnquiry = null; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 47 | private ScellAdd scellAdd = null; |
| 48 | private ScellAddStatus scellAddStatus = null; |
| 49 | private ScellDelete scellDelete = null; |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 50 | private RRMConfig rRMConfig = null; |
| 51 | private RRMConfigStatus rRMConfigStatus = null; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 52 | private SeNBAdd seNBAdd = null; |
| 53 | private SeNBAddStatus seNBAddStatus = null; |
| 54 | private SeNBDelete seNBDelete = null; |
| 55 | private TrafficSplitConfig trafficSplitConfig = null; |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 56 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 57 | public XrancPduBody() { |
| 58 | } |
| 59 | |
| 60 | public XrancPduBody(byte[] code) { |
| 61 | this.code = code; |
| 62 | } |
| 63 | |
| 64 | public void setCellConfigRequest(CellConfigRequest cellConfigRequest) { |
| 65 | this.cellConfigRequest = cellConfigRequest; |
| 66 | } |
| 67 | |
| 68 | public CellConfigRequest getCellConfigRequest() { |
| 69 | return cellConfigRequest; |
| 70 | } |
| 71 | |
| 72 | public void setCellConfigReport(CellConfigReport cellConfigReport) { |
| 73 | this.cellConfigReport = cellConfigReport; |
| 74 | } |
| 75 | |
| 76 | public CellConfigReport getCellConfigReport() { |
| 77 | return cellConfigReport; |
| 78 | } |
| 79 | |
| 80 | public void setUEAdmissionRequest(UEAdmissionRequest uEAdmissionRequest) { |
| 81 | this.uEAdmissionRequest = uEAdmissionRequest; |
| 82 | } |
| 83 | |
| 84 | public UEAdmissionRequest getUEAdmissionRequest() { |
| 85 | return uEAdmissionRequest; |
| 86 | } |
| 87 | |
| 88 | public void setUEAdmissionResponse(UEAdmissionResponse uEAdmissionResponse) { |
| 89 | this.uEAdmissionResponse = uEAdmissionResponse; |
| 90 | } |
| 91 | |
| 92 | public UEAdmissionResponse getUEAdmissionResponse() { |
| 93 | return uEAdmissionResponse; |
| 94 | } |
| 95 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 96 | public void setUEAdmissionStatus(UEAdmissionStatus uEAdmissionStatus) { |
| 97 | this.uEAdmissionStatus = uEAdmissionStatus; |
| 98 | } |
| 99 | |
| 100 | public UEAdmissionStatus getUEAdmissionStatus() { |
| 101 | return uEAdmissionStatus; |
| 102 | } |
| 103 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 104 | public void setUEContextUpdate(UEContextUpdate uEContextUpdate) { |
| 105 | this.uEContextUpdate = uEContextUpdate; |
| 106 | } |
| 107 | |
| 108 | public UEContextUpdate getUEContextUpdate() { |
| 109 | return uEContextUpdate; |
| 110 | } |
| 111 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 112 | public void setUEReconfigInd(UEReconfigInd uEReconfigInd) { |
| 113 | this.uEReconfigInd = uEReconfigInd; |
| 114 | } |
| 115 | |
| 116 | public UEReconfigInd getUEReconfigInd() { |
| 117 | return uEReconfigInd; |
| 118 | } |
| 119 | |
| 120 | public void setUEReleaseInd(UEReleaseInd uEReleaseInd) { |
| 121 | this.uEReleaseInd = uEReleaseInd; |
| 122 | } |
| 123 | |
| 124 | public UEReleaseInd getUEReleaseInd() { |
| 125 | return uEReleaseInd; |
| 126 | } |
| 127 | |
| 128 | public void setBearerAdmissionRequest(BearerAdmissionRequest bearerAdmissionRequest) { |
| 129 | this.bearerAdmissionRequest = bearerAdmissionRequest; |
| 130 | } |
| 131 | |
| 132 | public BearerAdmissionRequest getBearerAdmissionRequest() { |
| 133 | return bearerAdmissionRequest; |
| 134 | } |
| 135 | |
| 136 | public void setBearerAdmissionResponse(BearerAdmissionResponse bearerAdmissionResponse) { |
| 137 | this.bearerAdmissionResponse = bearerAdmissionResponse; |
| 138 | } |
| 139 | |
| 140 | public BearerAdmissionResponse getBearerAdmissionResponse() { |
| 141 | return bearerAdmissionResponse; |
| 142 | } |
| 143 | |
| 144 | public void setBearerAdmissionStatus(BearerAdmissionStatus bearerAdmissionStatus) { |
| 145 | this.bearerAdmissionStatus = bearerAdmissionStatus; |
| 146 | } |
| 147 | |
| 148 | public BearerAdmissionStatus getBearerAdmissionStatus() { |
| 149 | return bearerAdmissionStatus; |
| 150 | } |
| 151 | |
| 152 | public void setBearerReleaseInd(BearerReleaseInd bearerReleaseInd) { |
| 153 | this.bearerReleaseInd = bearerReleaseInd; |
| 154 | } |
| 155 | |
| 156 | public BearerReleaseInd getBearerReleaseInd() { |
| 157 | return bearerReleaseInd; |
| 158 | } |
| 159 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 160 | public void setHORequest(HORequest hORequest) { |
| 161 | this.hORequest = hORequest; |
| 162 | } |
| 163 | |
| 164 | public HORequest getHORequest() { |
| 165 | return hORequest; |
| 166 | } |
| 167 | |
| 168 | public void setHOFailure(HOFailure hOFailure) { |
| 169 | this.hOFailure = hOFailure; |
| 170 | } |
| 171 | |
| 172 | public HOFailure getHOFailure() { |
| 173 | return hOFailure; |
| 174 | } |
| 175 | |
| 176 | public void setHOComplete(HOComplete hOComplete) { |
| 177 | this.hOComplete = hOComplete; |
| 178 | } |
| 179 | |
| 180 | public HOComplete getHOComplete() { |
| 181 | return hOComplete; |
| 182 | } |
| 183 | |
| 184 | public void setRXSigMeasConfig(RXSigMeasConfig rXSigMeasConfig) { |
| 185 | this.rXSigMeasConfig = rXSigMeasConfig; |
| 186 | } |
| 187 | |
| 188 | public RXSigMeasConfig getRXSigMeasConfig() { |
| 189 | return rXSigMeasConfig; |
| 190 | } |
| 191 | |
| 192 | public void setRXSigMeasReport(RXSigMeasReport rXSigMeasReport) { |
| 193 | this.rXSigMeasReport = rXSigMeasReport; |
| 194 | } |
| 195 | |
| 196 | public RXSigMeasReport getRXSigMeasReport() { |
| 197 | return rXSigMeasReport; |
| 198 | } |
| 199 | |
| 200 | public void setL2MeasConfig(L2MeasConfig l2MeasConfig) { |
| 201 | this.l2MeasConfig = l2MeasConfig; |
| 202 | } |
| 203 | |
| 204 | public L2MeasConfig getL2MeasConfig() { |
| 205 | return l2MeasConfig; |
| 206 | } |
| 207 | |
| 208 | public void setRadioMeasReportPerUE(RadioMeasReportPerUE radioMeasReportPerUE) { |
| 209 | this.radioMeasReportPerUE = radioMeasReportPerUE; |
| 210 | } |
| 211 | |
| 212 | public RadioMeasReportPerUE getRadioMeasReportPerUE() { |
| 213 | return radioMeasReportPerUE; |
| 214 | } |
| 215 | |
| 216 | public void setRadioMeasReportPerCell(RadioMeasReportPerCell radioMeasReportPerCell) { |
| 217 | this.radioMeasReportPerCell = radioMeasReportPerCell; |
| 218 | } |
| 219 | |
| 220 | public RadioMeasReportPerCell getRadioMeasReportPerCell() { |
| 221 | return radioMeasReportPerCell; |
| 222 | } |
| 223 | |
| 224 | public void setSchedMeasReportPerUE(SchedMeasReportPerUE schedMeasReportPerUE) { |
| 225 | this.schedMeasReportPerUE = schedMeasReportPerUE; |
| 226 | } |
| 227 | |
| 228 | public SchedMeasReportPerUE getSchedMeasReportPerUE() { |
| 229 | return schedMeasReportPerUE; |
| 230 | } |
| 231 | |
| 232 | public void setSchedMeasReportPerCell(SchedMeasReportPerCell schedMeasReportPerCell) { |
| 233 | this.schedMeasReportPerCell = schedMeasReportPerCell; |
| 234 | } |
| 235 | |
| 236 | public SchedMeasReportPerCell getSchedMeasReportPerCell() { |
| 237 | return schedMeasReportPerCell; |
| 238 | } |
| 239 | |
| 240 | public void setPDCPMeasReportPerUe(PDCPMeasReportPerUe pDCPMeasReportPerUe) { |
| 241 | this.pDCPMeasReportPerUe = pDCPMeasReportPerUe; |
| 242 | } |
| 243 | |
| 244 | public PDCPMeasReportPerUe getPDCPMeasReportPerUe() { |
| 245 | return pDCPMeasReportPerUe; |
| 246 | } |
| 247 | |
| 248 | public void setXICICConfig(XICICConfig xICICConfig) { |
| 249 | this.xICICConfig = xICICConfig; |
| 250 | } |
| 251 | |
| 252 | public XICICConfig getXICICConfig() { |
| 253 | return xICICConfig; |
| 254 | } |
| 255 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 256 | public void setUECapabilityInfo(UECapabilityInfo uECapabilityInfo) { |
| 257 | this.uECapabilityInfo = uECapabilityInfo; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 258 | } |
| 259 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 260 | public UECapabilityInfo getUECapabilityInfo() { |
| 261 | return uECapabilityInfo; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 262 | } |
| 263 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 264 | public void setUECapabilityEnquiry(UECapabilityEnquiry uECapabilityEnquiry) { |
| 265 | this.uECapabilityEnquiry = uECapabilityEnquiry; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 266 | } |
| 267 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 268 | public UECapabilityEnquiry getUECapabilityEnquiry() { |
| 269 | return uECapabilityEnquiry; |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 270 | } |
| 271 | |
| 272 | public void setScellAdd(ScellAdd scellAdd) { |
| 273 | this.scellAdd = scellAdd; |
| 274 | } |
| 275 | |
| 276 | public ScellAdd getScellAdd() { |
| 277 | return scellAdd; |
| 278 | } |
| 279 | |
| 280 | public void setScellAddStatus(ScellAddStatus scellAddStatus) { |
| 281 | this.scellAddStatus = scellAddStatus; |
| 282 | } |
| 283 | |
| 284 | public ScellAddStatus getScellAddStatus() { |
| 285 | return scellAddStatus; |
| 286 | } |
| 287 | |
| 288 | public void setScellDelete(ScellDelete scellDelete) { |
| 289 | this.scellDelete = scellDelete; |
| 290 | } |
| 291 | |
| 292 | public ScellDelete getScellDelete() { |
| 293 | return scellDelete; |
| 294 | } |
| 295 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 296 | public void setRRMConfig(RRMConfig rRMConfig) { |
| 297 | this.rRMConfig = rRMConfig; |
| 298 | } |
| 299 | |
| 300 | public RRMConfig getRRMConfig() { |
| 301 | return rRMConfig; |
| 302 | } |
| 303 | |
| 304 | public void setRRMConfigStatus(RRMConfigStatus rRMConfigStatus) { |
| 305 | this.rRMConfigStatus = rRMConfigStatus; |
| 306 | } |
| 307 | |
| 308 | public RRMConfigStatus getRRMConfigStatus() { |
| 309 | return rRMConfigStatus; |
| 310 | } |
| 311 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 312 | public void setSeNBAdd(SeNBAdd seNBAdd) { |
| 313 | this.seNBAdd = seNBAdd; |
| 314 | } |
| 315 | |
| 316 | public SeNBAdd getSeNBAdd() { |
| 317 | return seNBAdd; |
| 318 | } |
| 319 | |
| 320 | public void setSeNBAddStatus(SeNBAddStatus seNBAddStatus) { |
| 321 | this.seNBAddStatus = seNBAddStatus; |
| 322 | } |
| 323 | |
| 324 | public SeNBAddStatus getSeNBAddStatus() { |
| 325 | return seNBAddStatus; |
| 326 | } |
| 327 | |
| 328 | public void setSeNBDelete(SeNBDelete seNBDelete) { |
| 329 | this.seNBDelete = seNBDelete; |
| 330 | } |
| 331 | |
| 332 | public SeNBDelete getSeNBDelete() { |
| 333 | return seNBDelete; |
| 334 | } |
| 335 | |
| 336 | public void setTrafficSplitConfig(TrafficSplitConfig trafficSplitConfig) { |
| 337 | this.trafficSplitConfig = trafficSplitConfig; |
| 338 | } |
| 339 | |
| 340 | public TrafficSplitConfig getTrafficSplitConfig() { |
| 341 | return trafficSplitConfig; |
| 342 | } |
| 343 | |
| 344 | public int encode(BerByteArrayOutputStream os) throws IOException { |
| 345 | |
| 346 | if (code != null) { |
| 347 | for (int i = code.length - 1; i >= 0; i--) { |
| 348 | os.write(code[i]); |
| 349 | } |
| 350 | return code.length; |
| 351 | } |
| 352 | |
| 353 | int codeLength = 0; |
| 354 | if (trafficSplitConfig != null) { |
| 355 | codeLength += trafficSplitConfig.encode(os, false); |
| 356 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 34 |
| 357 | os.write(0x22); |
| 358 | os.write(0xBF); |
| 359 | codeLength += 2; |
| 360 | return codeLength; |
| 361 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 362 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 363 | if (seNBDelete != null) { |
| 364 | codeLength += seNBDelete.encode(os, false); |
| 365 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 33 |
| 366 | os.write(0x21); |
| 367 | os.write(0xBF); |
| 368 | codeLength += 2; |
| 369 | return codeLength; |
| 370 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 371 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 372 | if (seNBAddStatus != null) { |
| 373 | codeLength += seNBAddStatus.encode(os, false); |
| 374 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 32 |
| 375 | os.write(0x20); |
| 376 | os.write(0xBF); |
| 377 | codeLength += 2; |
| 378 | return codeLength; |
| 379 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 380 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 381 | if (seNBAdd != null) { |
| 382 | codeLength += seNBAdd.encode(os, false); |
| 383 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 31 |
| 384 | os.write(0x1F); |
| 385 | os.write(0xBF); |
| 386 | codeLength += 2; |
| 387 | return codeLength; |
| 388 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 389 | |
| 390 | if (rRMConfigStatus != null) { |
| 391 | codeLength += rRMConfigStatus.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 392 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 30 |
| 393 | os.write(0xBE); |
| 394 | codeLength += 1; |
| 395 | return codeLength; |
| 396 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 397 | |
| 398 | if (rRMConfig != null) { |
| 399 | codeLength += rRMConfig.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 400 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 29 |
| 401 | os.write(0xBD); |
| 402 | codeLength += 1; |
| 403 | return codeLength; |
| 404 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 405 | |
| 406 | if (scellDelete != null) { |
| 407 | codeLength += scellDelete.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 408 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 28 |
| 409 | os.write(0xBC); |
| 410 | codeLength += 1; |
| 411 | return codeLength; |
| 412 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 413 | |
| 414 | if (scellAddStatus != null) { |
| 415 | codeLength += scellAddStatus.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 416 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 27 |
| 417 | os.write(0xBB); |
| 418 | codeLength += 1; |
| 419 | return codeLength; |
| 420 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 421 | |
| 422 | if (scellAdd != null) { |
| 423 | codeLength += scellAdd.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 424 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 26 |
| 425 | os.write(0xBA); |
| 426 | codeLength += 1; |
| 427 | return codeLength; |
| 428 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 429 | |
| 430 | if (uECapabilityEnquiry != null) { |
| 431 | codeLength += uECapabilityEnquiry.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 432 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 25 |
| 433 | os.write(0xB9); |
| 434 | codeLength += 1; |
| 435 | return codeLength; |
| 436 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 437 | |
| 438 | if (uECapabilityInfo != null) { |
| 439 | codeLength += uECapabilityInfo.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 440 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 24 |
| 441 | os.write(0xB8); |
| 442 | codeLength += 1; |
| 443 | return codeLength; |
| 444 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 445 | |
| 446 | if (xICICConfig != null) { |
| 447 | codeLength += xICICConfig.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 448 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 23 |
| 449 | os.write(0xB7); |
| 450 | codeLength += 1; |
| 451 | return codeLength; |
| 452 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 453 | |
| 454 | if (pDCPMeasReportPerUe != null) { |
| 455 | codeLength += pDCPMeasReportPerUe.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 456 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 22 |
| 457 | os.write(0xB6); |
| 458 | codeLength += 1; |
| 459 | return codeLength; |
| 460 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 461 | |
| 462 | if (schedMeasReportPerCell != null) { |
| 463 | codeLength += schedMeasReportPerCell.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 464 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 21 |
| 465 | os.write(0xB5); |
| 466 | codeLength += 1; |
| 467 | return codeLength; |
| 468 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 469 | |
| 470 | if (schedMeasReportPerUE != null) { |
| 471 | codeLength += schedMeasReportPerUE.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 472 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 20 |
| 473 | os.write(0xB4); |
| 474 | codeLength += 1; |
| 475 | return codeLength; |
| 476 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 477 | |
| 478 | if (radioMeasReportPerCell != null) { |
| 479 | codeLength += radioMeasReportPerCell.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 480 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 19 |
| 481 | os.write(0xB3); |
| 482 | codeLength += 1; |
| 483 | return codeLength; |
| 484 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 485 | |
| 486 | if (radioMeasReportPerUE != null) { |
| 487 | codeLength += radioMeasReportPerUE.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 488 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 18 |
| 489 | os.write(0xB2); |
| 490 | codeLength += 1; |
| 491 | return codeLength; |
| 492 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 493 | |
| 494 | if (l2MeasConfig != null) { |
| 495 | codeLength += l2MeasConfig.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 496 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 17 |
| 497 | os.write(0xB1); |
| 498 | codeLength += 1; |
| 499 | return codeLength; |
| 500 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 501 | |
| 502 | if (rXSigMeasReport != null) { |
| 503 | codeLength += rXSigMeasReport.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 504 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 16 |
| 505 | os.write(0xB0); |
| 506 | codeLength += 1; |
| 507 | return codeLength; |
| 508 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 509 | |
| 510 | if (rXSigMeasConfig != null) { |
| 511 | codeLength += rXSigMeasConfig.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 512 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 15 |
| 513 | os.write(0xAF); |
| 514 | codeLength += 1; |
| 515 | return codeLength; |
| 516 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 517 | |
| 518 | if (hOComplete != null) { |
| 519 | codeLength += hOComplete.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 520 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 14 |
| 521 | os.write(0xAE); |
| 522 | codeLength += 1; |
| 523 | return codeLength; |
| 524 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 525 | |
| 526 | if (hOFailure != null) { |
| 527 | codeLength += hOFailure.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 528 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 13 |
| 529 | os.write(0xAD); |
| 530 | codeLength += 1; |
| 531 | return codeLength; |
| 532 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 533 | |
| 534 | if (hORequest != null) { |
| 535 | codeLength += hORequest.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 536 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 12 |
| 537 | os.write(0xAC); |
| 538 | codeLength += 1; |
| 539 | return codeLength; |
| 540 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 541 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 542 | if (bearerReleaseInd != null) { |
| 543 | codeLength += bearerReleaseInd.encode(os, false); |
| 544 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 11 |
| 545 | os.write(0xAB); |
| 546 | codeLength += 1; |
| 547 | return codeLength; |
| 548 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 549 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 550 | if (bearerAdmissionStatus != null) { |
| 551 | codeLength += bearerAdmissionStatus.encode(os, false); |
| 552 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 10 |
| 553 | os.write(0xAA); |
| 554 | codeLength += 1; |
| 555 | return codeLength; |
| 556 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 557 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 558 | if (bearerAdmissionResponse != null) { |
| 559 | codeLength += bearerAdmissionResponse.encode(os, false); |
| 560 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 9 |
| 561 | os.write(0xA9); |
| 562 | codeLength += 1; |
| 563 | return codeLength; |
| 564 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 565 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 566 | if (bearerAdmissionRequest != null) { |
| 567 | codeLength += bearerAdmissionRequest.encode(os, false); |
| 568 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 8 |
| 569 | os.write(0xA8); |
| 570 | codeLength += 1; |
| 571 | return codeLength; |
| 572 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 573 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 574 | if (uEReleaseInd != null) { |
| 575 | codeLength += uEReleaseInd.encode(os, false); |
| 576 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 7 |
| 577 | os.write(0xA7); |
| 578 | codeLength += 1; |
| 579 | return codeLength; |
| 580 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 581 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 582 | if (uEReconfigInd != null) { |
| 583 | codeLength += uEReconfigInd.encode(os, false); |
| 584 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 6 |
| 585 | os.write(0xA6); |
| 586 | codeLength += 1; |
| 587 | return codeLength; |
| 588 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 589 | |
| 590 | if (uEContextUpdate != null) { |
| 591 | codeLength += uEContextUpdate.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 592 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 5 |
| 593 | os.write(0xA5); |
| 594 | codeLength += 1; |
| 595 | return codeLength; |
| 596 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 597 | |
| 598 | if (uEAdmissionStatus != null) { |
| 599 | codeLength += uEAdmissionStatus.encode(os, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 600 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 4 |
| 601 | os.write(0xA4); |
| 602 | codeLength += 1; |
| 603 | return codeLength; |
| 604 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 605 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 606 | if (uEAdmissionResponse != null) { |
| 607 | codeLength += uEAdmissionResponse.encode(os, false); |
| 608 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 3 |
| 609 | os.write(0xA3); |
| 610 | codeLength += 1; |
| 611 | return codeLength; |
| 612 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 613 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 614 | if (uEAdmissionRequest != null) { |
| 615 | codeLength += uEAdmissionRequest.encode(os, false); |
| 616 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 2 |
| 617 | os.write(0xA2); |
| 618 | codeLength += 1; |
| 619 | return codeLength; |
| 620 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 621 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 622 | if (cellConfigReport != null) { |
| 623 | codeLength += cellConfigReport.encode(os, false); |
| 624 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 1 |
| 625 | os.write(0xA1); |
| 626 | codeLength += 1; |
| 627 | return codeLength; |
| 628 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 629 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 630 | if (cellConfigRequest != null) { |
| 631 | codeLength += cellConfigRequest.encode(os, false); |
| 632 | // write tag: CONTEXT_CLASS, CONSTRUCTED, 0 |
| 633 | os.write(0xA0); |
| 634 | codeLength += 1; |
| 635 | return codeLength; |
| 636 | } |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 637 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 638 | throw new IOException("Error encoding CHOICE: No element of CHOICE was selected."); |
| 639 | } |
| 640 | |
| 641 | public int decode(InputStream is) throws IOException { |
| 642 | return decode(is, null); |
| 643 | } |
| 644 | |
| 645 | public int decode(InputStream is, BerTag berTag) throws IOException { |
| 646 | |
| 647 | int codeLength = 0; |
| 648 | BerTag passedTag = berTag; |
| 649 | |
| 650 | if (berTag == null) { |
| 651 | berTag = new BerTag(); |
| 652 | codeLength += berTag.decode(is); |
| 653 | } |
| 654 | |
| 655 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 0)) { |
| 656 | cellConfigRequest = new CellConfigRequest(); |
| 657 | codeLength += cellConfigRequest.decode(is, false); |
| 658 | return codeLength; |
| 659 | } |
| 660 | |
| 661 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 1)) { |
| 662 | cellConfigReport = new CellConfigReport(); |
| 663 | codeLength += cellConfigReport.decode(is, false); |
| 664 | return codeLength; |
| 665 | } |
| 666 | |
| 667 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 2)) { |
| 668 | uEAdmissionRequest = new UEAdmissionRequest(); |
| 669 | codeLength += uEAdmissionRequest.decode(is, false); |
| 670 | return codeLength; |
| 671 | } |
| 672 | |
| 673 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 3)) { |
| 674 | uEAdmissionResponse = new UEAdmissionResponse(); |
| 675 | codeLength += uEAdmissionResponse.decode(is, false); |
| 676 | return codeLength; |
| 677 | } |
| 678 | |
| 679 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 4)) { |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 680 | uEAdmissionStatus = new UEAdmissionStatus(); |
| 681 | codeLength += uEAdmissionStatus.decode(is, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 682 | return codeLength; |
| 683 | } |
| 684 | |
| 685 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 5)) { |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 686 | uEContextUpdate = new UEContextUpdate(); |
| 687 | codeLength += uEContextUpdate.decode(is, false); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 688 | return codeLength; |
| 689 | } |
| 690 | |
| 691 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 6)) { |
| 692 | uEReconfigInd = new UEReconfigInd(); |
| 693 | codeLength += uEReconfigInd.decode(is, false); |
| 694 | return codeLength; |
| 695 | } |
| 696 | |
| 697 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 7)) { |
| 698 | uEReleaseInd = new UEReleaseInd(); |
| 699 | codeLength += uEReleaseInd.decode(is, false); |
| 700 | return codeLength; |
| 701 | } |
| 702 | |
| 703 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 8)) { |
| 704 | bearerAdmissionRequest = new BearerAdmissionRequest(); |
| 705 | codeLength += bearerAdmissionRequest.decode(is, false); |
| 706 | return codeLength; |
| 707 | } |
| 708 | |
| 709 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 9)) { |
| 710 | bearerAdmissionResponse = new BearerAdmissionResponse(); |
| 711 | codeLength += bearerAdmissionResponse.decode(is, false); |
| 712 | return codeLength; |
| 713 | } |
| 714 | |
| 715 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 10)) { |
| 716 | bearerAdmissionStatus = new BearerAdmissionStatus(); |
| 717 | codeLength += bearerAdmissionStatus.decode(is, false); |
| 718 | return codeLength; |
| 719 | } |
| 720 | |
| 721 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 11)) { |
| 722 | bearerReleaseInd = new BearerReleaseInd(); |
| 723 | codeLength += bearerReleaseInd.decode(is, false); |
| 724 | return codeLength; |
| 725 | } |
| 726 | |
| 727 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 12)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 728 | hORequest = new HORequest(); |
| 729 | codeLength += hORequest.decode(is, false); |
| 730 | return codeLength; |
| 731 | } |
| 732 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 733 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 13)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 734 | hOFailure = new HOFailure(); |
| 735 | codeLength += hOFailure.decode(is, false); |
| 736 | return codeLength; |
| 737 | } |
| 738 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 739 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 14)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 740 | hOComplete = new HOComplete(); |
| 741 | codeLength += hOComplete.decode(is, false); |
| 742 | return codeLength; |
| 743 | } |
| 744 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 745 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 15)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 746 | rXSigMeasConfig = new RXSigMeasConfig(); |
| 747 | codeLength += rXSigMeasConfig.decode(is, false); |
| 748 | return codeLength; |
| 749 | } |
| 750 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 751 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 16)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 752 | rXSigMeasReport = new RXSigMeasReport(); |
| 753 | codeLength += rXSigMeasReport.decode(is, false); |
| 754 | return codeLength; |
| 755 | } |
| 756 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 757 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 17)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 758 | l2MeasConfig = new L2MeasConfig(); |
| 759 | codeLength += l2MeasConfig.decode(is, false); |
| 760 | return codeLength; |
| 761 | } |
| 762 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 763 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 18)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 764 | radioMeasReportPerUE = new RadioMeasReportPerUE(); |
| 765 | codeLength += radioMeasReportPerUE.decode(is, false); |
| 766 | return codeLength; |
| 767 | } |
| 768 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 769 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 19)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 770 | radioMeasReportPerCell = new RadioMeasReportPerCell(); |
| 771 | codeLength += radioMeasReportPerCell.decode(is, false); |
| 772 | return codeLength; |
| 773 | } |
| 774 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 775 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 20)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 776 | schedMeasReportPerUE = new SchedMeasReportPerUE(); |
| 777 | codeLength += schedMeasReportPerUE.decode(is, false); |
| 778 | return codeLength; |
| 779 | } |
| 780 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 781 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 21)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 782 | schedMeasReportPerCell = new SchedMeasReportPerCell(); |
| 783 | codeLength += schedMeasReportPerCell.decode(is, false); |
| 784 | return codeLength; |
| 785 | } |
| 786 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 787 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 22)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 788 | pDCPMeasReportPerUe = new PDCPMeasReportPerUe(); |
| 789 | codeLength += pDCPMeasReportPerUe.decode(is, false); |
| 790 | return codeLength; |
| 791 | } |
| 792 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 793 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 23)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 794 | xICICConfig = new XICICConfig(); |
| 795 | codeLength += xICICConfig.decode(is, false); |
| 796 | return codeLength; |
| 797 | } |
| 798 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 799 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 24)) { |
| 800 | uECapabilityInfo = new UECapabilityInfo(); |
| 801 | codeLength += uECapabilityInfo.decode(is, false); |
| 802 | return codeLength; |
| 803 | } |
| 804 | |
| 805 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 25)) { |
| 806 | uECapabilityEnquiry = new UECapabilityEnquiry(); |
| 807 | codeLength += uECapabilityEnquiry.decode(is, false); |
| 808 | return codeLength; |
| 809 | } |
| 810 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 811 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 26)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 812 | scellAdd = new ScellAdd(); |
| 813 | codeLength += scellAdd.decode(is, false); |
| 814 | return codeLength; |
| 815 | } |
| 816 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 817 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 27)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 818 | scellAddStatus = new ScellAddStatus(); |
| 819 | codeLength += scellAddStatus.decode(is, false); |
| 820 | return codeLength; |
| 821 | } |
| 822 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 823 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 28)) { |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 824 | scellDelete = new ScellDelete(); |
| 825 | codeLength += scellDelete.decode(is, false); |
| 826 | return codeLength; |
| 827 | } |
| 828 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 829 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 29)) { |
| 830 | rRMConfig = new RRMConfig(); |
| 831 | codeLength += rRMConfig.decode(is, false); |
| 832 | return codeLength; |
| 833 | } |
| 834 | |
| 835 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 30)) { |
| 836 | rRMConfigStatus = new RRMConfigStatus(); |
| 837 | codeLength += rRMConfigStatus.decode(is, false); |
| 838 | return codeLength; |
| 839 | } |
| 840 | |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 841 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 31)) { |
| 842 | seNBAdd = new SeNBAdd(); |
| 843 | codeLength += seNBAdd.decode(is, false); |
| 844 | return codeLength; |
| 845 | } |
| 846 | |
| 847 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 32)) { |
| 848 | seNBAddStatus = new SeNBAddStatus(); |
| 849 | codeLength += seNBAddStatus.decode(is, false); |
| 850 | return codeLength; |
| 851 | } |
| 852 | |
| 853 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 33)) { |
| 854 | seNBDelete = new SeNBDelete(); |
| 855 | codeLength += seNBDelete.decode(is, false); |
| 856 | return codeLength; |
| 857 | } |
| 858 | |
| 859 | if (berTag.equals(BerTag.CONTEXT_CLASS, BerTag.CONSTRUCTED, 34)) { |
| 860 | trafficSplitConfig = new TrafficSplitConfig(); |
| 861 | codeLength += trafficSplitConfig.decode(is, false); |
| 862 | return codeLength; |
| 863 | } |
| 864 | |
| 865 | if (passedTag != null) { |
| 866 | return 0; |
| 867 | } |
| 868 | |
| 869 | throw new IOException("Error decoding CHOICE: Tag " + berTag + " matched to no item."); |
| 870 | } |
| 871 | |
| 872 | public void encodeAndSave(int encodingSizeGuess) throws IOException { |
| 873 | BerByteArrayOutputStream os = new BerByteArrayOutputStream(encodingSizeGuess); |
| 874 | encode(os); |
| 875 | code = os.getArray(); |
| 876 | } |
| 877 | |
| 878 | public String toString() { |
| 879 | StringBuilder sb = new StringBuilder(); |
| 880 | appendAsString(sb, 0); |
| 881 | return sb.toString(); |
| 882 | } |
| 883 | |
| 884 | public void appendAsString(StringBuilder sb, int indentLevel) { |
| 885 | |
| 886 | if (cellConfigRequest != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 887 | sb.append("cellConfigRequest: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 888 | cellConfigRequest.appendAsString(sb, indentLevel + 1); |
| 889 | return; |
| 890 | } |
| 891 | |
| 892 | if (cellConfigReport != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 893 | sb.append("cellConfigReport: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 894 | cellConfigReport.appendAsString(sb, indentLevel + 1); |
| 895 | return; |
| 896 | } |
| 897 | |
| 898 | if (uEAdmissionRequest != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 899 | sb.append("uEAdmissionRequest: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 900 | uEAdmissionRequest.appendAsString(sb, indentLevel + 1); |
| 901 | return; |
| 902 | } |
| 903 | |
| 904 | if (uEAdmissionResponse != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 905 | sb.append("uEAdmissionResponse: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 906 | uEAdmissionResponse.appendAsString(sb, indentLevel + 1); |
| 907 | return; |
| 908 | } |
| 909 | |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 910 | if (uEContextUpdate != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 911 | sb.append("uEContextUpdate: "); |
slowr | 8ddc2b1 | 2017-08-14 14:13:38 -0700 | [diff] [blame] | 912 | uEContextUpdate.appendAsString(sb, indentLevel + 1); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 913 | return; |
| 914 | } |
| 915 | |
| 916 | if (uEAdmissionStatus != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 917 | sb.append("uEAdmissionStatus: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 918 | uEAdmissionStatus.appendAsString(sb, indentLevel + 1); |
| 919 | return; |
| 920 | } |
| 921 | |
| 922 | if (uEReconfigInd != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 923 | sb.append("uEReconfigInd: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 924 | uEReconfigInd.appendAsString(sb, indentLevel + 1); |
| 925 | return; |
| 926 | } |
| 927 | |
| 928 | if (uEReleaseInd != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 929 | sb.append("uEReleaseInd: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 930 | uEReleaseInd.appendAsString(sb, indentLevel + 1); |
| 931 | return; |
| 932 | } |
| 933 | |
| 934 | if (bearerAdmissionRequest != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 935 | sb.append("bearerAdmissionRequest: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 936 | bearerAdmissionRequest.appendAsString(sb, indentLevel + 1); |
| 937 | return; |
| 938 | } |
| 939 | |
| 940 | if (bearerAdmissionResponse != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 941 | sb.append("bearerAdmissionResponse: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 942 | bearerAdmissionResponse.appendAsString(sb, indentLevel + 1); |
| 943 | return; |
| 944 | } |
| 945 | |
| 946 | if (bearerAdmissionStatus != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 947 | sb.append("bearerAdmissionStatus: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 948 | bearerAdmissionStatus.appendAsString(sb, indentLevel + 1); |
| 949 | return; |
| 950 | } |
| 951 | |
| 952 | if (bearerReleaseInd != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 953 | sb.append("bearerReleaseInd: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 954 | bearerReleaseInd.appendAsString(sb, indentLevel + 1); |
| 955 | return; |
| 956 | } |
| 957 | |
| 958 | if (uECapabilityEnquiry != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 959 | sb.append("uECapabilityEnquiry: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 960 | uECapabilityEnquiry.appendAsString(sb, indentLevel + 1); |
| 961 | return; |
| 962 | } |
| 963 | |
| 964 | if (uECapabilityInfo != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 965 | sb.append("uECapabilityInfo: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 966 | uECapabilityInfo.appendAsString(sb, indentLevel + 1); |
| 967 | return; |
| 968 | } |
| 969 | |
| 970 | if (hORequest != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 971 | sb.append("hORequest: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 972 | hORequest.appendAsString(sb, indentLevel + 1); |
| 973 | return; |
| 974 | } |
| 975 | |
| 976 | if (hOFailure != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 977 | sb.append("hOFailure: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 978 | hOFailure.appendAsString(sb, indentLevel + 1); |
| 979 | return; |
| 980 | } |
| 981 | |
| 982 | if (hOComplete != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 983 | sb.append("hOComplete: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 984 | hOComplete.appendAsString(sb, indentLevel + 1); |
| 985 | return; |
| 986 | } |
| 987 | |
| 988 | if (rXSigMeasConfig != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 989 | sb.append("rXSigMeasConfig: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 990 | rXSigMeasConfig.appendAsString(sb, indentLevel + 1); |
| 991 | return; |
| 992 | } |
| 993 | |
| 994 | if (rXSigMeasReport != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 995 | sb.append("rXSigMeasReport: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 996 | rXSigMeasReport.appendAsString(sb, indentLevel + 1); |
| 997 | return; |
| 998 | } |
| 999 | |
| 1000 | if (l2MeasConfig != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1001 | sb.append("l2MeasConfig: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1002 | l2MeasConfig.appendAsString(sb, indentLevel + 1); |
| 1003 | return; |
| 1004 | } |
| 1005 | |
| 1006 | if (radioMeasReportPerUE != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1007 | sb.append("radioMeasReportPerUE: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1008 | radioMeasReportPerUE.appendAsString(sb, indentLevel + 1); |
| 1009 | return; |
| 1010 | } |
| 1011 | |
| 1012 | if (radioMeasReportPerCell != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1013 | sb.append("radioMeasReportPerCell: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1014 | radioMeasReportPerCell.appendAsString(sb, indentLevel + 1); |
| 1015 | return; |
| 1016 | } |
| 1017 | |
| 1018 | if (schedMeasReportPerUE != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1019 | sb.append("schedMeasReportPerUE: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1020 | schedMeasReportPerUE.appendAsString(sb, indentLevel + 1); |
| 1021 | return; |
| 1022 | } |
| 1023 | |
| 1024 | if (schedMeasReportPerCell != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1025 | sb.append("schedMeasReportPerCell: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1026 | schedMeasReportPerCell.appendAsString(sb, indentLevel + 1); |
| 1027 | return; |
| 1028 | } |
| 1029 | |
| 1030 | if (pDCPMeasReportPerUe != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1031 | sb.append("pDCPMeasReportPerUe: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1032 | pDCPMeasReportPerUe.appendAsString(sb, indentLevel + 1); |
| 1033 | return; |
| 1034 | } |
| 1035 | |
| 1036 | if (xICICConfig != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1037 | sb.append("xICICConfig: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1038 | xICICConfig.appendAsString(sb, indentLevel + 1); |
| 1039 | return; |
| 1040 | } |
| 1041 | |
| 1042 | if (rRMConfig != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1043 | sb.append("rRMConfig: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1044 | rRMConfig.appendAsString(sb, indentLevel + 1); |
| 1045 | return; |
| 1046 | } |
| 1047 | |
| 1048 | if (rRMConfigStatus != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1049 | sb.append("rRMConfigStatus: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1050 | rRMConfigStatus.appendAsString(sb, indentLevel + 1); |
| 1051 | return; |
| 1052 | } |
| 1053 | |
| 1054 | if (scellAdd != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1055 | sb.append("scellAdd: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1056 | scellAdd.appendAsString(sb, indentLevel + 1); |
| 1057 | return; |
| 1058 | } |
| 1059 | |
| 1060 | if (scellAddStatus != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1061 | sb.append("scellAddStatus: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1062 | scellAddStatus.appendAsString(sb, indentLevel + 1); |
| 1063 | return; |
| 1064 | } |
| 1065 | |
| 1066 | if (scellDelete != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1067 | sb.append("scellDelete: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1068 | scellDelete.appendAsString(sb, indentLevel + 1); |
| 1069 | return; |
| 1070 | } |
| 1071 | |
| 1072 | if (seNBAdd != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1073 | sb.append("seNBAdd: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1074 | seNBAdd.appendAsString(sb, indentLevel + 1); |
| 1075 | return; |
| 1076 | } |
| 1077 | |
| 1078 | if (seNBAddStatus != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1079 | sb.append("seNBAddStatus: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1080 | seNBAddStatus.appendAsString(sb, indentLevel + 1); |
| 1081 | return; |
| 1082 | } |
| 1083 | |
| 1084 | if (seNBDelete != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1085 | sb.append("seNBDelete: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1086 | seNBDelete.appendAsString(sb, indentLevel + 1); |
| 1087 | return; |
| 1088 | } |
| 1089 | |
| 1090 | if (trafficSplitConfig != null) { |
slowr | 60d4d10 | 2017-08-16 18:33:58 -0700 | [diff] [blame] | 1091 | sb.append("trafficSplitConfig: "); |
slowr | 13fa5b0 | 2017-08-08 16:32:31 -0700 | [diff] [blame] | 1092 | trafficSplitConfig.appendAsString(sb, indentLevel + 1); |
| 1093 | return; |
| 1094 | } |
| 1095 | |
| 1096 | sb.append("<none>"); |
| 1097 | } |
| 1098 | |
| 1099 | } |
| 1100 | |