This commit is contained in:
xzb 2023-07-14 09:14:18 +08:00
commit 551f341746

View File

@ -21,7 +21,7 @@ message RtssGraphicStorage {
repeated Separator separators = 14;
repeated SectionLink sectionLinks = 15;
repeated AxleCountingSection axleCountingSections = 16;
repeated AxleCountingSection logicSections = 17;
repeated LogicSection logicSections = 17;
}
message Canvas {
@ -125,6 +125,7 @@ message AxleCounting {
string code = 2;
KilometerSystem kilometerSystem = 3; //
repeated RelatedRef axleCountingRef = 4; //
int32 indexNumber = 5; //
}
message Train {
@ -164,20 +165,21 @@ message Signal {
KilometerSystem kilometerSystem = 6;
}
/** 物理区段(包含岔区和非岔区) */
message Section {
enum SectionType {
Physical = 0;
Logic = 1;
TurnoutPhysical = 2;
}
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
RelatedRef paRef = 4; // A端关联的设备
RelatedRef pbRef = 5; // B端关联的设备
string code = 2; //
repeated Point points = 3; //
RelatedRef paRef = 4; // A端关联的设备()
RelatedRef pbRef = 5; // B端关联的设备()
SectionType sectionType = 6; //
repeated string children = 7; // /
repeated string axleCountings = 7; //
int32 index = 8; //
}
message KilometerPoint {
@ -193,6 +195,7 @@ message RelatedRef {
Turnout = 1;
TrainWindow = 2;
AxleCounting = 3;
SectionLink = 4;
}
enum DevicePort {
@ -209,7 +212,7 @@ message RelatedRef {
//
message TurnoutPosRef {
string id = 1; //ID
int32 position= 2; //01
int32 position = 2; //01
}
message Separator { //
@ -218,11 +221,24 @@ message Separator { // 分隔符
string separatorType = 3;
}
message SimpleRef{
enum DeviceType {
Turnout = 0;
AxleCounting = 1;
}
DeviceType deviceType = 1;
string id = 2;
}
message SectionLink {
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
string refDevice = 4;
bool up = 4;
SimpleRef aSimRef = 5;
SimpleRef bSimRef = 6;
RelatedRef aRef = 7;
RelatedRef bRef = 8;
}
message AxleCountingSection { //
@ -231,5 +247,15 @@ message AxleCountingSection { // 计轴区段
repeated Point points = 3;
RelatedRef paRef = 4; // A端关联的设备
RelatedRef pbRef = 5; // B端关联的设备
repeated TurnoutPosRef turnoutPos=6; //
repeated TurnoutPosRef turnoutPos = 6; //
int32 indexNumber = 7; //
}
message LogicSection { //
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
string axleSectionId = 4; // Id
int32 indexNumber = 5; //
string turnoutId = 6; // id
}