This commit is contained in:
fan 2023-07-07 16:04:59 +08:00
commit f12288dffe

58
protos/device_state.proto Normal file
View File

@ -0,0 +1,58 @@
syntax = "proto3";
package state;
option java_package = "club.joylink.bjrtss.ats.verify.protos";
option java_outer_classname = "DeviceStateProto";
//
//
enum SectionType{
Any=0;
//
Axle=1;
//
Logic=2;
//
Physic=3;
}
//
message SectionState{
//
string id = 1;
//
SectionType type = 2;
//
//true-false-
bool occupied = 3;
//,
repeated string trainId = 4;
}
//
message SwitchState{
//
string id = 1;
//
bool normal = 2;
//
bool reverse = 3;
}
//
message TrainState{
//
string id = 1;
//link的索引
string headLinkId = 2;
//link内的偏移量cm
int64 headLinkOffset = 3;
//link的索引
string tailLinkId = 4;
//link内的偏移量cm
int64 tailLinkOffset = 5;
//link的索引的列表
//
repeated string occupiedLinkId = 6;
}