公里标增加方向

This commit is contained in:
Yuan 2023-08-04 16:35:51 +08:00
parent c87d9f5a41
commit 4de1eb0d59

View File

@ -26,7 +26,7 @@ message RtssGraphicStorage {
repeated StopPosition stopPositions = 18; repeated StopPosition stopPositions = 18;
repeated SpksSwitch spksSwitchs = 19; repeated SpksSwitch spksSwitchs = 19;
repeated EsbButton esbButtons = 20; // repeated EsbButton esbButtons = 20; //
repeated GatedBox gateBoxs = 21; // // repeated GatedBox gateBoxs = 21; // //
repeated Transponder transponders = 22; // repeated Transponder transponders = 22; //
} }
@ -107,16 +107,16 @@ message CommonInfo {
message Platform { message Platform {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
bool hasdoor = 3; // bool hasdoor = 3; //
string direction = 4; // -- string direction = 4; // --
int32 index = 5; // int32 index = 5; //
int32 refStationIndex = 6; // int32 refStationIndex = 6; //
} }
message Station { message Station {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
//bool hasControl = 3; // // bool hasControl = 3; //
bool concentrationStations = 4; // bool concentrationStations = 4; //
// string kilometerCode = 5; // // string kilometerCode = 5; //
KilometerSystem kilometerSystem = 6; // KilometerSystem kilometerSystem = 6; //
@ -131,10 +131,11 @@ message TrainWindow {
message AxleCounting { message AxleCounting {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; // string code = 2; //
KilometerSystem kilometerSystem = 3; // KilometerSystem kilometerSystem = 3; //
repeated RelatedRef axleCountingRef = 4; // id和端口 repeated RelatedRef axleCountingRef =
int32 index = 5; // 4; // id和端口
int32 index = 5; //
} }
// message Train { // message Train {
@ -147,7 +148,7 @@ message AxleCounting {
// string code = 2; // string code = 2;
// } // }
message Turnout {//() message Turnout { //()
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
repeated Point pointA = 6; // A端坐标列表 repeated Point pointA = 6; // A端坐标列表
@ -158,12 +159,19 @@ message Turnout {//(后端不关注)
RelatedRef pcRef = 11; // C端关联的设备 RelatedRef pcRef = 11; // C端关联的设备
// KilometerSystem kilometerSystem = 12; // // KilometerSystem kilometerSystem = 12; //
repeated KilometerSystem kilometerSystem = 13; // repeated KilometerSystem kilometerSystem = 13; //
int32 index = 14; // int32 index = 14; //
}
/** 左右行 **/
enum Direction {
LEFT = 0;
RIGHT = 1;
} }
message KilometerSystem { message KilometerSystem {
int64 kilometer = 1; //mm int64 kilometer = 1; //mm
string coordinateSystem = 2; // string coordinateSystem = 2; //
Direction direction = 3; //
} }
message Signal { message Signal {
@ -184,10 +192,10 @@ message Section {
} }
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 axleCountings = 7; // repeated string axleCountings = 7; //
int32 index = 8; // int32 index = 8; //
@ -230,11 +238,11 @@ message Transponder { // 应答器
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
int32 transponderType = 3; int32 transponderType = 3;
int32 index = 4; // int32 index = 4; //
KilometerSystem kilometerSystem = 5; // KilometerSystem kilometerSystem = 5; //
} }
message SimpleRef{ message SimpleRef {
enum DeviceType { enum DeviceType {
Turnout = 0; Turnout = 0;
AxleCounting = 1; AxleCounting = 1;
@ -248,11 +256,15 @@ message SectionLink {
string code = 2; string code = 2;
repeated Point points = 3; repeated Point points = 3;
bool up = 4; // bool up = 4; //
SimpleRef aSimRef = 5; // SectionLink A端连接设备 AxleCounting/Turnout // SimpleRef aSimRef =
SimpleRef bSimRef = 6; // SectionLink B端连接设备 AxleCounting/Turnout // 5; // SectionLink A端连接设备 AxleCounting/Turnout //
RelatedRef aRef = 7; // SectionLink A端连接设备 SectionLink/Turnout SimpleRef bSimRef =
RelatedRef bRef = 8; //SectionLink B端连接设备 SectionLink/Turnout 6; // SectionLink B端连接设备 AxleCounting/Turnout //
int32 index = 9; // RelatedRef aRef =
7; // SectionLink A端连接设备 SectionLink/Turnout
RelatedRef bRef = 8; // SectionLink B端连接设备
// SectionLink/Turnout
int32 index = 9; //
} }
message AxleCountingSection { // message AxleCountingSection { //
@ -262,7 +274,7 @@ message AxleCountingSection { // 计轴区段
RelatedRef paRef = 4; // A端关联的计轴 RelatedRef paRef = 4; // A端关联的计轴
RelatedRef pbRef = 5; // B端关联的计轴 RelatedRef pbRef = 5; // B端关联的计轴
repeated TurnoutPosRef turnoutPos = 6; //--01 repeated TurnoutPosRef turnoutPos = 6; //--01
int32 index = 7; // int32 index = 7; //
} }
message LogicSection { // message LogicSection { //
@ -270,8 +282,9 @@ message LogicSection { // 逻辑区段
string code = 2; // string code = 2; //
repeated Point points = 3; repeated Point points = 3;
string axleSectionId = 4; // Id string axleSectionId = 4; // Id
int32 index = 5; // int32 index = 5; //
string turnoutId = 6; // idC端关联的轨道link string turnoutId =
6; // idC端关联的轨道link
} }
message StopPosition { message StopPosition {
@ -281,32 +294,46 @@ message StopPosition {
} }
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
bool flip = 3; // bool flip = 3; //
CoachNum coachNum = 4; // CoachNum coachNum = 4; //
int32 index = 5; // int32 index = 5; //
KilometerSystem kilometerSystem = 6; KilometerSystem kilometerSystem = 6;
} }
message SpksSwitch { message SpksSwitch {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
bool flip = 3; // bool flip = 3; //
int32 index = 4; // int32 index = 4; //
int32 refStand = 5; // int32 refStand = 5; //
repeated string refSections = 6; // id repeated string refSections = 6; // id
} }
message EsbButton { message EsbButton {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
bool flip = 3; // bool flip = 3; //
int32 index = 4; // int32 index = 4; //
int32 refStand = 5; // int32 refStand = 5; //
} }
message GatedBox{ message GatedBox {
CommonInfo common = 1; CommonInfo common = 1;
string code = 2; string code = 2;
bool flip = 3; // bool flip = 3; //
int32 index = 4; // int32 index = 4; //
} }
/** 坡度公里标 */
message SlopeKiloMarker {
CommonInfo common = 1;
string code = 2;
KilometerSystem kilometerSystem = 4; //
}
/** 弯径公里标 */
message turningRadiusKiloMarker {
CommonInfo common = 1;
string code = 2;
KilometerSystem kilometerSystem = 4; //
}