[修改]平西府配置文件;
[新增]11号线联锁数据整理(未完)
This commit is contained in:
parent
1b3f130e4e
commit
807bce391c
@ -15,7 +15,7 @@ logging:
|
||||
# 格式化
|
||||
# format: json
|
||||
# 日志文件路径
|
||||
path: /logs/bjrtsts
|
||||
path: /home/joylink/logs/bjrtsts
|
||||
# 日志文件名
|
||||
fileName: bjrtsts.log
|
||||
# 单个日志文件大小,单位mb,超过会自动滚动
|
||||
|
1
third_party/interlock/beijing11/repo.go
vendored
1
third_party/interlock/beijing11/repo.go
vendored
@ -1,6 +1,7 @@
|
||||
package beijing11
|
||||
|
||||
// StationDeviceIndexRepo 联锁站设备索引映射
|
||||
// key为联锁编号,val为uid
|
||||
type StationDeviceIndexRepo struct {
|
||||
StationName string
|
||||
TurnoutMap map[uint32]string
|
||||
|
37
third_party/interlock/beijing11/service.go
vendored
37
third_party/interlock/beijing11/service.go
vendored
@ -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.
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user