public void Init() { m_ModelList = GSMPointAnalysisMock.MockModelList(); RxPowerAndLinkLossModel modelimage = new RxPowerAndLinkLossModel(); modelimage.RxPower = -90; Site site = GSMMock.MockSite(); Transceiver transceiver = new Transceiver(); transceiver.Parent = site; modelimage.Cell = new GSMTRX(); modelimage.Cell.Parent = transceiver; modelimage.Cell.ID = 2; modelimage.DownLinkLoss = 112; modelimage.UpLinkLoss = 112; m_ModelList.Add(modelimage); m_Point = GSMPointAnalysisMock.MockGeoXYPoint(); m_TargetPara = new TargetPara(); m_TargetPara.TargetCIR = 9; m_TargetPara.TargetRxPower = -110; m_TargetPara.TargetThroughput = 12; m_Terminal = new Terminal(); GSMTerminal gsmTerminal = new GSMTerminal(); gsmTerminal.NetType = NetWorkType.GSM; m_Terminal.NetTerminalList.Add(gsmTerminal); m_Service = new UnionCsService(); m_Service.CommonType = CommonServiceType.CSService; //modify by lyt 6.23 GSMService gsmservice = new GSMService(); ((UnionCsService)m_Service).CSServiceDic.Add(NetWorkType.GSM, gsmservice); m_ULDetail = (GSMULDetail)(cellCalc.CalculateUpLinkDetail(m_ModelList, point, m_Service, m_Terminal, m_mobility)); //m_ULDetail = new GSMULDetail(m_ModelList, m_TargetPara, m_Service, m_Terminal); }
public void CalculateDownLinkDetail_Test2() { Service psService = new UnionPsService(); psService.CommonType = CommonServiceType.PSService; GSMService gsmService = new GSMService(); ((UnionPsService)psService).PSServiceDic.Add(NetWorkType.GSM, gsmService); Mobility mobility = new Mobility(); Terminal terminal = new Terminal(); GSMTerminal gsmTerminal = new GSMTerminal(); gsmTerminal.NetType = NetWorkType.GSM; terminal.NetTerminalList.Add(gsmTerminal); IDetail detail = m_GSMCellCalculator.CalculateDownLinkDetail(m_ModelList, m_Point, psService, mobility, terminal); }
public static GSMSimUser MockGsmSimUser() { User trafficUser = new User(); trafficUser.Service = new MockService(); trafficUser.Service.CommonType = CommonServiceType.CSService; GSMSimUser user = new GSMSimUser(trafficUser); GSMSimTRX trx1 = MockGsmSimTrx(); user.BestServer = trx1; user.BestServer.NeTRX.TRXType = TRXType.BCCH; user.BestServer.CellUsers = new List<GSMSimUser>(); GSMService gsmCsService = new GSMService(); UnionCsService csService = new UnionCsService(); csService.CSServiceDic.Add(NetWorkType.GSM, gsmCsService); user.TrafficUser.Service = csService; GSMTerminal gsmTerminal = new GSMTerminal(); gsmTerminal.NetType = NetWorkType.GSM; Terminal terminal = new Terminal(); terminal.Technology = NetWorkType.GSM; terminal.NetTerminalList.Add(gsmTerminal); user.TrafficUser.Terminal =terminal; Site site = MockSite(); Transceiver tran = new Transceiver(); user.BestServer.Parent = tran; user.BestServer.Parent.Parent = site; //Dictionary<GSMTimeSlot, float> dlInterf = new Dictionary<GSMTimeSlot, float>(); //Dictionary<GSMTimeSlot, float> dlcirs = new Dictionary<GSMTimeSlot, float>(); ////Dictionary<GSMTimeSlot, float> preUlTxPower = new Dictionary<GSMTimeSlot, float>(); //for (int i = 0; i < 8; i++) //{ // dlcirs.Add(TSes[i], 15 + i * 2); //} //user.DlCirs = dlcirs; //user.PreULTxPower = preUlTxPower; return user; }
private UnionCsService CreatUnionCsService() { UnionCsService m_UnionCsService = new UnionCsService(); m_UnionCsService.Technology = NetWorkType.GSM; m_UnionCsService.Type = ServiceType.Voice; GSMService gsmService = new GSMService(); gsmService.ReqCIR = 9; m_UnionCsService.CSServiceDic[NetWorkType.GSM] = gsmService; return m_UnionCsService; }
private Service GetGsmService(string name) { GSMService service = new GSMService(); service.Name = name; return service; }
private void InitServiceProperty(Service service) { if (service.CommonType == CommonServiceType.PSService) { this.m_UnionPsService = service as UnionPsService; this.m_GsmService = this.m_UnionPsService.PSServiceDic[NetWorkType.GSM] as GSMService; } else { this.m_CommonServiceType = CommonServiceType.CSService; this.m_UnionCsService = service as UnionCsService; this.m_GsmService = this.m_UnionCsService.CSServiceDic[NetWorkType.GSM] as GSMService; this.m_GsmService.Name = this.m_UnionCsService.Name; } }
private void InitService() { this.m_UnionPsService.Name = this.GenerateName(); this.m_UnionPsService.Technology = NetWorkType.GSM; this.m_UnionPsService.UlActivity = TrafficConstant.SERVICE_ULACTIVITY; this.m_UnionPsService.DlActivity = TrafficConstant.SERVICE_DLACTIVITY; this.m_UnionPsService.UlTxEff = TrafficConstant.SERVICE_ULTXEFF; this.m_UnionPsService.DlTxEff = TrafficConstant.SERVICE_DLTXEFF; this.m_UnionPsService.DlAveThroughputDemand = 0f; this.m_UnionPsService.UlAveThroughputDemand = 0f; this.m_UnionPsService.BodyLoss = TrafficConstant.SERVICE_BODYLOSS; this.m_UnionPsService.Type = ServiceType.Data; this.m_GsmService = new GSMService(); this.m_GsmService.Name = this.m_UnionPsService.Name; this.m_UnionPsService.PSServiceDic.Add(NetWorkType.GSM, this.m_GsmService); }