public void SetMatrixInCase(int blockIndex) { this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; this.m_InterferenceForUL = this.m_DataManager.InterferenceForUL.MatrixBlockArr[blockIndex].IntMatrix; this.m_Tranceiverlist = this.m_DataManager.BlockTransceiverExCollArr[blockIndex].TransceiverExColl.GetTranceiverList(); //this.m_Tranceiverlist.Sort(); }
public void InitialProperty(int blockIndex) { this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; this.m_BestServerRSRP = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix; this.m_DLBestServerLinkLoss = this.m_DataManager.DLBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix; this.m_NeedCalRsrq = this.m_DataManager.NeedCalRSRQ; }
public void SetMatrixInCase(int blockIndex) { this.m_BestServerCellID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; this.m_DLSameInterfere = this.m_DataManager.DLSameInterfere.MatrixBlockArr[blockIndex].IntMatrix; this.m_Tranceiverlist = this.m_DataManager.BlockCellInfoArr[blockIndex].CalCellColl.GetTranceiverList(); this.m_Tranceiverlist.Sort(); }
public void SetMatrixInCase(int index) { m_LTEBestServerID = m_DataManager.LTEBestServerID.MatrixBlockArr[index].ShortMatrix; //this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[index].ShortMatrix; this.m_InterfereForRPDCCH = this.m_DataManager.InterfereForRPDCCH.MatrixBlockArr[index].IntMatrix; }
public void InitialProperty(int blockIndex) { this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; this.m_BestServerRSRP = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix; this.m_ULBestServerLinkLoss = this.m_DataManager.ULBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix; this.m_DLInterfMatrix = this.m_DataManager.InterferenceForUL.MatrixBlockArr[blockIndex].IntMatrix; }
public void InitialProperty(int blockIndex) { this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; this.m_BestServerRSRPMatrix = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix; this.m_ULBestServerLinkLoss = this.m_DataManager.ULBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix; this.m_ULTxSensitivity = this.m_DataManager.Group.ULTxSensitivity; this.m_ULMaxSensitivity = this.m_DataManager.Group.ULMaxSensitivity; }
public void InitialProperty(int blockIndex) { this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; if (this.m_RsShifting) { this.m_ShiftingInterfOfDLPBCHSinr = this.m_DataManager.ShfitingInterfOfDlPBCHSinr.MatrixBlockArr[blockIndex].IntMatrix; } }
public static ValueMatrixInt GenerateValueMatrixIntNoInitial(TrueFalseMatrix tfMatrix, string filepath, string relativePath) { ValueMatrixInt num = new ValueMatrixInt(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_IntMatrix = num; num.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); num.SetValue(-2147483648, -2147483648, -2147483648); return num; }
private void CreateContext() { context = new Context(); matrix = GenerateTestInterMatrix.GetInterMatrix(); context.Add(ContextKeys.UmtsHSDPAPeakThrough, matrix); List<IACell> cellList = new List<IACell>(); MockUMTSCellList.InitCellList(cellList); context.Add(ContextKeys.CellList, cellList); }
public static ValueMatrixInt GenerateValueMatrixInt(TrueFalseMatrix tfMatrix, string filepath, string relativePath) { ValueMatrixInt vmi = new ValueMatrixInt(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_IntMatrix = vmi; vmi.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); vmi.SetValue(-2147483648, -2147483648, -2147483648); InitialValueMatrix(tfMatrix, -2147483648, -2147483648, vmi); return vmi; }
private static void InitialValueMatrix(TrueFalseMatrix tfMatrix, int notCalcValue, int defaultValue, ValueMatrixInt vmi) { bool flag = false; for (int i = 0; i < vmi.TotalCount; i++) { flag = tfMatrix[i]; vmi[i] = notCalcValue; } }
public static ValueMatrixInt GenerateValueMatrixIntNoInitial(TrueFalseMatrix tfMatrix, string filepath, PredictionStudyType st, string relativePath) { short num; short num2; short num3; DefaultValueDefine.GetShortResult(st, out num3, out num2, out num); ValueMatrixInt num4 = new ValueMatrixInt(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_IntMatrix = num4; num4.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); num4.SetValue(num, num2, num3); return num4; }
public static ValueMatrixInt GetInterMatrix() { TrueFalseMatrix tfMatrix = GenerateTestTFMatrix.GetTFMatrix(); string relativePath = MockMatrixPath.GetPath(); string filePath = MockMatrixPath.GetAppTestPath() + relativePath; ValueMatrixInt matrix = new ValueMatrixInt(filePath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); Random random=new Random(); for (int i = 0; i < matrix.TotalCount;i++ ) { matrix[i] = random.Next(); } return matrix; }
public static void GarbageCollect() { if (m_ShortMatrix != null) { m_ShortMatrix.Close(true); m_ShortMatrix = null; } if (m_IntMatrix != null) { m_IntMatrix.Close(true); m_IntMatrix = null; } }
private void CalActualRxIntf(int index) { if (!this.m_UsedRxPowerOfBandWidthKey.Equals(this.m_RxPowerOfBandWidthKey)) { this.m_ActualRxValueMartrix = this.m_ActualPowerOfBandWidth[this.m_RxPowerOfBandWidthKey]; } if (this.m_ActualRxValueMartrix[index] == -32768) { this.m_ActualRxValueMartrix[index] = Convert.ToInt32((double) (this.m_ActualRxPower * PredictionConst.TIMES_TO_BIG_INT)); } else { this.m_ActualRxPower = UnitTrans.AdddBm((double) (((float) this.m_ActualRxValueMartrix[index]) * PredictionConst.TIMES_TO_FLOAT), this.m_ActualRxPower); this.m_ActualRxValueMartrix[index] = Convert.ToInt32((double) (this.m_ActualRxPower * PredictionConst.TIMES_TO_BIG_INT)); } }
public void SetMatrixInCase(int blockIndex) { this.m_BestServerRSRP = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix; this.m_TFMatrix = this.m_DataManager.TFMatrix.MatrixBlockArr[blockIndex].TFMatrix; this.m_BestServerCarrierID = this.m_DataManager.BestServerCarrierID.MatrixBlockArr[blockIndex].ShortMatrix; this.m_BestServerCellID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; if (this.m_NeedCalSecondMaxRsrp) { this.m_SecondMaxRSRP = this.m_DataManager.SecondMaxRSRP.MatrixBlockArr[blockIndex].ShortMatrix; } if (this.m_NeedCalSymbolRSRP) { this.m_SymbolRSRP = this.m_DataManager.SymbolRSRP.MatrixBlockArr[blockIndex].ShortMatrix; } if (this.m_NeedCalActualRxIntf) { this.m_ActualPowerOfBandWidth = this.m_DataManager.ActualRxPowerOfBandWidth[blockIndex]; } if (this.m_NeedCalMaxRxIntf) { this.m_MaxPowerOfBandWidth = this.m_DataManager.MaxRxPowerOfBandWidth[blockIndex]; } if (this.m_NeedCalActualRxIntf || this.m_NeedCalMaxRxIntf) { this.m_DlBestServerLinkLoss = this.m_DataManager.DLBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix; } }
private static void InitialValueMatrix(TrueFalseMatrix tfMatrix, short notCalcValue, short defaultValue, ValueMatrixInt vmi) { bool isFirstValue = false; for (int i = 0; i < vmi.TotalCount; i++) { isFirstValue = tfMatrix[i]; vmi[i] = GetValue(isFirstValue, defaultValue, notCalcValue); } }
public void SetMatrixInCase(int blockIndex) { this.m_BestServerCellID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; this.m_ShiftingInterfOfDLRSSinr = this.m_DataManager.ShfitingInterfOfDlRsSinr.MatrixBlockArr[blockIndex].IntMatrix; }
private void ReleaseAndDeleteValueMatrixInt(ValueMatrixInt vms) { if (vms != null) { if (vms.MatrixBlockArr != null) { foreach (ValueMatrixBlock block in vms.MatrixBlockArr) { if (block.IntMatrix != null) { if (block.IntMatrix.IsOpen) { block.IntMatrix.Close(true); } block.IntMatrix = null; } } } if (vms.IsOpen) { vms.Close(true); } vms = null; } }
private void InitialOneAnalysePEAKCaseValueMatrix(string polygonName, PredictionStudy study) { switch (study.StudyType) { case PredictionStudyType.DL_Application_Peak_Throughput: this.m_DLAPPLICATIONPEAKValue = this.CreateIntBlockMatrix(study, polygonName); break; case PredictionStudyType.UL_Application_Peak_Throughput: this.m_ULAPPLICATIONPEAKValue = this.CreateIntBlockMatrix(study, polygonName); break; case PredictionStudyType.DL_MAC_Peak_Throughput: this.m_DLPEAKValue = this.CreateIntBlockMatrix(study, polygonName); break; case PredictionStudyType.UL_MAC_Peak_Throughput: this.m_ULPEAKValue = this.CreateIntBlockMatrix(study, polygonName); break; } }
public void IniInterfereForPDCCH(TrueFalseMatrix tfMatrix) { this.m_InterfereForPDCCH = new ValueMatrixInt(this.m_Path + "_m_InterfereForPDCCH.tmp", this.m_RelativePath + "_m_InterfereForPDCCH.tmp", tfMatrix.RowCount, tfMatrix.ColCount); this.m_InterfereForPDCCH.CreateMatrixBlock(tfMatrix.MatrixBlockArr.Count); foreach (ValueMatrixBlock block in this.m_InterfereForPDCCH.MatrixBlockArr) { block.CreateIntMatrix(string.Concat(new object[] { this.m_Path, "_m_InterfereForPDCCH_", block.BlockIndex, ".tmp" }), string.Concat(new object[] { this.m_RelativePath, "_m_InterfereForPDCCH_", block.BlockIndex, ".tmp" })); for (int i = 0; i < block.IntMatrix.TotalCount; i++) { block.IntMatrix[i] = -2147483648; } } }
public void IniDlBestserverLinkLoss(TrueFalseMatrix tfMatrix) { this.m_DLBestServerLinkLoss = new ValueMatrixInt(this.m_Path + "_DLLinkLoss.tmp", this.m_RelativePath + "_DLLinkLoss.tmp", tfMatrix.RowCount, tfMatrix.ColCount); this.m_DLBestServerLinkLoss.CreateMatrixBlock(tfMatrix.MatrixBlockArr.Count); foreach (ValueMatrixBlock block in this.m_DLBestServerLinkLoss.MatrixBlockArr) { block.CreateIntMatrix(string.Concat(new object[] { this.m_Path, "_DLLinkLoss_", block.BlockIndex, ".tmp" }), string.Concat(new object[] { this.m_RelativePath, "_DLLinkLoss_", block.BlockIndex, ".tmp" })); } }
private ValueMatrixInt CreateIntBlockMatrix(PredictionStudy study, string polygonName) { ValueMatrixInt num = ValueMatrixHandle.GenerateValueMatrixIntNoInitial(this.m_TrueFalseMatrix, this.GetFilePath(polygonName, study.StudyType.ToString()), study.StudyType, this.m_StudyRelativePath); this.m_IntMatrixCreating = num; num.CreateMatrixBlock(this.m_TrueFalseMatrix.MatrixBlockArr.Count); int num2 = 0; foreach (ValueMatrixBlock block in num.MatrixBlockArr) { block.IntMatrix = ValueMatrixHandle.GenerateValueMatrixInt(this.m_TrueFalseMatrix.MatrixBlockArr[num2].TFMatrix, this.GetFilePath(polygonName, study.StudyType.ToString(), this.m_TrueFalseMatrix.MatrixBlockArr[num2].BlockIndex), study.StudyType, this.m_StudyRelativePath); num2++; } return num; }
private void AddDataIntoContext(Context context) { string absolutePath = ResultFilePath.CreateFilePath(m_ProjectManager.CurrentProjectLossPath, m_tdPreGroup.Name, m_tdPreGroup.Region.Name, ContextKeys.HSUPAPeakThroughPut); string relativePath = ResultFilePath.CreateRelativePath(m_tdPreGroup.Name, m_tdPreGroup.Region.Name, ContextKeys.HSUPAPeakThroughPut); m_HSUPAPeakThroughPutMatrix = new ValueMatrixInt(absolutePath, relativePath, m_tFMatrix.RowCount, m_tFMatrix.ColCount); m_HSUPAPeakThroughPutMatrix.SetParam(m_tFMatrix.NorthWestX, m_tFMatrix.NorthWestY, m_tFMatrix.Resolution); m_HSUPAPeakThroughPutMatrix.SetValue(int.MinValue, int.MinValue, int.MinValue); // ShortResultStruct srs = ShortResultStruct.DefaultMin; //m_HSUPAPeakThroughPutMatrix = ValueMatrixAssist.GenerateByTrueFalseMatrix(m_tFMatrix, absolutePath, relativePath, srs); context.Add(ContextKeys.HSUPAPeakThroughPut, m_HSUPAPeakThroughPutMatrix); }
private void SaveIntMatrix(ValueMatrixInt intMatrix) { int num = 0; foreach (ValueMatrixBlock block in intMatrix.MatrixBlockArr) { num = 0; for (int i = block.StartIndex; i <= block.EndIndex; i++) { intMatrix[i] = block.IntMatrix[num]; num++; } block.IntMatrix.Close(true); } }
public void InitialProperty(int blockIndex) { //this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix; m_BestServerCarrierID = m_DataManager.LTEBestServerID.MatrixBlockArr[blockIndex].ShortMatrix; this.m_BestServerRSRP = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix; //this.m_ULBestServerLinkLoss = this.m_DataManager.ULBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix; this.m_ULBestServerLinkLoss = this.m_DataManager.ULLinkLoss.MatrixBlockArr[blockIndex].IntMatrix; if (this.m_NeedPenetrationLoss) { this.m_PenetrationLoss = this.m_DataManager.PenetrationLoss.MatrixBlockArr[blockIndex].ShortMatrix; } this.m_DLInterfMatrix = this.m_DataManager.InterferenceForRUL.MatrixBlockArr[blockIndex].IntMatrix; }
public void InitialValueMatrix(TrueFalseMatrix tfMatrix, GeoPolygonRegion region) { this.m_TrueFalseMatrix = tfMatrix; string name = region.Name; this.InitialBasicCasesValueMatrix(name); this.InitialAnalyseCasesValueMatrix(name); this.InitialClutterIDValueMatrix(); this.m_ShortMatrixCreating = null; this.m_IntMatrixCreating = null; }
public void SetMatrixInCase(int index) { this.m_UlRPUCCHLevel = this.m_DataManager.UL_RPUCCH_Level.MatrixBlockArr[index].ShortMatrix; this.m_ULLinkLoss = this.m_DataManager.ULLinkLoss.MatrixBlockArr[index].IntMatrix; this.m_LTEBestServerID = this.m_DataManager.LTEBestServerID.MatrixBlockArr[index].ShortMatrix; }
private void GenerateValueMatrixForGeo(List<MaxMinValue> maxMinValueList, ValueMatrixInt valueMatrix, ValueMatrixShort throughputValueMatrix) { int num = -32768; for (int i = 0; i < valueMatrix.TotalCount; i++) { throughputValueMatrix[i] = -32768; num = valueMatrix[i]; if (num != -32768) { for (short j = 0; j < maxMinValueList.Count; j = (short) (j + 1)) { MaxMinValue value2 = maxMinValueList[j]; if ((num <= value2.max) && (num > value2.min)) { throughputValueMatrix[i] = j; } } } } }
private void ReleaseAndDeleteRxPowerOfBandDic() { if (this.m_ActualRxPowerOfFreqBandDic != null) { foreach (Dictionary<string, ValueMatrixInt> dictionary in this.m_ActualRxPowerOfFreqBandDic.Values) { foreach (ValueMatrixInt num in dictionary.Values) { this.ReleaseAndDeleteValueMatrixInt(num); } } this.m_ActualRxPowerOfFreqBandDic = null; } if (this.m_MaxRxPowerOfFreqBandDic != null) { foreach (Dictionary<string, ValueMatrixInt> dictionary in this.m_MaxRxPowerOfFreqBandDic.Values) { foreach (ValueMatrixInt num in dictionary.Values) { this.ReleaseAndDeleteValueMatrixInt(num); } } this.m_MaxRxPowerOfFreqBandDic = null; } if (this.m_DLBestServerLinkLoss != null) { this.ReleaseAndDeleteValueMatrixInt(this.m_DLBestServerLinkLoss); } this.m_DLBestServerLinkLoss = null; }