ncc协议x

This commit is contained in:
xzb 2023-06-06 16:04:46 +08:00
parent 9cf0715459
commit 5a39fd2ba4
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ public class MessageAlarmRsp extends MessageData {
/**
* 报警事件产生的时间(4)
*/
private Integer genTime;
private Long genTime;
/**
* Tag_id字符串的长度(2)
*/
@ -33,7 +33,7 @@ public class MessageAlarmRsp extends MessageData {
@Override
public void decode2(ByteBuf buf) throws Exception {
this.lineId = buf.readShort();
this.genTime = buf.readInt();
this.genTime = buf.readUnsignedInt();
this.tagLen = buf.readShort();
this.tagId = new byte[this.tagLen];
buf.readBytes(this.tagId);

View File

@ -84,7 +84,7 @@ public class TrainIndicationInitRsp extends MessageData {
/**
* 根据实际报点和计划的偏离时间单位-215- +215 正数表示列车晚点秒数负数表示列车早点秒数(4)
*/
private Integer otpTime;
private Long otpTime;
/**
* 列车状态见附录6.3.14列车状态定义(4)
*/
@ -123,7 +123,7 @@ public class TrainIndicationInitRsp extends MessageData {
buf.readBytes(this.destinationId);
this.rollingStock=buf.readByte();
buf.readBytes(this.driverId);
this.otpTime=buf.readInt();
this.otpTime=buf.readUnsignedInt();
this.mode=buf.readInt();
buf.readBytes(this.arriveTime);
buf.readBytes(this.departTime);

View File

@ -71,7 +71,7 @@ public class TrainIndicationUpdateRsp extends MessageData {
/**
* 计划偏离时间(4)
*/
private Integer optTime;
private Long optTime;
/**
* 列车状态见附录6.3.14列车状态定义(4)
*/
@ -114,7 +114,7 @@ public class TrainIndicationUpdateRsp extends MessageData {
this.rollingStock = buf.readByte();
buf.readBytes(this.driverId);
this.routeId = buf.readShort();
this.optTime = buf.readInt();
this.optTime = buf.readUnsignedInt();
this.mode = buf.readInt();
buf.readBytes(this.arriveTime);
buf.readBytes(this.departTime);