rts-sim-testing-message/protos/relayCabinetLayoutGraphics.proto

119 lines
3.3 KiB
Protocol Buffer
Raw Normal View History

2023-08-25 17:14:44 +08:00
syntax = "proto3";
2023-09-06 09:31:44 +08:00
import "stationLayoutGraphics.proto";
2023-08-25 17:14:44 +08:00
2023-09-06 09:31:44 +08:00
package relayCabinetGraphicData;
option go_package = "joylink.club/bj-rtsts-server/dto/data_proto";
2023-08-25 17:14:44 +08:00
message RelayCabinetGraphicStorage {
2023-09-06 09:31:44 +08:00
graphicData.Canvas canvas = 1;
2023-08-25 17:14:44 +08:00
repeated RelayCabinet relayCabinets = 2;
repeated Relay relays = 3;
2023-09-08 17:57:19 +08:00
repeated DeviceRelateRelay deviceRelateRelayList = 4;
2023-09-20 15:31:56 +08:00
//string belongsConcentrationStation = 5;//继电器柜图所属集中站
UniqueIdType UniqueIdPrefix = 6;//设备唯一编码--前缀
2023-09-25 17:34:55 +08:00
repeated PhaseFailureProtector phaseFailureProtectors = 7;
//repeated Combinationtype combinationtypeList = 8;
repeated SignalFaultAlarm signalFaultAlarms = 9;
2023-10-24 17:03:53 +08:00
CiCj ciCjList = 10;//采集列表
2023-10-25 14:36:11 +08:00
CiQd ciQdList = 11;//驱动列表
2023-08-25 17:14:44 +08:00
}
message RelayCabinet {
2023-09-08 17:57:19 +08:00
graphicData.CommonInfo common = 1;
string code = 2;//编号
2023-08-25 17:14:44 +08:00
}
message Relay {
2023-09-22 15:19:46 +08:00
enum ModelType {//型号中的-和/转换为_
2023-09-22 15:56:34 +08:00
Unknown = 0;
JPXC_1000 = 1;
JPXC_1700 = 2;
JWJXC_480 = 3;
JWJXC_H125_80 = 4;
JWXC_1700 = 5;
JWXC_H340 = 6;
JYJXC_160_260 = 7;
JZXC_H18 = 8;
2023-09-22 15:19:46 +08:00
}
2023-09-06 09:31:44 +08:00
graphicData.CommonInfo common = 1;
2023-09-08 17:57:19 +08:00
string code = 2;//编号
2023-09-22 17:55:06 +08:00
//string model = 3;//型号
2023-09-22 15:19:46 +08:00
ModelType newModel = 4;//型号
2024-06-24 18:32:27 +08:00
string showCode = 5;//展示的编号
2024-06-27 13:52:26 +08:00
CjDataItem.PostionType defaultInitialPosition = 6;//默认初始位置
2023-09-08 17:57:19 +08:00
}
2023-09-25 17:34:55 +08:00
/* 断相保护器 */
message PhaseFailureProtector {
graphicData.CommonInfo common = 1;
string code = 2;//编号
}
/* 信号机故障报警仪 */
message SignalFaultAlarm {
graphicData.CommonInfo common = 1;
string code = 2;//编号
}
2023-09-08 17:57:19 +08:00
/* 设备管理的继电器列表 */
message DeviceRelateRelay {
//int32 id = 1;//存储在列表中的id
2023-09-22 17:55:06 +08:00
//string type = 2;//设备类型
2023-09-08 17:57:19 +08:00
string code = 3;//设备编号
2023-09-13 17:26:44 +08:00
//repeated string refRelay = 4;//设备关联的继电器
repeated Combinationtype combinationtypes = 5; //组合类型
2023-09-22 15:19:46 +08:00
graphicData.RelatedRef.DeviceType deviceType = 6;//设备类型
2023-09-13 17:26:44 +08:00
}
2023-09-20 15:31:56 +08:00
message Combinationtype {
2023-09-13 17:26:44 +08:00
string code = 1;
2024-06-27 13:52:26 +08:00
//repeated string oldrefRelays = 2;//设备关联的继电器
2023-12-13 14:35:39 +08:00
repeated uint32 refRelays = 3;//设备关联的继电器
2023-08-25 17:14:44 +08:00
}
2023-09-20 15:31:56 +08:00
message UniqueIdType {
string city = 1;//城市
string lineId = 2;//线路号
string belongsConcentrationStation = 3;//继电器柜图所属集中站
}
2023-10-24 17:03:53 +08:00
/* 采集 */
message CiCj {
int32 dsCount = 1;//数据集位数——对应着excel表行数
repeated CjDataSet cjList = 2;//采集列表二维数据数组长度对应着excel表列数--数据集个数)
}
message CjDataSet {
string name = 1;//对应着excel中的列名如'D1'
repeated CjData bitList = 2;//对应着excel中的一列的数据
}
message CjData {
repeated CjDataItem refRelays=1;//采集的继电器
}
message CjDataItem {
enum PostionType {
Q=0;
H=1;
}
2024-06-27 13:52:26 +08:00
//string oldrelayId = 1;//采集对应的继电器Id
2023-10-24 17:03:53 +08:00
PostionType position = 2;//继电器的位置QH对应着吸合
2023-12-13 14:35:39 +08:00
uint32 relayId = 3;//采集对应的继电器Id
2023-10-24 17:03:53 +08:00
}
2023-10-25 14:36:11 +08:00
/* 驱动 */
message CiQd {
int32 dsCount = 1;//数据集位数——对应着excel表行数
repeated QdDataSet qdList = 2;//驱动列表二维数据数组长度对应着excel表列数--数据集个数)
}
message QdDataSet {
string name = 1;//对应着excel中的列名如'D1'
repeated QdData bitList = 2;//对应着excel中的一列的数据
}
message QdData {
2024-06-27 13:52:26 +08:00
//repeated string oldrefRelays=1;//驱动的继电器Id
2023-12-13 14:35:39 +08:00
repeated uint32 refRelays=2;//驱动的继电器Id
2023-10-25 14:36:11 +08:00
}