道岔和区段关联关系
This commit is contained in:
parent
b817d7d21d
commit
af3b4e09df
@ -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; //关联的设备端口
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user