This commit is contained in:
fan 2023-07-12 13:05:05 +08:00
commit f0f415273f
2 changed files with 52 additions and 9 deletions

View File

@ -62,3 +62,27 @@ message TrainState{
//
repeated string occupiedLinkId = 6;
}
////////////////////////////////////////////////////////////////////////////
//仿
message VariationStatus{
//
repeated TrainState updatedTrain = 1;
//
repeated string removedTrainId = 2;
//
repeated SwitchState updatedSwitch = 3;
//
repeated SectionState updatedSection = 4;
}
//仿
message AllDevicesStatus{
//
repeated TrainState trainState = 1;
//
repeated SwitchState switchState = 2;
//
repeated SectionState sectionState = 3;
}

View File

@ -21,6 +21,7 @@ message RtssGraphicStorage {
repeated Separator separators = 14;
repeated SectionLink sectionLinks = 15;
repeated AxleCountingSection axleCountingSections = 16;
repeated LogicSection logicSections = 17;
}
message Canvas {
@ -124,6 +125,7 @@ message AxleCounting {
string code = 2;
KilometerSystem kilometerSystem = 3; //
repeated RelatedRef axleCountingRef = 4; //
int32 indexNumber = 5; //
}
message Train {
@ -163,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端关联的设备
SectionType sectionType = 6; //
repeated string children = 7; // /
string code = 2; //
repeated Point points = 3; //
RelatedRef paRef = 4; // A端关联的设备()
RelatedRef pbRef = 5; // B端关联的设备()
SectionType sectionType = 6; //
repeated string axleCountings = 7; //
int32 index = 8; //
}
message KilometerPoint {
@ -206,6 +209,12 @@ message RelatedRef {
DevicePort devicePort = 3; //
}
//
message TurnoutPosRef {
string id = 1; //ID
int32 position = 2; //01
}
message Separator { //
CommonInfo common = 1;
string code = 2;
@ -236,6 +245,16 @@ message AxleCountingSection { // 计轴区段
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
RelatedRef paRef = 4; // A端关联的设备
RelatedRef pbRef = 5; // B端关联的设备
RelatedRef paRef = 4; // A端关联的设备
RelatedRef pbRef = 5; // B端关联的设备
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; //
}