rts-sim-testing-message/protos/request.proto

101 lines
3.0 KiB
Protocol Buffer

syntax = "proto3";
package request;
option go_package = "./dto/request_proto";
// 道岔
message Turnout {
// 道岔操作
enum Operation {
Undefined = 0; // 未定义
DC = 1; // 定操
CancelDC = 2; // 取消定操
FC = 3; // 反操
CancelFC = 4; // 取消反操
SetSB = 5; // 设置失表故障
CancelSB = 6; // 取消失表故障
SetJC = 7; // 设置挤岔故障
CancelJC = 8; // 取消挤岔故障
ForceDw = 9; // 强制定位
ForceFw = 10; // 强制反位
CancelForce = 11; // 取消强制
}
}
// 道岔操作请求
message TurnoutOperationReq {
string simulationId = 1; // 仿真id
int32 mapId = 2; // 图id
string deviceId = 3; // 设备id
Turnout.Operation operation = 4; // 道岔操作
}
// 信号机
message Signal {
//信号机操作
enum Operation {
Undefined = 0; // 未定义
Display = 1; //显示操作,如设置绿色、设置红黄色
LightHFaultDs = 2; //设置红灯断丝故障
LightUFaultDs = 3; //设置黄灯断丝故障
LightLFaultDs = 4; //设置绿灯断丝故障
LightAFaultDs = 5; //设置蓝灯断丝故障
LightBFaultDs = 6; //设置白灯断丝故障
LightHCancelDs = 7; //取消红灯断丝故障
LightUCancelDs = 8; //取消黄灯断丝故障
LightLCancelDs = 9; //取消绿灯断丝故障
LightACancelDs = 10; //取消蓝灯断丝故障
LightBCancelDs = 11; //取消白灯断丝故障
}
}
// 区段
message Section {
//区段操作
enum Operation {
SetDrst = 0;//设置计轴直接复位
CancelDrst = 1;//取消计轴直接复位
SetPdrst = 2;//设置计轴预复位
CancelPdrst = 3;//取消计轴预复位
SetFaultOcc = 4; //设置故障占用
CancelFaultOcc = 5; //取消故障占用
}
}
//屏蔽门
message Psd {
enum Operation {
Undefined = 0;
//屏蔽门控制
Km4 = 1; //四编组开门
CancelKm4 = 2; //取消四编组开门
Km8 = 3; //八编组开门
CancelKm8 = 4; //取消八编组开门
Gm = 5; //关门
CancelGm = 6; //取消关门
ForceKm4 = 7; //强制四编组开门
ForceKm8 = 8; //强制八编组开门
ForceGm = 9; //强制关门
CancelForce = 10; //取消强制
//屏蔽门故障
AsdCannotOpen = 11; //滑动门无法开门
CancelAsdCannotOpen = 12; //取消滑动门无法开门
AsdCannotClose = 13; //滑动门无法关闭
CancelAsdCannotClose = 14; //取消滑动门无法关闭
//间隙探测
QDTC = 15; //启动探测
CancelQDTC = 16; //取消启动探测
TZTC = 17; //停止探测
CancelTZTC = 18; //取消停止探测
}
}
// 屏蔽门操作请求
message PsdOperationReq {
string simulationId = 1; // 仿真id
int32 mapId = 2; // 图id
string deviceId = 3; // 设备id
Psd.Operation operation = 4; // 操作
repeated int32 asdCodes = 5; //无法关闭/无法开启故障涉及的滑动门的编号
}