| | |
| | | Document document = parse(xml, "download_resp"); |
| | | Element download = firstElement(document, "download"); |
| | | String btsTestId = requiredAttribute(download, "testid"); |
| | | // download 是单通道响应,身份不一致时拒绝结果,避免历史事实被归入错误测试。 |
| | | if (integerAttribute(download, "devtype") != channel.devtype() |
| | | || integerAttribute(download, "devid") != channel.devid() |
| | | || integerAttribute(download, "subdevid") != channel.subdevid() |
| | |
| | | requiredAttribute(element, "steptype"), optionalLong(element, "testtime"), parseDeviceTime(rawTime), rawTime, |
| | | optionalDecimal(element, "volt"), optionalDecimal(element, "curr"), optionalDecimal(element, "cap"), |
| | | optionalDecimal(element, "eng"), dynamicMeasurements(element, HISTORY_ATTRIBUTES))); |
| | | // 解析层保留重复和乱序事实;完整性检查按 seqid 另行判定并解释缺口。 |
| | | next = Math.max(next, sequence + 1); |
| | | } |
| | | return new HistoryPage(channel, btsTestId, requestedStart, next, samples); |
| | |
| | | { |
| | | try |
| | | { |
| | | // BTS 时间不带时区,按适配器配置的现场时区解释后统一转换为 UTC 时间点。 |
| | | return LocalDateTime.parse(value, BTS_TIME).atZone(deviceZone).toInstant(); |
| | | } |
| | | catch (DateTimeParseException ex) |