Beispiel #1
0
 public bool ValidateObj(string oriTranceiverName, Transceiver tranceiver, List<string> excludeTranceiverName)
 {
     this.m_OldCellName = oriTranceiverName;
     short tranceiverId = this.GetTranceiverId(oriTranceiverName);
     string name = tranceiver.Name;
     short validatedID = 0;
     IExtractor ex = new CellObjExtractor(tranceiver);
     UserDefineExtractor extractor2 = new UserDefineExtractor(tranceiver.ExtDefines);
     this.m_CellDesc = new TransceiverDesc(this.m_Model, new Transceiver(), excludeTranceiverName);
     UserDefineDesc desc = new UserDefineDesc(this.m_Model.UserItemsColl.CellExcDefList, new List<ExtDefKeyValue>());
     bool flag = this.Validate(ref this.m_Info, this.m_CellDesc, ex, tranceiverId) && this.Validate(ref this.m_Info, desc, extractor2, validatedID);
     this.m_SectorValidator.CellName = name;
     flag = flag && this.m_SectorValidator.ValidateObjectWithOutCell(oriTranceiverName, this.GetSectorConfig(tranceiver));
     tranceiver.CopyFrom(this.m_CellDesc.GetModel());
     tranceiver.ExtDefines = desc.GetModel();
     tranceiver.AntConfiguration.Add(this.m_SectorValidator.GetAntConfig(tranceiver));
     return flag;
 }
Beispiel #2
0
 public bool ValidateObject(string oriSiteName, Site site, List<string> excludeName)
 {
     this.m_OldCellName = oriSiteName;
     short siteId = this.GetSiteId(oriSiteName);
     short validatedID = 0;
     this.ParseBL(site);
     this.m_SiteDesc = new SiteDesc(this.m_Model, new Site(), this.m_Model.GeoObserver, excludeName);
     IExtractor ex = new SiteObjExtractor(site);
     bool flag = this.Validate(ref this.m_Info, this.m_SiteDesc, ex, siteId);
     UserDefineExtractor extractor2 = new UserDefineExtractor(site.ExtDefines);
     return (flag && this.Validate(ref this.m_Info, this.m_UserDesc, extractor2, validatedID));
 }