xian-ncc-da-message/protos/ws_message.proto

74 lines
1.6 KiB
Protocol Buffer
Raw Permalink Normal View History

2023-06-16 09:00:14 +08:00
syntax = "proto3";
package state; //模型的可变的状态数据
import "device_status.proto";
2023-06-26 14:47:27 +08:00
import "train.proto";
2023-06-27 13:18:22 +08:00
//import "LineNetTrainOffsetDiagram.proto";
2023-06-16 09:00:14 +08:00
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "WsMessageProto";
message WsLineMessage {
// 设备集中站
2023-06-16 09:59:58 +08:00
repeated state.Rtu rtu = 1;
2023-06-16 09:00:14 +08:00
// 车站
2023-06-16 09:59:58 +08:00
repeated state.Station station = 2;
2023-06-16 09:00:14 +08:00
//信号机
2023-06-16 09:59:58 +08:00
repeated state.Signal signal = 3;
2023-06-16 09:00:14 +08:00
//方向设备
2023-06-16 09:59:58 +08:00
repeated state.Entry entry = 4;
2023-06-16 09:00:14 +08:00
//道岔
2023-06-16 09:59:58 +08:00
repeated state.Switch switch = 5;
2023-06-16 09:00:14 +08:00
//轨道
2023-06-16 09:59:58 +08:00
repeated state.Track track = 6;
2023-06-16 09:00:14 +08:00
//站台
2023-06-16 09:59:58 +08:00
repeated state.Platform platform = 7;
2023-06-16 09:00:14 +08:00
//供电区段
2023-06-16 09:59:58 +08:00
repeated state.Scada scada = 8;
2023-06-16 09:00:14 +08:00
//防淹门
2023-06-16 09:59:58 +08:00
repeated state.WaterProofDoor waterProofDoor = 9;
2023-06-16 09:00:14 +08:00
//工作区
2023-06-16 09:59:58 +08:00
repeated state.WorkArea workArea = 10;
2023-06-16 09:00:14 +08:00
//区域自动驾驶
2023-06-16 09:59:58 +08:00
repeated state.Gama gama = 11;
2023-06-16 16:34:00 +08:00
//列车模式
2023-06-26 15:32:25 +08:00
// repeated state.TrainMode trainMode = 12;
2023-06-16 16:34:00 +08:00
//信息源网络状态消息
2023-06-26 15:32:25 +08:00
repeated state.OccNccFepNetwork netWork = 12;
2023-06-16 16:34:00 +08:00
//列车信息
2023-06-27 13:18:22 +08:00
// repeated train.TrainInfo train = 13;
}
//线路列车信息
message WsLineTrainMessage{
2023-06-28 09:52:11 +08:00
repeated train.TrainInfo trainInfo = 1;
2023-06-16 09:00:14 +08:00
}
2023-06-16 09:59:58 +08:00
// 线网信息
message WsLineNetMessage {
//线网车辆位置
2023-06-26 15:00:44 +08:00
repeated WsLineNetTrainOffsetMessage offset = 1;
}
2023-06-16 09:59:58 +08:00
2023-06-26 15:00:44 +08:00
// 线网列车位置信息
message WsLineNetTrainOffsetMessage {
//线路id
int32 lineId = 1;
// 列车标示号,全线唯一
string trainIndex = 2;
2023-06-26 16:48:02 +08:00
// 车组号
string groupId = 3;
2023-06-26 15:00:44 +08:00
//是否显示
2023-06-30 09:48:00 +08:00
bool show = 4;
2023-06-26 15:00:44 +08:00
// 列车公里标
2023-06-30 09:48:00 +08:00
int64 kilometerCode = 5;
2023-06-26 15:00:44 +08:00
// 运行方向
2023-06-30 09:48:00 +08:00
int32 dir = 6;
2023-06-16 09:59:58 +08:00
}
2023-06-26 15:00:44 +08:00