【增加设备类型】
This commit is contained in:
parent
4f05a50503
commit
008dcbc665
@ -1 +1 @@
|
|||||||
Subproject commit 1c6eed67ea95b41e7b3cae7375f0f740202fd22b
|
Subproject commit 37e06d2aaf64828da677131dfb790bd0de7cef56
|
@ -18,6 +18,9 @@ message Repository {
|
|||||||
repeated Relay relays = 11;
|
repeated Relay relays = 11;
|
||||||
repeated PhaseFailureProtector phaseFailureProtectors = 12;
|
repeated PhaseFailureProtector phaseFailureProtectors = 12;
|
||||||
repeated Button buttons = 13;
|
repeated Button buttons = 13;
|
||||||
|
repeated Light lights = 14;
|
||||||
|
repeated Alarm alarms = 15;
|
||||||
|
repeated Station stations = 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
//物理区段
|
//物理区段
|
||||||
@ -106,6 +109,7 @@ enum DeviceType {
|
|||||||
DeviceType_Button = 12;
|
DeviceType_Button = 12;
|
||||||
DeviceType_Light = 13;
|
DeviceType_Light = 13;
|
||||||
DeviceType_Alarm = 14;
|
DeviceType_Alarm = 14;
|
||||||
|
DeviceType_Station = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Port {
|
enum Port {
|
||||||
@ -185,4 +189,32 @@ message Button {
|
|||||||
string id = 1;
|
string id = 1;
|
||||||
string code = 2;
|
string code = 2;
|
||||||
ButtonType buttonType = 3;
|
ButtonType buttonType = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 灯
|
||||||
|
message Light {
|
||||||
|
enum LightAspect {
|
||||||
|
L = 0; //绿灯
|
||||||
|
H = 1; //红灯
|
||||||
|
U = 2; //黄灯
|
||||||
|
HU= 3; //红黄灯
|
||||||
|
B=4; //白灯
|
||||||
|
A=5; //蓝灯
|
||||||
|
}
|
||||||
|
string id = 1;
|
||||||
|
string code = 2;
|
||||||
|
LightAspect aspect = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 报警器
|
||||||
|
message Alarm {
|
||||||
|
string id = 1;
|
||||||
|
string code = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 车站
|
||||||
|
message Station {
|
||||||
|
string id = 1;
|
||||||
|
string code = 2;
|
||||||
|
repeated ElectronicComponentGroup electronicComponentGroups = 3; // 关联电子元件组合
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user