道岔和区段关联关系

This commit is contained in:
Yuan 2023-06-19 17:17:09 +08:00
parent b817d7d21d
commit af3b4e09df

View File

@ -107,8 +107,8 @@ message Platform {
message Station {
CommonInfo common = 1;
string code = 2;
bool hasControl = 3; //
bool concentrationStations=4; //
bool hasControl = 3; //
bool concentrationStations = 4; //
}
message StationLine {
@ -145,6 +145,9 @@ message Turnout {
repeated Point pointA = 6; // A端坐标列表
repeated Point pointB = 7; // B端坐标列表
repeated Point pointC = 8; // C端坐标列表
RelatedRef paRef = 9; // A端关联的设备
RelatedRef pbRef = 10; // B端关联的设备
RelatedRef pcRef = 11; // C端关联的设备
}
message Signal {
@ -167,6 +170,8 @@ message Section {
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
RelatedRef paRef = 4; // A端关联的设备
RelatedRef pbRef = 5; // B端关联的设备
}
message PathLine {
@ -174,3 +179,22 @@ message PathLine {
string code = 2;
repeated Point points = 3;
}
//
message RelatedRef {
enum DeviceType {
Section = 0;
Turnout = 1;
TrainWindow = 2;
}
enum DevicePort {
A = 0;
B = 1;
C = 2;
}
DeviceType deviceType = 1; //
string id = 2; //ID
DevicePort devicePort = 3; //
}