This commit is contained in:
weizhihong 2023-07-19 09:21:03 +08:00
commit d08959ee41
4 changed files with 102 additions and 63 deletions

32
protos/alertInfo.proto Normal file
View File

@ -0,0 +1,32 @@
syntax = "proto3";
package alert;
//
//import "LineNetTrainOffsetDiagram.proto";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "NccAlertInfoMessageProto";
message NccAlertInfoMessage {
message Message {
string id = 1;
string level = 2;
string alert_time = 3;
string info = 4;
int32 alert_tip_id = 5;
//
string device_info = 6;
//
string reason = 7;
}
repeated Message messages = 1;
}

View File

@ -16,7 +16,6 @@ enum DeviceType{
WATERPROOF_DOOR = 11;
WORK_AREA = 12;
GAMA = 13;
}
message Rtu {
@ -94,33 +93,33 @@ message Entry{
}
message Switch {
bool ipSingleSwitchStusCiOccupied = 1;
bool ipSingleSwitchStusCbtcOccupied = 2;
bool ipSingleSwitchStusLocked = 3;
bool ipSingleSwitchStusFailLocked = 4;
bool ipSingleSwitchStusNormal = 5;
bool ipSingleSwitchStusReverse = 6;
bool ipSingleSwitchStusBlocked1 = 7;
bool ipSingleSwitchStusJammed = 8;
bool ipSingleSwitchStusExpectLock = 9;
bool ipSingleSwitchStusExpectUnlock = 10;
bool ipSingleSwitchStusExpectNormal = 11;
bool ipSingleSwitchStusExpectReverse = 12;
bool ipSingleSwitchStusExpectBlock = 13;
bool ipSingleSwitchStusExpectUnblock = 14;
bool ipSingleSwitchStusInRoute = 15;
bool ipSingleSwitchStusManualMode = 16;
bool ipSingleSwitchStusCut = 17;
bool ipSingleSwitchStusAtcInvalid = 18;
bool ipSingleSwitchStusOverlap = 19;
bool ipSingleSwitchStusTsrCbtcMain = 20;
bool ipSingleSwitchStusTsrCbtcNormal = 21;
bool ipSingleSwitchStusTsrCbtcReverse = 22;
bool ipSingleSwitchStusTsrBmMain = 23;
bool ipSingleSwitchStusTsrBmNormal = 24;
bool ipSingleSwitchStusTsrBmReverse = 25;
bool ipSingleSwitchStusBlocked2 = 26;
bool ipSingleSwitchStusLostIndication = 27;
bool ipSingleSwitchStusCiOccupied = 1; //
bool ipSingleSwitchStusCbtcOccupied = 2; // CBTC报告道岔占用
bool ipSingleSwitchStusLocked = 3; //
bool ipSingleSwitchStusFailLocked = 4; //
bool ipSingleSwitchStusNormal = 5; //
bool ipSingleSwitchStusReverse = 6; //
bool ipSingleSwitchStusBlocked1 = 7; //
bool ipSingleSwitchStusJammed = 8; //
// bool ipSingleSwitchStusExpectLock = 9; //
// bool ipSingleSwitchStusExpectUnlock = 10; //
// bool ipSingleSwitchStusExpectNormal = 11; //
// bool ipSingleSwitchStusExpectReverse = 12; //
// bool ipSingleSwitchStusExpectBlock = 13; //
// bool ipSingleSwitchStusExpectUnblock = 14; //
// bool ipSingleSwitchStusInRoute = 15; //
// bool ipSingleSwitchStusManualMode = 16; //
bool ipSingleSwitchStusCut = 17; //
bool ipSingleSwitchStusAtcInvalid = 18; // ATC报告失效
bool ipSingleSwitchStusOverlap = 19; // OVERLAP
bool ipSingleSwitchStusTsrCbtcMain = 20; // CBTC岔前限速
bool ipSingleSwitchStusTsrCbtcNormal = 21; // CBTC定位限速
bool ipSingleSwitchStusTsrCbtcReverse = 22; // CBTC反位限速
bool ipSingleSwitchStusTsrBmMain = 23; // BM岔前限速
bool ipSingleSwitchStusTsrBmNormal = 24; // BM定位限速
bool ipSingleSwitchStusTsrBmReverse = 25; // BM反位限速
bool ipSingleSwitchStusBlocked2 = 26; //
bool ipSingleSwitchStusLostIndication = 27; //
//
string id = 28;
//KM/H
@ -262,6 +261,3 @@ message OccNccFepNetwork{
// false
bool active = 2;
}

View File

@ -23,6 +23,7 @@ message RtssGraphicStorage {
repeated TrainWindow trainWindows = 16;
repeated AxleCounting axleCountings = 17;
repeated Separator separators = 18;
repeated LogicSection logicSections = 19;
}
message Canvas {
@ -125,7 +126,7 @@ message StationLine {
message TrainWindow {
CommonInfo common = 1;
string code = 2;
string sectionId = 3;
repeated string refDeviceId = 3; //id或由道岔区段生成所关联的道岔id
}
message AxleCounting {
@ -190,20 +191,29 @@ message RunLine {
string lineId = 10;
}
/** 物理区段 */
message Section {
enum SectionType {
Physical = 0;
Logic = 1;
TurnoutPhysical = 2;
Physical = 0; //
TurnoutPhysical = 2; //
}
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端关联的物理区段或道岔()
SectionType sectionType = 6; //
repeated string children = 7; // /
repeated string axleCountings = 7; // (&&)
repeated string children = 8; // id()/id()
string destinationCode = 9; //
}
/** 逻辑区段 */
message LogicSection {
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
}
message KilometerPoint {
@ -216,8 +226,9 @@ message PathLine {
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
bool isUp = 4;
repeated KilometerPoint kilometerPoints = 5;
bool isUp = 4; //
repeated KilometerPoint kilometerPoints = 5; //
bool isKmIncrease = 6; //
}
//

View File

@ -25,7 +25,7 @@ message TrainInfo {
//
string globalId = 9;
// ID
int32 destinationId = 10;
string destinationId = 10;
//
int32 rollingStock = 11;
//