[修改]平西府配置文件;

[新增]11号线联锁数据整理(未完)
This commit is contained in:
thesai 2024-06-13 18:35:17 +08:00
parent 1b3f130e4e
commit 807bce391c
3 changed files with 35 additions and 7 deletions

View File

@ -15,7 +15,7 @@ logging:
# 格式化
# format: json
# 日志文件路径
path: /logs/bjrtsts
path: /home/joylink/logs/bjrtsts
# 日志文件名
fileName: bjrtsts.log
# 单个日志文件大小,单位mb,超过会自动滚动

View File

@ -1,6 +1,7 @@
package beijing11
// StationDeviceIndexRepo 联锁站设备索引映射
// key为联锁编号val为uid
type StationDeviceIndexRepo struct {
StationName string
TurnoutMap map[uint32]string

View File

@ -29,9 +29,20 @@ func init() {
//if data.LianSuoData == nil {
// return
//}
////初始化所有集中站设备映射结构体
////初始化所有集中站设备映射结构体建立车站和集中站的comId映射关系
//station_concentration_map := make(map[uint32]uint32)
//for _, station := range data.Stations {
// if station.ConcentrationStations {
// stationMap[station.StationName] = NewStationDeviceIndexRepo()
// for _, manageStation := range station.ManageStations {
// station_concentration_map[manageStation] = station.Common.Id
// }
// }
//}
////建立站台和集中站的comId映射
//platform_station_map := make(map[uint32]uint32)
//for _, platform := range data.Platforms {
// platform_station_map[platform.Common.Id] = station_concentration_map[platform.RefStationId]
//}
////填充
//stationIdMap := uidStructure.StationIds
@ -39,15 +50,31 @@ func init() {
//turnoutUidMap := uidStructure.TurnoutIds
//turnoutIndexMap := make(map[uint32]uint32)
//for _, turnout := range data.LianSuoData.Switchs {
// turnoutIndexMap[turnout.Id] =
// turnoutIndexMap[turnout.Id] = turnout.Index
//}
//for _, turnout := range data.Turnouts {
// for _, stationCid := range turnout.CentralizedStations {
// stationIdStruct := stationIdMap[stationCid]
// for _, stationComId := range turnout.CentralizedStations {
// stationIdStruct := stationIdMap[stationComId]
// stationDeviceIndexRepo := stationMap[stationIdStruct.Code]
// stationDeviceIndexRepo.TurnoutMap[]
// index := turnoutIndexMap[turnout.Common.Id]
// stationDeviceIndexRepo.TurnoutMap[index] = turnoutUidMap[turnout.Common.Id].Uid
// }
//}
////屏蔽门
//psdUidMap := uidStructure.PsdIds
//psdIndexMap := make(map[uint32]uint32)
//for _, psd := range data.LianSuoData.ScreenDoors {
// psdIndexMap[psd.Id] = psd.Index
//}
//for _, psd := range data.ScreenDoors {
// stationComId := platform_station_map[psd.RefPlatformId]
// stationIdStruct := stationIdMap[stationComId]
// stationDeviceIndexRepo := stationMap[stationIdStruct.Code]
// index := psdIndexMap[psd.Common.Id]
// stationDeviceIndexRepo.PsdMap[index] = psdUidMap[psd.Common.Id].Uid
//}
////紧急停车
//uidStructure.
})
}