diff --git a/protos/device_state.proto b/protos/device_state.proto index 63f7820..0ce8ea2 100644 --- a/protos/device_state.proto +++ b/protos/device_state.proto @@ -84,22 +84,20 @@ message SignalState{ message Signal { //信号机显示枚举 enum Aspect { - //无用值 - Non = 0; - //物理灭灯 - OFF = 1; + //灭灯 + OFF = 0; + //红 + H = 1; //绿灯亮 L = 2; - //红 - H = 3; //黄 - U = 4; + U = 3; //红黄 - HU = 5; + HU = 4; //白 - B = 6; + B = 5; //蓝 - A = 7; + A = 6; } } @@ -580,4 +578,34 @@ message SimulationStatus { SimulationState state = 2; string description = 3; -} \ No newline at end of file +} + +// 仿真在用的第三方接口状态列表 +message SimulationThirdPartyApiService { + enum Type { + // 未定义 + Undefined = 0; + // 与动力学接口服务 + Dynamics = 1; + // 与半实物列车接口服务 + SemiPhysicalTrain = 2; + } + // 服务状态 + enum State { + // 服务正常 + Normal = 0; + // 服务异常 + Error = 1; + } + + // 服务列表 + repeated SimulationThirdPartyApiServiceState states = 1; +} + +// 仿真第三方接口状态 +message SimulationThirdPartyApiServiceState { + // 接口服务类型 + SimulationThirdPartyApiService.Type type = 1; + // 服务状态 + SimulationThirdPartyApiService.State state = 2; +}