ncc协议x

This commit is contained in:
xzb 2023-06-07 09:44:16 +08:00
parent e0116281d7
commit d29438a1cd
8 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
package club.joylink.xiannccda.ats.message;
import club.joylink.xiannccda.ats.message.line3.HeartBeatMsg;
import club.joylink.xiannccda.ats.message.line3.*;
public enum MessageId {
UNKNOWN(0x0000, null),
@ -35,19 +35,19 @@ public enum MessageId {
/**
* 列车报点
*/
TRAIN_RECORD(0x0008,null),
TRAIN_RECORD(0x0008,()->new TrainRecordResponse()),
/**
* 列车信息全体
*/
TRAIN_INDICATION_INIT(0x0009,null),
TRAIN_INDICATION_INIT(0x0009,()->new TrainIndicationInitResponse()),
/**
* 列车信息更新
*/
TRAIN_INDICATION_UPDATE(0x0010,null),
TRAIN_INDICATION_UPDATE(0x0010,()->new TrainIndicationUpdateResponse()),
/**
* 列车信息删除
*/
TRAIN_INDICATION_REMOVE(0x0011,null),
TRAIN_INDICATION_REMOVE(0x0011,()->new TrainIndicationRemoveResponse()),
/**
* 统计信息查询
*/
@ -127,15 +127,15 @@ public enum MessageId {
/**
* 实时报警事件消息
*/
MESSAGE_ALARM(0x0031,null),
MESSAGE_ALARM(0x0031,()->new MessageAlarmResponse()),
/**
* 列车阻塞消息
*/
TRAIN_BLOCK_INFO(0x0032,null),
TRAIN_BLOCK_INFO(0x0032,()->new TrainBlockInfoResponse()),
/**
* 当天计划运行图参数消息
*/
INUSED_SCHEDULE_PARAMETER(0x0033,null),
INUSED_SCHEDULE_PARAMETER(0x0033,()->new InUsedScheduleParameterResponse()),
;
int val;

View File

@ -6,7 +6,7 @@ import io.netty.buffer.ByteBuf;
/**
* 2.7.14 当天计划运行图参数消息
*/
public class InUsedScheduleParameterRsp extends MessageData {
public class InUsedScheduleParameterResponse extends MessageData {
/**
* 线路号(2)

View File

@ -3,7 +3,7 @@ package club.joylink.xiannccda.ats.message.line3;
import club.joylink.xiannccda.ats.message.MessageData;
import io.netty.buffer.ByteBuf;
public class MessageAlarmRsp extends MessageData {
public class MessageAlarmResponse extends MessageData {
/**
* 线路号(2)

View File

@ -9,7 +9,7 @@ import java.util.List;
/**
* 2.7.13 列车阻塞消息
*/
public class TrainBlockInfoRsp extends MessageData {
public class TrainBlockInfoResponse extends MessageData {
/**
* 线路号(2)

View File

@ -9,7 +9,7 @@ import java.util.List;
/**
* 2.7.9列车信息全体消息
*/
public class TrainIndicationInitRsp extends MessageData {
public class TrainIndicationInitResponse extends MessageData {
/**
* 线路号(2)

View File

@ -6,7 +6,7 @@ import io.netty.buffer.ByteBuf;
/**
* 2.7.11 列车信息删除消息
*/
public class TrainIndicationRemoveRsp extends MessageData {
public class TrainIndicationRemoveResponse extends MessageData {
/**
* 线路号(2)

View File

@ -6,7 +6,7 @@ import io.netty.buffer.ByteBuf;
/**
* 2.7.10 列车信息更新消息[增加/更新]
*/
public class TrainIndicationUpdateRsp extends MessageData {
public class TrainIndicationUpdateResponse extends MessageData {
/**
* 线路号(2)

View File

@ -6,7 +6,7 @@ import io.netty.buffer.ByteBuf;
/**
* 2.7.8列车报点消息
*/
public class TrainRecordRsp extends MessageData {
public class TrainRecordResponse extends MessageData {
/**
* 线路号(2)