diff --git a/src/main/java/club/joylink/xiannccda/ats/message/MessageData.java b/src/main/java/club/joylink/xiannccda/ats/message/MessageData.java index ef1d627..652802c 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/MessageData.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/MessageData.java @@ -54,7 +54,7 @@ public abstract class MessageData { * @param buf * @throws Exception */ - abstract void decode2(ByteBuf buf) throws Exception; + public abstract void decode2(ByteBuf buf) throws Exception; public void encode(ByteBuf buf) { final int messageLength = this.length; @@ -70,7 +70,7 @@ public abstract class MessageData { * * @param buf */ - abstract void encode2(ByteBuf buf); + public abstract void encode2(ByteBuf buf); public int total() { return this.length + 2; diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/InUsedScheduleParameterResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/InUsedScheduleParameterResponse.java index da730c7..34b1fde 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/InUsedScheduleParameterResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/InUsedScheduleParameterResponse.java @@ -1,12 +1,12 @@ package club.joylink.xiannccda.ats.message.line3; -import club.joylink.xiannccda.ats.message.MessageData; +import club.joylink.xiannccda.ats.message.MessageResponse; import io.netty.buffer.ByteBuf; /** * 2.7.14 当天计划运行图参数消息 */ -public class InUsedScheduleParameterResponse extends MessageData { +public class InUsedScheduleParameterResponse extends MessageResponse { /** * 线路号(2) diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/MessageAlarmResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/MessageAlarmResponse.java index 6621c71..6d40a93 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/MessageAlarmResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/MessageAlarmResponse.java @@ -1,9 +1,9 @@ package club.joylink.xiannccda.ats.message.line3; -import club.joylink.xiannccda.ats.message.MessageData; +import club.joylink.xiannccda.ats.message.MessageResponse; import io.netty.buffer.ByteBuf; -public class MessageAlarmResponse extends MessageData { +public class MessageAlarmResponse extends MessageResponse { /** * 线路号(2) diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/ReportAskRequest.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/ReportAskRequest.java new file mode 100644 index 0000000..5a0e454 --- /dev/null +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/ReportAskRequest.java @@ -0,0 +1,15 @@ +package club.joylink.xiannccda.ats.message.line3; + +import club.joylink.xiannccda.ats.message.MessageRequest; +import io.netty.buffer.ByteBuf; + +/** + * 2.8.1 统计信息查询消息 + */ +public class ReportAskRequest extends MessageRequest { + + @Override + public void encode2(ByteBuf buf) { + + } +} diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainBlockInfoResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainBlockInfoResponse.java index 8bc5cd3..f0a0935 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainBlockInfoResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainBlockInfoResponse.java @@ -1,6 +1,6 @@ package club.joylink.xiannccda.ats.message.line3; -import club.joylink.xiannccda.ats.message.MessageData; +import club.joylink.xiannccda.ats.message.MessageResponse; import io.netty.buffer.ByteBuf; import java.util.ArrayList; @@ -9,7 +9,7 @@ import java.util.List; /** * 2.7.13 列车阻塞消息 */ -public class TrainBlockInfoResponse extends MessageData { +public class TrainBlockInfoResponse extends MessageResponse { /** * 线路号(2) diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationInitResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationInitResponse.java index 64a1fce..0c09380 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationInitResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationInitResponse.java @@ -1,6 +1,6 @@ package club.joylink.xiannccda.ats.message.line3; -import club.joylink.xiannccda.ats.message.MessageData; +import club.joylink.xiannccda.ats.message.MessageResponse; import io.netty.buffer.ByteBuf; import java.util.ArrayList; @@ -9,7 +9,7 @@ import java.util.List; /** * 2.7.9列车信息全体消息 */ -public class TrainIndicationInitResponse extends MessageData { +public class TrainIndicationInitResponse extends MessageResponse { /** * 线路号(2) diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationRemoveResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationRemoveResponse.java index 772f4f4..ccb9770 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationRemoveResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationRemoveResponse.java @@ -1,12 +1,12 @@ package club.joylink.xiannccda.ats.message.line3; -import club.joylink.xiannccda.ats.message.MessageData; +import club.joylink.xiannccda.ats.message.MessageResponse; import io.netty.buffer.ByteBuf; /** * 2.7.11 列车信息删除消息 */ -public class TrainIndicationRemoveResponse extends MessageData { +public class TrainIndicationRemoveResponse extends MessageResponse { /** * 线路号(2) diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationUpdateResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationUpdateResponse.java index b139774..2deb39c 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationUpdateResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainIndicationUpdateResponse.java @@ -1,12 +1,12 @@ package club.joylink.xiannccda.ats.message.line3; -import club.joylink.xiannccda.ats.message.MessageData; +import club.joylink.xiannccda.ats.message.MessageResponse; import io.netty.buffer.ByteBuf; /** * 2.7.10 列车信息更新消息[增加/更新] */ -public class TrainIndicationUpdateResponse extends MessageData { +public class TrainIndicationUpdateResponse extends MessageResponse { /** * 线路号(2) diff --git a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainRecordResponse.java b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainRecordResponse.java index 7518331..e4a499b 100644 --- a/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainRecordResponse.java +++ b/src/main/java/club/joylink/xiannccda/ats/message/line3/TrainRecordResponse.java @@ -1,12 +1,12 @@ package club.joylink.xiannccda.ats.message.line3; -import club.joylink.xiannccda.ats.message.MessageData; +import club.joylink.xiannccda.ats.message.MessageResponse; import io.netty.buffer.ByteBuf; /** * 2.7.8列车报点消息 */ -public class TrainRecordResponse extends MessageData { +public class TrainRecordResponse extends MessageResponse { /** * 线路号(2)