42 lines
1.0 KiB
Protocol Buffer
42 lines
1.0 KiB
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package state; //模型的可变的状态数据
|
||
|
import "device_status.proto";
|
||
|
option java_package = "club.joylink.xiannccda.dto.protos";
|
||
|
option java_outer_classname = "WsMessageProto";
|
||
|
|
||
|
message WsLineMessage {
|
||
|
//线路号
|
||
|
int32 lineId = 1;
|
||
|
// 设备集中站
|
||
|
repeated state.Rtu rtu = 2;
|
||
|
// 车站
|
||
|
repeated state.Station station = 3;
|
||
|
//信号机
|
||
|
repeated state.Signal signal = 4;
|
||
|
//方向设备
|
||
|
repeated state.Entry entry = 5;
|
||
|
//道岔
|
||
|
repeated state.Switch switch = 6;
|
||
|
//轨道
|
||
|
repeated state.Track track = 7;
|
||
|
//站台
|
||
|
repeated state.Platform platform = 8;
|
||
|
//供电区段
|
||
|
repeated state.Scada scada = 9;
|
||
|
//防淹门
|
||
|
repeated state.WaterProofDoor waterProofDoor = 10;
|
||
|
//工作区
|
||
|
repeated state.WorkArea workArea = 11;
|
||
|
//区域自动驾驶
|
||
|
repeated state.Gama gama = 12;
|
||
|
// 列车模式
|
||
|
repeated state.TrainMode trainMode = 13;
|
||
|
// 信息源网络状态消息
|
||
|
repeated state.OccNccFepNetwork netWork = 14;
|
||
|
}
|
||
|
|
||
|
message WsMessage {
|
||
|
repeated WsLineMessage message = 1;
|
||
|
}
|