Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-message into HEAD
# Conflicts: # protos/device_state.proto
This commit is contained in:
commit
b86f21606e
@ -9,54 +9,57 @@ option go_package = "./ats/verify/protos/state";
|
|||||||
|
|
||||||
//区段类型
|
//区段类型
|
||||||
enum SectionType{
|
enum SectionType{
|
||||||
Any=0;
|
Any=0;
|
||||||
//计轴区段
|
//计轴区段
|
||||||
Axle=1;
|
Axle=1;
|
||||||
//逻辑区段
|
//逻辑区段
|
||||||
Logic=2;
|
Logic=2;
|
||||||
//物理区段
|
//物理区段
|
||||||
Physic=3;
|
Physic=3;
|
||||||
}
|
}
|
||||||
|
|
||||||
//相邻端点定义的link的状态
|
//相邻端点定义的link的状态
|
||||||
message LinkState{
|
message LinkState{
|
||||||
//link索引
|
//link索引
|
||||||
string id = 1;
|
string id = 1;
|
||||||
//link上的列车id列表
|
//link上的列车id列表
|
||||||
repeated string trainId = 2;
|
repeated string trainId = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
//区段状态
|
//区段状态
|
||||||
message SectionState{
|
message SectionState{
|
||||||
//区段索引
|
//区段索引
|
||||||
string id = 1;
|
string id = 1;
|
||||||
//区段类型
|
//区段类型
|
||||||
SectionType type = 2;
|
SectionType type = 2;
|
||||||
//区段占用
|
//区段占用
|
||||||
//true-占用;false-出清
|
//true-占用;false-出清
|
||||||
bool occupied = 3;
|
bool occupied = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
//道岔状态
|
//道岔状态
|
||||||
message SwitchState{
|
message SwitchState{
|
||||||
//道岔索引
|
//道岔索引
|
||||||
string id = 1;
|
string id = 1;
|
||||||
//道岔处于定位(表示)
|
//道岔处于定位(表示)
|
||||||
bool normal = 2;
|
bool normal = 2;
|
||||||
//道岔处于反位(表示)
|
//道岔处于反位(表示)
|
||||||
bool reverse = 3;
|
bool reverse = 3;
|
||||||
//道岔处于定位(实际)
|
//道岔处于定位(实际)
|
||||||
bool dw = 4;
|
bool dw = 4;
|
||||||
//道岔处于反位(实际)
|
//道岔处于反位(实际)
|
||||||
bool fw = 5;
|
bool fw = 5;
|
||||||
}
|
}
|
||||||
//信号机状态
|
//信号机状态
|
||||||
message SignalState{
|
message SignalState{
|
||||||
//信号机索引
|
//信号机索引
|
||||||
string id = 1;
|
string id = 1;
|
||||||
|
//信号机的灯列表
|
||||||
|
repeated Signal.Light light = 2;
|
||||||
}
|
}
|
||||||
//信号机显示枚举定义
|
//信号机显示定义
|
||||||
message Signal {
|
message Signal {
|
||||||
|
//信号机显示枚举
|
||||||
enum Aspect {
|
enum Aspect {
|
||||||
//物理灭灯
|
//物理灭灯
|
||||||
OFF = 0;
|
OFF = 0;
|
||||||
@ -64,59 +67,66 @@ message Signal {
|
|||||||
ON = 1;
|
ON = 1;
|
||||||
//绿灯亮
|
//绿灯亮
|
||||||
L = 2;
|
L = 2;
|
||||||
//红灯亮
|
//红
|
||||||
H = 3;
|
H = 3;
|
||||||
//黄灯亮
|
//黄
|
||||||
U = 4;
|
U = 4;
|
||||||
//红灯且黄灯亮
|
//红黄
|
||||||
HU= 5;
|
HU= 5;
|
||||||
//白灯亮
|
//白
|
||||||
B=6;
|
B=6;
|
||||||
//蓝灯亮
|
//蓝
|
||||||
A=7;
|
A=7;
|
||||||
}
|
}
|
||||||
|
//信号机中的灯
|
||||||
|
message Light{
|
||||||
|
//灯颜色(单色)
|
||||||
|
Aspect color = 1;
|
||||||
|
//true-显示信号,false-不显示信号
|
||||||
|
bool display = 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//站台状态
|
//站台状态
|
||||||
message PlatformState{
|
message PlatformState{
|
||||||
//站台索引
|
//站台索引
|
||||||
string id = 1;
|
string id = 1;
|
||||||
}
|
}
|
||||||
//车站状态
|
//车站状态
|
||||||
message StationState{
|
message StationState{
|
||||||
//车站索引
|
//车站索引
|
||||||
string id = 1;
|
string id = 1;
|
||||||
}
|
}
|
||||||
//列车状态
|
//列车状态
|
||||||
message TrainState{
|
message TrainState{
|
||||||
//列车索引
|
//列车索引
|
||||||
string id = 1;
|
string id = 1;
|
||||||
//列车初始link运行方向
|
//列车初始link运行方向
|
||||||
bool up = 2;
|
bool up = 2;
|
||||||
// 列车初始速度
|
// 列车初始速度
|
||||||
float speed = 3;
|
float speed = 3;
|
||||||
//列车长度,1=1mm
|
//列车长度,1=1mm
|
||||||
int64 trainLength = 4;
|
int64 trainLength = 4;
|
||||||
//列车是否显示
|
//列车是否显示
|
||||||
bool show = 5;
|
bool show = 5;
|
||||||
// 列车车头所在设备ID
|
// 列车车头所在设备ID
|
||||||
string headDeviceId = 6;
|
string headDeviceId = 6;
|
||||||
// 列车车头所在设备偏移量
|
// 列车车头所在设备偏移量
|
||||||
int64 headOffset = 7;
|
int64 headOffset = 7;
|
||||||
// 设备端口
|
// 设备端口
|
||||||
string devicePort = 8;
|
string devicePort = 8;
|
||||||
// 运行方向指向(区段:A-B,道岔:-> 岔心)
|
// 运行方向指向(区段:A-B,道岔:-> 岔心)
|
||||||
bool pointTo = 9;
|
bool pointTo = 9;
|
||||||
// 运行上下行(公里标 上行:小 -> 大,下行:大 -> 小)
|
// 运行上下行(公里标 上行:小 -> 大,下行:大 -> 小)
|
||||||
bool runDirection = 10;
|
bool runDirection = 10;
|
||||||
// 列车车头方向
|
// 列车车头方向
|
||||||
bool headDirection = 11;
|
bool headDirection = 11;
|
||||||
// 动力学信息
|
// 动力学信息
|
||||||
TrainDynamicState dynamicState = 12;
|
TrainDynamicState dynamicState = 12;
|
||||||
// 半实物信息
|
// 半实物信息
|
||||||
TrainVobcState vobcState = 13;
|
TrainVobcState vobcState = 13;
|
||||||
// 所在公里标
|
// 所在公里标
|
||||||
int64 trainKilometer = 14;
|
int64 trainKilometer = 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 动力学列车状态
|
// 动力学列车状态
|
||||||
@ -234,39 +244,41 @@ message ReplyState {
|
|||||||
|
|
||||||
//仿真运行时状态变化量,当前时刻与上一时刻比较得到
|
//仿真运行时状态变化量,当前时刻与上一时刻比较得到
|
||||||
message VariationStatus{
|
message VariationStatus{
|
||||||
//新增或变化的列车的状态
|
//新增或变化的列车的状态
|
||||||
repeated TrainState updatedTrain = 1;
|
repeated TrainState updatedTrain = 1;
|
||||||
//移除的列车的索引
|
//移除的列车的索引
|
||||||
repeated string removedTrainId = 2;
|
repeated string removedTrainId = 2;
|
||||||
//状态发生变化的道岔
|
//状态发生变化的道岔
|
||||||
repeated SwitchState updatedSwitch = 3;
|
repeated SwitchState updatedSwitch = 3;
|
||||||
//状态发生变化的区段
|
//状态发生变化的区段
|
||||||
repeated SectionState updatedSection = 4;
|
repeated SectionState updatedSection = 4;
|
||||||
//状态发送变化的继电器
|
//状态发送变化的继电器
|
||||||
repeated ReplyState updatedReply = 5;
|
repeated ReplyState updatedReply = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
//仿真运行时的所有设备的状态
|
//仿真运行时的所有设备的状态
|
||||||
message AllDevicesStatus{
|
message AllDevicesStatus{
|
||||||
// 所有列车状态
|
// 所有列车状态
|
||||||
repeated TrainState trainState = 1;
|
repeated TrainState trainState = 1;
|
||||||
// 所有道岔状态
|
// 所有道岔状态
|
||||||
repeated SwitchState switchState = 2;
|
repeated SwitchState switchState = 2;
|
||||||
// 所有类型区段状态
|
// 所有类型区段状态
|
||||||
repeated SectionState sectionState = 3;
|
repeated SectionState sectionState = 3;
|
||||||
// 所有继电器状态
|
// 所有继电器状态
|
||||||
repeated ReplyState replyState = 4;
|
repeated ReplyState replyState = 4;
|
||||||
|
// 所有信号机状态
|
||||||
|
repeated SignalState signalState = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
//服务器端向前端推送的设备状态信息
|
//服务器端向前端推送的设备状态信息
|
||||||
message PushedDevicesStatus{
|
message PushedDevicesStatus{
|
||||||
//true-全量设备状态信息,此时allStatus有效;
|
//true-全量设备状态信息,此时allStatus有效;
|
||||||
//false - 增量设备状态消息,此时varStatus有效
|
//false - 增量设备状态消息,此时varStatus有效
|
||||||
bool all = 1;
|
bool all = 1;
|
||||||
//增量设备状态消息
|
//增量设备状态消息
|
||||||
VariationStatus varStatus = 2;
|
VariationStatus varStatus = 2;
|
||||||
//全量设备状态信息
|
//全量设备状态信息
|
||||||
AllDevicesStatus allStatus = 3;
|
AllDevicesStatus allStatus = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 仿真信息状态
|
// 仿真信息状态
|
||||||
|
@ -12,6 +12,7 @@ message IBPGraphicStorage {
|
|||||||
repeated IBPText IBPTexts = 6;
|
repeated IBPText IBPTexts = 6;
|
||||||
// UniqueIdType UniqueIdPrefix = 7;
|
// UniqueIdType UniqueIdPrefix = 7;
|
||||||
repeated IbpRelatedDevice ibpRelatedDevices = 8;
|
repeated IbpRelatedDevice ibpRelatedDevices = 8;
|
||||||
|
repeated IbpLight ibpLights = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
message IBPButton {
|
message IBPButton {
|
||||||
@ -54,6 +55,18 @@ message IbpArrow {
|
|||||||
repeated graphicData.Point points = 3;
|
repeated graphicData.Point points = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message IbpLight {
|
||||||
|
enum IbpLightColor {
|
||||||
|
white = 0;
|
||||||
|
red = 1;
|
||||||
|
green = 2;
|
||||||
|
blue = 3;
|
||||||
|
}
|
||||||
|
graphicData.CommonInfo common = 1;
|
||||||
|
IbpLightColor color = 2;
|
||||||
|
string code = 3;
|
||||||
|
}
|
||||||
|
|
||||||
// message UniqueIdType {
|
// message UniqueIdType {
|
||||||
// string city = 1; //城市
|
// string city = 1; //城市
|
||||||
// string lineId = 2; //线路号
|
// string lineId = 2; //线路号
|
||||||
|
Loading…
Reference in New Issue
Block a user