当前位置: 首页>>代码示例>>C#>>正文


C# Transceiver类代码示例

本文整理汇总了C#中Transceiver的典型用法代码示例。如果您正苦于以下问题:C# Transceiver类的具体用法?C# Transceiver怎么用?C# Transceiver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Transceiver类属于命名空间,在下文中一共展示了Transceiver类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Init

 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);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:31,代码来源:GSMULDetailFixture.cs

示例2: GetIAcell

 public Transceiver GetIAcell()
 {
     Transceiver transceiver = new Transceiver();
     LTECell item = new LTECell();
     transceiver.Cells.Add(item);
     transceiver.Name = this.Name;
     transceiver.ID = this.CellID;
     transceiver.Cells[0].PropModels = this.PropModels;
     transceiver.AntConfiguration = this.AntConfiguration;
     if (transceiver.Parent == null)
     {
         transceiver.Parent = new Site();
     }
     transceiver.Parent.Name = this.SiteName;
     transceiver.Parent.ID = this.SiteID;
     ((Site) transceiver.getParent()).Altitude = this.SiteAltitude;
     transceiver.DeltaX = this.X;
     transceiver.DeltaY = this.Y;
     if (transceiver.Cells.Count == 0)
     {
         IACell cell2 = new LTECell();
         transceiver.Cells.Add(cell2);
         transceiver.Cells[0].FreqBand = new FrequencyBand();
     }
     transceiver.Cells[0].FreqBand = new FrequencyBand();
     transceiver.Cells[0].FreqBand.DLFrequency = this.DLFrequency;
     return transceiver;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:28,代码来源:CellInfo.cs

示例3: MyTestInitialize

        public void MyTestInitialize()
        {
            m_Name = "DLDCHRSCP";
            m_Group = MockGroupAndCell.MockTDPredicGroup();
            m_Cell = MockGroupAndCell.CreateTDCell();
            m_transList = new List<Transceiver>();
            m_Transceiver = new Transceiver();
            m_tfMatrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true);
            m_index = 0;
            LinkLossAssist.Init();
            m_Case = new DLDCHSINRCase();
            m_projectMgr = ServiceHelper.Lookup<IProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            GenerateMatrix();
            
            m_BestServerIDMatrix[m_index] = (short)(m_Cell.ID);
            m_Case.Name = m_Name;
            m_CellList = new List<IACell>();
            m_Context = new Context();
            m_CellList.Add(m_Cell);
            //GenerateCellList();
            m_Transceiver.Cells = m_CellList;
            m_transList.Add(m_Transceiver);
            AddToContext();

        }
开发者ID:xiaoyj,项目名称:Space,代码行数:25,代码来源:DLDCHSINRTest.cs

示例4: process

 public override void process(ClientMessage message, Transceiver connection)
 {
     if(message.type == "newUser")
     {
         this.RequestKey(message.Get("username"));
     }
 }
开发者ID:spox,项目名称:irisim,代码行数:7,代码来源:Cryptor.cs

示例5: FindCoverPoints

 private void FindCoverPoints(ValueMatrixShort onepolygonvalues, Transceiver cell, List<GeoXYPoint> points, LTECellCalcInfo onecellinfo)
 {
     if (onecellinfo.Tanceiver == cell)
     {
         this.FindCellAllCalcPoints(onepolygonvalues, cell, points, onecellinfo);
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:LTECoverageInfo.cs

示例6: CreatPoint

 private GeoXYPoint CreatPoint(Transceiver tranceiver)
 {
     GeoXYPoint pointCell = new GeoXYPoint();
     pointCell.X = tranceiver.X;
     pointCell.Y = tranceiver.Y;
     return pointCell;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:CalculatorAssistant.cs

示例7: CreatTDCarrier

       //构造TDCarrier
       public static IACell CreatTDCarrier()
       {
           IACell cell = new TDSCDMACarrier();
           Transceiver trans = new Transceiver();
           Site site = new Site();

           site.X = 100;
           site.Y = 100;
           site.Equipment = new BtsEquipment();
           site.Equipment.NoiseFigure = 2;

           trans.Name = "Trans1";
           trans.Parent = site;
           trans.Cells.Add(cell);

           cell.Name = "TDCell1";
           cell.Parent = trans;
           cell.FreqBand = new FrequencyBand();
           cell.FreqBand.DLFrequency = 2010f;
           cell.FreqBand.ULFrequency = 2010f;

           AntConfig antConfig = new AntConfig();
           antConfig.OutdoorAntenna = new Huawei.UNet.Antenna.Entity.AntennaEntity();
           cell.Parent.AntConfiguration.Add(antConfig);
           cell.Parent.AntConfiguration[0].IsMainAnt = true;
           cell.Parent.AntConfiguration[0].DlTotalLoss = 3;
           cell.Parent.AntConfiguration[0].OutdoorAntenna.Gain = 18;
           cell.ID = 2;

           PropModelConfig propModelConfig = new PropModelConfig();
           propModelConfig.CalcRadius = 4000;
           propModelConfig.CalcResolution = 50;
           trans.Cells[0].PropModels.Add(propModelConfig);
           return cell;
       }
开发者ID:xiaoyj,项目名称:Space,代码行数:36,代码来源:MockTDSimCell.cs

示例8: TranceiverCalcInfo

 public TranceiverCalcInfo(Transceiver tranceiver, Point startPoint, Point endPoint, IACell maxRSCell)
 {
     m_StartPoint = startPoint;
     m_EndPoint = endPoint;
     m_Tranceiver = tranceiver;
     m_Cell = maxRSCell;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:TranceiverCalcInfo.cs

示例9: CreatUMTSSimCell

        public static UMTSSimCell CreatUMTSSimCell(double x,double y)
        {
            IACell cell = new UMTSCell();
            Transceiver trans = new Transceiver();
            Site site = new Site();
            List<UMTSSimUser> serverdUserList = new List<UMTSSimUser>();
            serverdUserList.Add(MockUser.CreatUMTSPSUser());
            site.X = x;
            site.Y = y;
            site.Equipment = new BtsEquipment();
            site.Equipment.NoiseFigure = 3;
            cell.Parent = trans;
            trans.Parent = site;

            UMTSSimCell simCell = new UMTSSimCell(cell);
            simCell.NECell.PilotPower = 33f;
            simCell.NECell.FreqBand.BandWidth = 3f;
            simCell.DlFrequency = 2100f;
            simCell.UlFrequency = 2000f;
            simCell.GSMInterfCells = InitialGSMInterfCell();
            simCell.TDInterfCells = InitialTDInterfCell();
            simCell.ServerdHSUPAUser = serverdUserList;
            simCell.ULCENum = 15;
            simCell.TotalNoiserThreshold = 10;
            return simCell;
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:26,代码来源:MockCell.cs

示例10: initial

        public void initial()
        {
            m_user1 = MockTDSimUser.CreatTDSimUser_CSDL();
            m_user2 = MockTDSimUser.CreatTDSimUser_CSUL();
            m_user3 = MockTDSimUser.CreatTDSimUser_PSDL();
            m_user4 = MockTDSimUser.CreatTDSimUser_PSUL();
            m_user5 = MockTDSimUser.CreatTDSimUser_PSDL();
            m_UnAccessedUsers = new List<TDSimUser>();

            m_Cell1 = MockTDSimCell.CreatTDSimCell();
            m_Cell1.CarrType = CarrierTypeOfTD.R4;
            m_Cells=new List<TDSimCell>();
            m_Cells.Add(m_Cell1);
            m_Tran = new TDSimTran(m_Cells);

            initialUser(m_user1, m_Cell1, m_Tran);
            initialUser(m_user2, m_Cell1, m_Tran);
            initialUser(m_user3, m_Cell1, m_Tran);
            initialUser(m_user4, m_Cell1, m_Tran);

            m_Carrier1 = new TDSCDMACarrier();
            m_Transceiver = new Transceiver();
            
            m_R4_CellAssign = new R4_CellAssign();
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:25,代码来源:R4_CellAssign_Fixture.cs

示例11: Init

        public void Init()
        {           
            matrix = new TrueFalseMatrix(10, 10, 0.0, 10.0, 1, true);
            cell = new MockCell();
            termianl = new Terminal();
            //termianl.Gain = 3f;
            CsService = new UnionCsService();
            CsService.BodyLoss = 5f;
            PsService = new UnionPsService();
            PsService.BodyLoss = 5f;

            AntConfig1 = new AntConfig();
            AntConfig1.IsMainAnt = true;
            AntConfig1.DlTotalLoss = 6f;
            AntConfig1.IsUserInput = false;
            AntConfig1.Feeder = new FeederEquipment();

            tran = new Transceiver();
            site = new Site();
            site.Equipment = new BtsEquipment();
            site.Equipment.NoiseFigure = 4f;
            site.X = 1;
            site.Y = 1;

            tran.Parent = site;
            tran.addAntConfig(AntConfig1);

            cell.Parent = tran;

            LinkLossAssist.Init();
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:31,代码来源:CoLinkLossCalcTest.cs

示例12: CalculateNoiseFigureOfBts

 private double CalculateNoiseFigureOfBts(Transceiver cell)
 {
     double linearValue = 0.0;
     double num2 = 0.0;
     double num3 = 0.0;
     double num4 = 0.0;
     foreach (AntConfig config in cell.AntConfiguration)
     {
         double num7;
         double num8;
         TmaEquipment tma = config.Tma;
         double num5 = UnitTrans.dBto((double)config.UlTotalLoss);
         float txPowerRatio = config.TxPowerRatio;
         if (tma != null)
         {
             num7 = UnitTrans.dBto((double)tma.NoiseFigure);
             num8 = UnitTrans.dBto((double)tma.UlGain);
         }
         else
         {
             num7 = 1.0;
             num8 = 1.0;
         }
         double num9 = num7 * num5;
         num2 = num8 / num5;
         num3 += ((txPowerRatio + ((num9 - 1.0) / ((double)txPowerRatio))) * txPowerRatio) * num2;
         num4 += txPowerRatio * num2;
     }
     Site site = cell.Parent as Site;
     linearValue = num3 / num4;
     linearValue += (UnitTrans.dBto((double)site.Equipment.NoiseFigure) - 1.0) / num4;
     return UnitTrans.todB(linearValue);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:33,代码来源:PredictionDataManager.cs

示例13: CreateCellList

        public static List<IACell> CreateCellList(List<IACell> cellList, double[] x, double[] y)
        {
            for (int i = 0; i < cellList.Count; i++)
            {
                Transceiver trans = new Transceiver();
                Site site = new Site();
                site.X = x[i];
                site.Y = y[i];   
                site.Equipment = new BtsEquipment();
                site.Equipment.NoiseFigure = 2;

                trans.Name = "Trans" + i.ToString();
                trans.Parent = site;
                trans.Cells.Add(cellList[i]);

                cellList[i].Parent = trans;
                cellList[i].MaxPower = 39;

                AntConfig antConfig = new AntConfig();
                cellList[i].Parent.AntConfiguration.Add(antConfig);
                cellList[i].Parent.AntConfiguration[0].IsMainAnt = true;
                cellList[i].Parent.AntConfiguration[0].DlTotalLoss = i+1;
                antConfig.OutdoorAntenna = new AntennaEntity();
                cellList[i].ID = (short)i;

                PropModelConfig propModelConfig = new PropModelConfig();
                propModelConfig.CalcRadius = 4000;
                propModelConfig.CalcResolution = 50;
                trans.Cells[0].PropModels.Add(propModelConfig);
                
            }
            return cellList;   
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:33,代码来源:MockCellList.cs

示例14: GetAntConfig

 public AntConfig GetAntConfig(Transceiver trans)
 {
     AntConfig config = (this.m_AntConfigDesc == null) ? new AntConfig() : this.m_AntConfigDesc.GetModel();
     config.Parent = trans;
     AntConfigDesc.ConvertCoordinate(config, this.m_GeoInfo);
     return config;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:AntConfigValidator.cs

示例15: CreateCell

        public static IACell CreateCell(IACell cell)
        {
            Transceiver trans = new Transceiver();
            Site site = new Site();

            site.X = 100;
            site.Y = 100;
            site.Equipment = new BtsEquipment();
            site.Equipment.NoiseFigure = 2;

            trans.Name = "Trans1";
            trans.Parent = site;
            trans.Cells.Add(cell);
                        
            cell.Parent = trans;
            cell.MaxPower = 39;

            AntConfig antConfig = new AntConfig();
            cell.Parent.AntConfiguration.Add(antConfig);
            cell.Parent.AntConfiguration[0].IsMainAnt = true;
            cell.Parent.AntConfiguration[0].DlTotalLoss = 2;
            antConfig.OutdoorAntenna = new AntennaEntity();
            cell.ID = 1;

            PropModelConfig propModelConfig = new PropModelConfig();
            propModelConfig.CalcRadius = 4000;
            propModelConfig.CalcResolution = 50;
            trans.Cells[0].PropModels.Add(propModelConfig);
            return cell;
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:30,代码来源:MockCell.cs


注:本文中的Transceiver类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。