合并代码

This commit is contained in:
fan 2023-06-12 17:33:15 +08:00
commit 1649bf4b3f
5 changed files with 293 additions and 236 deletions

View File

@ -1,41 +0,0 @@
syntax = "proto3";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "DeviceProto";
message Device{
int32 lineId = 1;
int32 reportId = 2;
}
message DeviceDetail{
string deviceType = 1;
string deviceName = 2;
// int32 status = 3;
}
message Track{
Device device = 1;
DeviceDetail detail = 2;
//
float speedLimit = 3;
//
// 1CBTC限速
// 2
// 4
int32 limitType = 4;
}
message Platform{
Device device = 1;
DeviceDetail detail = 2;
//
int32 stopTime = 3;
}
message Switch{
Device device = 1;
DeviceDetail detail = 2;
//
float speedLimit = 3;
}

View File

@ -7,20 +7,18 @@ message LineNetTrainOffset{
//线id
int32 lineId = 1;
//
string Group_id = 2;
string groupId = 2;
//
int32 dir = 3;
// true-false-
bool initType = 4;
//
int32 offset = 5;
//id
int32 destinationId = 6;
//
int32 backId = 7;
//
bool show = 8;
//
float rate = 9;
//
bool show = 4;
//
int32 windowNo = 5;
//
int32 windowOffset = 6;
//
string destinationId = 7;
//
string backId = 8;
}

View File

@ -108,6 +108,8 @@ message Switch{
bool ipSingleSwitchStusLostIndication = 27;
//
string id = 28;
//KM/H
int32 speedLimit = 29;
}
message Track{
@ -124,6 +126,21 @@ message Track{
bool blocked = 11;
//
string id = 12;
//
int32 speedLimit = 13;
//
LimitType limitType = 14;
//track限速类型
enum LimitType{
Unknown = 0;
//1CBTC限速
Cbtc = 1;
//2
Interlock = 2;
//4
CbtcInterlock = 4;
}
}
message Platform{
@ -142,6 +159,12 @@ message Platform{
bool downTrainSkipstop = 13;
//
string id = 14;
//
int32 nextSectionRunTime = 15;
//
int32 nextSectionRunLevel = 16;
//
int32 stopTime = 17;
}
message Scada{
@ -212,3 +235,16 @@ message TrainMode{
//
string id = 35;
}
//////////////////////////////////////////////////////////////////////
//2.7.2
//NCC FEP与OCC FEP
message OccNccFepNetwork{
//线
string id = 1;
//true 线(server)
//false
bool active = 2;
}

View File

@ -10,11 +10,14 @@ message RtssGraphicStorage {
repeated IscsFan iscsFans = 3;
repeated Platform Platforms = 4;
repeated Station stations = 5;
repeated Rect Rects = 6;
repeated Rect rects = 6;
repeated Train train = 7;
repeated Signal signals = 8;
repeated Turnout turnouts = 9;
repeated RunLine runLines = 10;
repeated Section section = 10;
repeated StationLine stationLines = 11;
repeated RunLine runLines = 12;
}
message Canvas {
@ -77,10 +80,10 @@ message Rect {
string code = 2;
int32 lineWidth = 3; // 线
string lineColor = 4; // 线
Point point = 5; //
float width = 6; //
float height = 7; //
repeated Point points = 8; //
float width = 5; //
float height = 6; //
int32 radius = 7; //
Point point = 8; //
}
message Platform {
@ -95,6 +98,12 @@ message Station {
string code = 2;
}
message StationLine {
CommonInfo common = 1;
string code = 2;
bool hasTransfer = 3; //
}
message Train {
CommonInfo common = 1;
string code = 2;
@ -126,5 +135,10 @@ message RunLine {
string code = 2;
repeated Point points = 3;
string nameColor = 4;
string nameBgColor = 5;
string nameBgColor = 5;}
message Section {
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
}

50
protos/trans.proto Normal file
View File

@ -0,0 +1,50 @@
syntax = "proto3";
//
package trans;
import "device_status.proto";
option java_package = "club.joylink.xiannccda.dto.protos";
option java_outer_classname = "TransProto";
//线
message RtuDevicesStorage{
//线
int32 lineId = 1;
//
int32 rtuId = 2;
//true-;false-
bool all = 3;
//
repeated state.Signal signal = 4;
//
repeated state.Switch switch = 5;
//
repeated state.Platform platform = 6;
//
repeated state.Track track =7;
//
repeated state.Rtu rtu = 8;
//
repeated state.Station station = 9;
//
repeated state.Entry entry = 10;
//
repeated state.Scada scada = 11;
//
repeated state.WaterProofDoor waterProofDoor = 12;
//
repeated state.WorkArea workArea = 13;
//
repeated state.Gama gama = 14;
}
//线
message LineDevicesStorage{
//线
int32 lineId = 1;
//true-线;false-
bool all = 2;
//线
repeated RtuDevicesStorage storage = 3;
}