diff --git a/protos/stationLayoutGraphics.proto b/protos/stationLayoutGraphics.proto index 70363df..a0ae7eb 100644 --- a/protos/stationLayoutGraphics.proto +++ b/protos/stationLayoutGraphics.proto @@ -26,7 +26,7 @@ message RtssGraphicStorage { repeated StopPosition stopPositions = 18; repeated SpksSwitch spksSwitchs = 19; repeated EsbButton esbButtons = 20; // 紧急关闭按钮 - repeated GatedBox gateBoxs = 21; // 站台开门/关门/发车按钮整合控制箱 + repeated GatedBox gateBoxs = 21; // 站台开门/关门/发车按钮整合控制箱 repeated Transponder transponders = 22; // 应答器 } @@ -107,16 +107,16 @@ message CommonInfo { message Platform { CommonInfo common = 1; string code = 2; - bool hasdoor = 3; // 是否有屏蔽门 - string direction = 4; // 行驶方向--屏蔽门上下 - int32 index = 5; //索引 + bool hasdoor = 3; // 是否有屏蔽门 + string direction = 4; // 行驶方向--屏蔽门上下 + int32 index = 5; //索引 int32 refStationIndex = 6; //关联车站索引 } message Station { CommonInfo common = 1; string code = 2; - //bool hasControl = 3; // 是否有控制 + // bool hasControl = 3; // 是否有控制 bool concentrationStations = 4; //是否集中站 // string kilometerCode = 5; //公里标 KilometerSystem kilometerSystem = 6; //公里标 @@ -131,10 +131,11 @@ message TrainWindow { message AxleCounting { CommonInfo common = 1; - string code = 2; // 名称 - KilometerSystem kilometerSystem = 3; //公里标 - repeated RelatedRef axleCountingRef = 4; // 计轴关联的非岔区物理区段和道岔,设备id和端口 - int32 index = 5; //计轴的索引编号 + string code = 2; // 名称 + KilometerSystem kilometerSystem = 3; //公里标 + repeated RelatedRef axleCountingRef = + 4; // 计轴关联的非岔区物理区段和道岔,设备id和端口 + int32 index = 5; //计轴的索引编号 } // message Train { @@ -147,7 +148,7 @@ message AxleCounting { // string code = 2; // } -message Turnout {//(后端不关注) +message Turnout { //(后端不关注) CommonInfo common = 1; string code = 2; repeated Point pointA = 6; // A端坐标列表 @@ -158,12 +159,19 @@ message Turnout {//(后端不关注) RelatedRef pcRef = 11; // 道岔C端关联的设备 // KilometerSystem kilometerSystem = 12; // 道岔公里标 repeated KilometerSystem kilometerSystem = 13; // 道岔公里标 - int32 index = 14; //索引 + int32 index = 14; //索引 +} + +/** 左右行 **/ +enum Direction { + LEFT = 0; + RIGHT = 1; } message KilometerSystem { - int64 kilometer = 1; //公里标mm + int64 kilometer = 1; //公里标mm string coordinateSystem = 2; //坐标系 + Direction direction = 3; //左右行 } message Signal { @@ -184,10 +192,10 @@ message Section { } 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 axleCountings = 7; // 区段对应的计轴 int32 index = 8; // 索引 @@ -230,11 +238,11 @@ message Transponder { // 应答器 CommonInfo common = 1; string code = 2; int32 transponderType = 3; - int32 index = 4; // 索引编号 - KilometerSystem kilometerSystem = 5; //公里标 + int32 index = 4; // 索引编号 + KilometerSystem kilometerSystem = 5; //公里标 } -message SimpleRef{ +message SimpleRef { enum DeviceType { Turnout = 0; AxleCounting = 1; @@ -248,11 +256,15 @@ message SectionLink { string code = 2; repeated Point points = 3; bool up = 4; // 是否上行 - SimpleRef aSimRef = 5; // SectionLink A端连接设备(构建关系 AxleCounting/Turnout) //端点 - SimpleRef bSimRef = 6; // SectionLink B端连接设备(构建关系 AxleCounting/Turnout) //端点 - RelatedRef aRef = 7; // SectionLink A端连接设备(端口关系 SectionLink/Turnout) - RelatedRef bRef = 8; //SectionLink B端连接设备(端口关系 SectionLink/Turnout) - int32 index = 9; // 索引编号 + SimpleRef aSimRef = + 5; // SectionLink A端连接设备(构建关系 AxleCounting/Turnout) //端点 + SimpleRef bSimRef = + 6; // SectionLink B端连接设备(构建关系 AxleCounting/Turnout) //端点 + RelatedRef aRef = + 7; // SectionLink A端连接设备(端口关系 SectionLink/Turnout) + RelatedRef bRef = 8; // SectionLink B端连接设备(端口关系 + // SectionLink/Turnout) + int32 index = 9; // 索引编号 } message AxleCountingSection { // 计轴区段 @@ -262,7 +274,7 @@ message AxleCountingSection { // 计轴区段 RelatedRef paRef = 4; // 计轴区段A端关联的计轴 RelatedRef pbRef = 5; // 计轴区段B端关联的计轴 repeated TurnoutPosRef turnoutPos = 6; //关联道岔的正反位--0是定位,1是反位 - int32 index = 7; //计轴区段的索引编号 + int32 index = 7; //计轴区段的索引编号 } message LogicSection { // 逻辑区段 @@ -270,8 +282,9 @@ message LogicSection { // 逻辑区段 string code = 2; // 名称 repeated Point points = 3; string axleSectionId = 4; // 关联的计轴区段Id - int32 index = 5; // 索引编号 - string turnoutId = 6; // 关联的岔芯对应的道岔id,此时该逻辑区段为该道岔C端关联的轨道link + int32 index = 5; // 索引编号 + string turnoutId = + 6; // 关联的岔芯对应的道岔id,此时该逻辑区段为该道岔C端关联的轨道link } message StopPosition { @@ -281,32 +294,46 @@ message StopPosition { } CommonInfo common = 1; string code = 2; - bool flip = 3; // 是否翻转(前端显示) + bool flip = 3; // 是否翻转(前端显示) CoachNum coachNum = 4; //编组数量 - int32 index = 5; //索引 + int32 index = 5; //索引 KilometerSystem kilometerSystem = 6; } message SpksSwitch { CommonInfo common = 1; string code = 2; - bool flip = 3; // 是否翻转(前端显示) - int32 index = 4; //索引 - int32 refStand = 5; //关联站台索引 + bool flip = 3; // 是否翻转(前端显示) + int32 index = 4; //索引 + int32 refStand = 5; //关联站台索引 repeated string refSections = 6; // 关联物理区段id } message EsbButton { CommonInfo common = 1; string code = 2; - bool flip = 3; // 是否翻转(前端显示) - int32 index = 4; //索引 + bool flip = 3; // 是否翻转(前端显示) + int32 index = 4; //索引 int32 refStand = 5; // 关联站台索引 } -message GatedBox{ +message GatedBox { CommonInfo common = 1; string code = 2; - bool flip = 3; // 是否翻转(前端显示) + bool flip = 3; // 是否翻转(前端显示) 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; //公里标数据 +}