Esempio n. 1
0
 public void CopyFrom(TmaEquipment tma)
 {
     this.Name = tma.Name;
     this.NoiseFigure = tma.NoiseFigure;
     this.UlGain = tma.UlGain;
     this.DlLoss = tma.DlLoss;
 }
Esempio n. 2
0
 public static void CalculateTotalLoss(out float txTotalLoss, out float rxTotalLoss, float txFeederLen, float rxFeederLen, float rxJumpLoss_ant, float rxJumpLoss_bs, float txJumpLoss_ant, float txJumpLoss_bs, float txMisc, float rxMisc, TmaEquipment tma, FeederEquipment feeder)
 {
     float num = 0f;
     float num2 = 0f;
     float dlLoss = 0f;
     if (feeder != null)
     {
         num = Convert.ToSingle(feeder.GetFeederLoss((double) txFeederLen));
         num2 = Convert.ToSingle(feeder.GetFeederLoss((double) rxFeederLen));
     }
     if (tma != null)
     {
         dlLoss = tma.DlLoss;
     }
     else
     {
         rxJumpLoss_bs = 0f;
         txJumpLoss_bs = 0f;
     }
     txTotalLoss = (((txMisc + num) + txJumpLoss_ant) + txJumpLoss_bs) + dlLoss;
     rxTotalLoss = ((rxMisc + num2) + rxJumpLoss_ant) + rxJumpLoss_bs;
 }
Esempio n. 3
0
 public TmaEquipObjExtractor(TmaEquipment tmaEquipment)
 {
     this.m_TmaEquip = tmaEquipment;
 }
Esempio n. 4
0
 private void ConvertXLSToTmaEquipment(SubsystemDataImple systemDateImple, XlsTable xlsTmaTable)
 {
     List<TmaEquipment> list = new List<TmaEquipment>();
     for (int i = 0; i < xlsTmaTable.Data.Rows.Count; i++)
     {
         DataRow row = xlsTmaTable.Data.Rows[i];
         try
         {
             TmaEquipment item = new TmaEquipment();
             item.Name = row["Name"].ToString();
             item.NoiseFigure = float.Parse(row["Noise figureTMA (dB)"].ToString());
             item.UlGain = float.Parse(row["Reception gain TMA (dB)"].ToString());
             item.DlLoss = float.Parse(row["Transmission losses TMA (dB)"].ToString());
             list.Add(item);
         }
         catch (Exception exception)
         {
             this.m_Model.EventVierService.WriteLog("Tma Equipment Table's " + (i + 1) + "row import error", Huawei.UNet.Frame.Interface.LogLevel.Warning);
             WriteLog.Logger.Error(exception.StackTrace);
         }
     }
     systemDateImple.TmaEquipment = list;
 }
Esempio n. 5
0
 public void clone(TmaEquipment tma)
 {
     this.m_BackUpTma.CopyFrom(tma);
     this.m_BackUpTma.ID = tma.ID;
 }
Esempio n. 6
0
 public void SetName(TmaEquipment tma)
 {
     this.m_tmaName = tma.Name;
 }