电子地图

This commit is contained in:
joylink_zhaoerwei 2024-11-13 17:57:10 +08:00
parent a30bf52339
commit 64e48a0441
3 changed files with 194 additions and 54 deletions

View File

@ -0,0 +1,194 @@
syntax = "proto3";
import "common.proto";
package electronicMapGraphicData;
message ElectronicMapGraphicStorage {
common.Canvas canvas = 1;
repeated Station stations = 2;
repeated Platform Platforms = 3;
repeated ScreenDoor screenDoors = 4;
repeated Section section = 5;
repeated Turnout turnouts = 6;
repeated Signal signals = 7;
repeated AxleCounting axleCountings = 8;
GenerateAxleCountingConfig generateAxleCountingConfig = 9;//
}
message Station {
common.CommonInfo common = 1;
string code = 2;//
bool concentrationStations = 3; //
KilometerSystem kilometerSystem = 4; //
string stationName = 5; //
string stationNameAcronym = 6; //
bool depots = 7; //
repeated uint32 manageStations = 8; // -id
}
message Platform {
enum TypeOfPlatform {
Unknown = 0;
up = 1;
down = 2;
}
common.CommonInfo common = 1;
string code = 2;
string refEsbRelayCode = 3;//
TypeOfPlatform type = 4; //
uint32 refStationId = 5; //id
uint32 refSectionId = 6; //id
}
message ScreenDoor {
common.CommonInfo common = 1;
string code = 2;
uint32 refPlatformId = 3; //
}
/** 物理区段(包含岔区和非岔区) */
message Section {
enum SectionType {
Physical = 0;
TurnoutPhysical = 1;
}
enum RunningDirection {
AtoB = 0;
BtoA = 1;
BOTH = 2;
}
common.CommonInfo common = 1;
string code = 2; //
repeated common.Point points = 3; //
RelatedRef paRef = 4; // A端关联的设备()()
RelatedRef pbRef = 5; // B端关联的设备()()
SectionType sectionType = 6; //
bool isCurve = 7; // 线
int32 segmentsCount = 8; // 线
RunningDirection normalRunningDirection = 9; //
bool isTurnBackZone = 10; //
Direction direction = 11; //
repeated uint32 axleCountings = 12; //
uint32 trackSectionId = 13; // id
repeated uint32 centralizedStations = 14; // Id列表
}
message Turnout {
enum SwitchMachineType {
Unknown = 0;
ZDJ9_Single = 1;
ZDJ9_Double = 2;
}
common.CommonInfo common = 1;
string code = 2;
repeated common.Point pointA = 3; // A端坐标列表
repeated common.Point pointB = 4; // B端坐标列表
repeated common.Point pointC = 5; // C端坐标列表
RelatedRef paRef = 6; // A端关联的设备
RelatedRef pbRef = 7; // B端关联的设备
RelatedRef pcRef = 8; // C端关联的设备
repeated KilometerSystem kilometerSystem = 9; //
SwitchMachineType switchMachineType = 10; //
repeated uint32 centralizedStations = 11; // Id列表
uint32 paTrackSectionId = 12; // A端轨道区段id
uint32 pbTrackSectionId = 13; // B端轨道区段id
uint32 pcTrackSectionId = 14; // C端轨道区段id
}
message Signal {
common.CommonInfo common = 1;
string code = 2;
bool mirror = 3;
KilometerSystem kilometerSystem = 4;
RelatedRef refDev = 5; ///
//
//
//
// F- D- Y- Y-
// H- L-绿 U- A- B-
enum Model{
HL = 0; //2XH-1 绿
HLU_FU = 1; //2XH-1 绿,
HLU_DU_YY = 2; //3XH-1 绿,
HLU_YY = 3; //3XH-2JDXH 绿,
HLU_FL_DU_YY = 4;//3XH-3 绿,绿
HLU_DU = 5; //3XH-4 绿,
AB = 6; //DXCH
HBU_DU = 7; //JCKXH ,
}
//
Model mt = 6;
Direction direction = 7; //
repeated uint32 centralizedStations = 8; // Id列表
}
message AxleCounting {
enum TypeDetectionPoint {
AxleCounting = 0;
SectionBoundary = 1;
}
common.CommonInfo common = 1;
string code = 2; //
KilometerSystem kilometerSystem = 3; //
repeated RelatedRef axleCountingRef = 4; // id和端口
TypeDetectionPoint type = 5; //
repeated uint32 centralizedStations = 6; // Id列表
}
/** 上下行(区段/信号机) */
enum Direction {
UP = 0;
DOWN = 1;
}
message KilometerSystem {
/** 左右行 **/
enum Direction {
LEFT = 0;
RIGHT = 1;
}
int64 kilometer = 1; //mm
string coordinateSystem = 2; //
Direction direction = 3; //
}
message SimpleRef {
enum DeviceType {
Turnout = 0;
AxleCounting = 1;
}
DeviceType deviceType = 1;
uint32 id = 2;
}
//
message RelatedRef {
enum DeviceType {
station = 0;
ScreenDoor = 1;
Section = 2;
Turnout = 3;
signal = 4;
AxleCounting = 5;
}
enum DevicePort {
A = 0;
B = 1;
C = 2;
}
DeviceType deviceType = 1; //
DevicePort devicePort = 2; //
uint32 id = 3;
}
message GenerateAxleCountingConfig {
repeated uint32 bbConnect = 1; //bb连接处生成计轴的道岔id()
repeated uint32 noGenerateGroup = 2;//
}

View File

@ -1,30 +0,0 @@
syntax = "proto3";
package em_data;
import "common.proto";
//
message Em {
common.Canvas canvas = 1;
repeated Station stations = 2;
}
//
message KilometerMark {
//
string coordinate = 1;
//
int64 value = 2;
}
//
message Station {
common.CommonInfo common = 1;
string name = 2; //
string zhanName = 3; //
string namePinyin = 4; //
KilometerMark km = 6; //
bool concentration = 10; //
bool depots = 11; //
repeated uint32 manageStationIds = 13; // -id
}

View File

@ -1,24 +0,0 @@
syntax = "proto3";
enum PictureType {
/** 火灾报警 */
FireAlarm = 0;
/** 机电 */
Electromechanical = 1;
/** 广播 */
Broadcast = 2;
/** 乘客信息 */
PassengerInformation = 3;
/** 闭路电视 */
CCTV = 4;
/** 屏蔽门 */
PSD = 5;
/** 售检票 */
TicketSalesAndChecking = 6;
/** 门禁 */
AccessControl = 7;
/** 防淹门 */
FloodGate = 8;
/** 网络状态 */
NetworkStatus = 9;
}