【内存中的设备结构】
This commit is contained in:
parent
93b999dd97
commit
2de5ae92a9
37
protos/device_info.proto
Normal file
37
protos/device_info.proto
Normal file
@ -0,0 +1,37 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package state;
|
||||
import "stationLayoutGraphics.proto";
|
||||
option java_package = "club.joylink.xiannccda.dto.protos";
|
||||
option java_outer_classname = "DeviceInfoProto";
|
||||
|
||||
// 区段
|
||||
message Section {
|
||||
// 区段编码
|
||||
string code = 1;
|
||||
|
||||
// 区段类型
|
||||
graphicData.Section.SectionType type = 2;
|
||||
|
||||
// a端公里标
|
||||
string paKilometerCode = 3;
|
||||
|
||||
// b端公里标
|
||||
string pbKilometerCode = 4;
|
||||
|
||||
// 关联区段
|
||||
repeated Section children = 5;
|
||||
}
|
||||
|
||||
// 道岔
|
||||
message Switch {
|
||||
|
||||
string code = 1;
|
||||
|
||||
Section paSection = 2;
|
||||
|
||||
Section pbSection = 3;
|
||||
|
||||
Section pcSection = 4;
|
||||
}
|
||||
|
@ -1,29 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package state;
|
||||
option java_package = "club.joylink.xiannccda.dto.protos";
|
||||
option java_outer_classname = "SectionProto";
|
||||
|
||||
message Section {
|
||||
// 区段编码
|
||||
string code = 1;
|
||||
|
||||
// 左侧区段
|
||||
Section leftSection = 2;
|
||||
|
||||
// 右侧区段
|
||||
Section rightSection = 3;
|
||||
|
||||
// 是否计轴区段
|
||||
bool axleCounter = 4;
|
||||
|
||||
// 关联区段
|
||||
repeated Section logicList = 5;
|
||||
|
||||
// 左侧公里标
|
||||
string leftKilometerCode = 6;
|
||||
|
||||
// 右侧公里标
|
||||
string rightKilometerCode = 7;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user