public static bool GetBasicCaseResult(PredictionStudyType st, out short defaultValue, out short notcalcValue, out short invalidValue) { switch (st) { case PredictionStudyType.DL_RSSI: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.Symbol_RSRP: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.DL_RSRP: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.Best_Server: defaultValue = 0x7fff; notcalcValue = 0x7fff; invalidValue = 0x7fff; return true; } defaultValue = 0; notcalcValue = 0; invalidValue = 0; return false; }
public static ValueMatrixShort GenerateValueMatrixShortNoInitial(TrueFalseMatrix tfMatrix, string filepath, PredictionStudyType st, string relativePath) { short num; short num2; short num3; DefaultValueDefine.GetShortResult(st, out num3, out num2, out num); ValueMatrixShort @short = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_ShortMatrix = @short; @short.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); @short.SetValue(num, num2, num3); return @short; }
public static ValueMatrixInt GenerateValueMatrixInt(TrueFalseMatrix tfMatrix, string filepath, PredictionStudyType st, string relativePath) { short num; short num2; short num3; DefaultValueDefine.GetShortResult(st, out num3, out num2, out num); ValueMatrixInt vmi = new ValueMatrixInt(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_IntMatrix = vmi; vmi.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); vmi.SetValue(num, num2, num3); InitialValueMatrix(tfMatrix, num2, num3, vmi); return vmi; }
public static bool GetPeakResult(PredictionStudyType st, out short defaultValue, out short notcalcValue, out short invalidValue) { switch (st) { case PredictionStudyType.DL_Application_Peak_Throughput: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.UL_Application_Peak_Throughput: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.DL_MAC_Peak_Throughput: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.UL_MAC_Peak_Throughput: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; } defaultValue = 0; notcalcValue = 0; invalidValue = 0; return false; }
public static void GetShortResult(PredictionStudyType st, out short defaultValue, out short notcalcValue, out short invalidValue) { if ((!GetBasicCaseResult(st, out defaultValue, out notcalcValue, out invalidValue) && !GetMCSResult(st, out defaultValue, out notcalcValue, out invalidValue)) && !GetPeakResult(st, out defaultValue, out notcalcValue, out invalidValue)) { GetOtherResult(st, ref defaultValue, ref notcalcValue, ref invalidValue); } }
private static void GetOtherResultPrat_4(PredictionStudyType st, ref short defaultValue, ref short notcalcValue, ref short invalidValue) { PredictionStudyType type = st; if (type == PredictionStudyType.PRACH_Level) { defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; } else if (type == PredictionStudyType.PRACH_SINR) { defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; } else { defaultValue = 0; notcalcValue = 0; invalidValue = 0; } }
private static void GetOtherResultPrat_3(PredictionStudyType st, ref short defaultValue, ref short notcalcValue, ref short invalidValue) { switch (st) { case PredictionStudyType.UL_RSRP: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return; case PredictionStudyType.PUCCH_Level: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return; case PredictionStudyType.PUCCH_SINR: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return; case PredictionStudyType.PCFICH_SINR: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; break; case PredictionStudyType.DL_PHICH_Level: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return; } }
private static void GetOtherResultPrat_1(PredictionStudyType st, ref short defaultValue, ref short notcalcValue, ref short invalidValue) { switch (st) { case PredictionStudyType.Handover_Area: defaultValue = -32768; notcalcValue = 0x7fff; invalidValue = -32768; break; case PredictionStudyType.DL_SCH_RP: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; break; case PredictionStudyType.SCH_SINR: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; break; case PredictionStudyType.DL_RS_SINR: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; break; case PredictionStudyType.Geometry: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; break; } }
private static void GetOtherResult(PredictionStudyType st, ref short defaultValue, ref short notcalcValue, ref short invalidValue) { GetOtherResultPrat_1(st, ref defaultValue, ref notcalcValue, ref invalidValue); GetOtherResultPrat_2(st, ref defaultValue, ref notcalcValue, ref invalidValue); GetOtherResultPrat_3(st, ref defaultValue, ref notcalcValue, ref invalidValue); GetOtherResultPrat_4(st, ref defaultValue, ref notcalcValue, ref invalidValue); }
public static bool GetMCSResult(PredictionStudyType st, out short defaultValue, out short notcalcValue, out short invalidValue) { switch (st) { case PredictionStudyType.PDSCH_MCS: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.PUSCH_MCS: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.PDSCH_SINR: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; case PredictionStudyType.PUSCH_SINR: defaultValue = -32768; notcalcValue = -32768; invalidValue = -32768; return true; } defaultValue = 0; notcalcValue = 0; invalidValue = 0; return false; }