/// <summary> /// 更新控制器数据 无则增加 /// </summary> /// <param name="ifo">控制器数据</param> public void UpdateSluRegulator(SluRegulator ifo) { if (ifo.SluId != this.RtuId) { return; } var r = new SluRegulator(ifo); if (DicRtuParaSluRegulator.ContainsKey(r.CtrlId)) { DicRtuParaSluRegulator[r.CtrlId] = r; } else { DicRtuParaSluRegulator.Add(r.CtrlId, r); } if (DicSluRegulatorPhyToLogic.ContainsKey(ifo.CtrlPhyId)) { DicSluRegulatorPhyToLogic[ifo.CtrlPhyId] = ifo.CtrlId; } else { DicSluRegulatorPhyToLogic.Add(ifo.CtrlPhyId, ifo.CtrlId); } }
/// <summary> /// 增加开关量 有则更新 /// </summary> /// <param name="ifo">开关量数据</param> public void AddSluRegulator(SluRegulator ifo) { UpdateSluRegulator(ifo); }