syntax = "proto3"; package state; //模型的可变的状态数据 import "device_status.proto"; import "train.proto"; //import "LineNetTrainOffsetDiagram.proto"; option java_package = "club.joylink.xiannccda.dto.protos"; option java_outer_classname = "WsMessageProto"; message WsLineMessage { // 设备集中站 repeated state.Rtu rtu = 1; // 车站 repeated state.Station station = 2; //信号机 repeated state.Signal signal = 3; //方向设备 repeated state.Entry entry = 4; //道岔 repeated state.Switch switch = 5; //轨道 repeated state.Track track = 6; //站台 repeated state.Platform platform = 7; //供电区段 repeated state.Scada scada = 8; //防淹门 repeated state.WaterProofDoor waterProofDoor = 9; //工作区 repeated state.WorkArea workArea = 10; //区域自动驾驶 repeated state.Gama gama = 11; //列车模式 // repeated state.TrainMode trainMode = 12; //信息源网络状态消息 repeated state.OccNccFepNetwork netWork = 12; //列车信息 // repeated train.TrainInfo train = 13; } //线路列车信息 message WsLineTrainMessage{ repeated train.TrainInfo train = 1; repeated train.TrainBlock trainBlock = 2; repeated train.TrainRecord trainRecord = 3; repeated train.TrainRemove trainRemove = 4; } // 线网信息 message WsLineNetMessage { //线网车辆位置 repeated WsLineNetTrainOffsetMessage offset = 1; } // 线网列车位置信息 message WsLineNetTrainOffsetMessage { //线路id int32 lineId = 1; // 列车标示号,全线唯一 string trainIndex = 2; // 车组号 string groupId = 3; // 目的地ID int32 destinationId = 4; //是否显示 bool show = 5; // 列车公里标 string kilometerCode = 6; // 运行方向 int32 dir = 7; }