Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-message
This commit is contained in:
commit
f0f415273f
@ -62,3 +62,27 @@ message TrainState{
|
||||
//顺序为从车头到车尾
|
||||
repeated string occupiedLinkId = 6;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//仿真运行时状态变化量,当前时刻与上一时刻比较得到
|
||||
message VariationStatus{
|
||||
//新增或变化的列车的状态
|
||||
repeated TrainState updatedTrain = 1;
|
||||
//移除的列车的索引
|
||||
repeated string removedTrainId = 2;
|
||||
//状态发生变化的道岔
|
||||
repeated SwitchState updatedSwitch = 3;
|
||||
//状态发生变化的区段
|
||||
repeated SectionState updatedSection = 4;
|
||||
}
|
||||
|
||||
//仿真运行时的所有设备的状态
|
||||
message AllDevicesStatus{
|
||||
//所有列车状态
|
||||
repeated TrainState trainState = 1;
|
||||
//所有道岔状态
|
||||
repeated SwitchState switchState = 2;
|
||||
//所有类型区段状态
|
||||
repeated SectionState sectionState = 3;
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ message RtssGraphicStorage {
|
||||
repeated Separator separators = 14;
|
||||
repeated SectionLink sectionLinks = 15;
|
||||
repeated AxleCountingSection axleCountingSections = 16;
|
||||
repeated LogicSection logicSections = 17;
|
||||
}
|
||||
|
||||
message Canvas {
|
||||
@ -124,6 +125,7 @@ message AxleCounting {
|
||||
string code = 2;
|
||||
KilometerSystem kilometerSystem = 3; //公里标
|
||||
repeated RelatedRef axleCountingRef = 4; // 关联的设备
|
||||
int32 indexNumber = 5; //计轴的索引编号
|
||||
}
|
||||
|
||||
message Train {
|
||||
@ -163,20 +165,21 @@ message Signal {
|
||||
KilometerSystem kilometerSystem = 6;
|
||||
}
|
||||
|
||||
/** 物理区段(包含岔区和非岔区) */
|
||||
message Section {
|
||||
enum SectionType {
|
||||
Physical = 0;
|
||||
Logic = 1;
|
||||
TurnoutPhysical = 2;
|
||||
}
|
||||
|
||||
CommonInfo common = 1;
|
||||
string code = 2;
|
||||
repeated Point points = 3;
|
||||
RelatedRef paRef = 4; // 区段A端关联的设备
|
||||
RelatedRef pbRef = 5; // 区段B端关联的设备
|
||||
SectionType sectionType = 6; // 区段类型
|
||||
repeated string children = 7; // 物理区段的下属逻辑区段/道岔物理区段的下属道岔
|
||||
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; // 索引
|
||||
}
|
||||
|
||||
message KilometerPoint {
|
||||
@ -206,6 +209,12 @@ message RelatedRef {
|
||||
DevicePort devicePort = 3; //关联的设备端口
|
||||
}
|
||||
|
||||
//与道岔的位置关系
|
||||
message TurnoutPosRef {
|
||||
string id = 1; //道岔的ID
|
||||
int32 position = 2; //道岔的正反为,0是正位,1是反位
|
||||
}
|
||||
|
||||
message Separator { // 分隔符
|
||||
CommonInfo common = 1;
|
||||
string code = 2;
|
||||
@ -236,6 +245,16 @@ message AxleCountingSection { // 计轴区段
|
||||
CommonInfo common = 1;
|
||||
string code = 2;
|
||||
repeated Point points = 3;
|
||||
RelatedRef paRef = 4; // 区段A端关联的设备
|
||||
RelatedRef pbRef = 5; // 区段B端关联的设备
|
||||
RelatedRef paRef = 4; // 区段A端关联的设备
|
||||
RelatedRef pbRef = 5; // 区段B端关联的设备
|
||||
repeated TurnoutPosRef turnoutPos = 6; //关联道岔的正反位
|
||||
int32 indexNumber = 7; //区段的索引编号
|
||||
}
|
||||
|
||||
message LogicSection { // 逻辑区段
|
||||
CommonInfo common = 1;
|
||||
string code = 2;
|
||||
repeated Point points = 3;
|
||||
string axleSectionId = 4; // 关联的计轴区段Id
|
||||
int32 indexNumber = 5; // 索引编号
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user