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