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


C# Transceiver.getParent方法代码示例

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


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

示例1: 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

示例2: CellInfo

 public CellInfo(Transceiver tranceiver)
 {
     this.Name = tranceiver.Name;
     this.CellID = tranceiver.ID;
     this.PropModels = tranceiver.Cells[0].PropModels;
     this.AntConfiguration = tranceiver.AntConfiguration;
     this.SiteName = tranceiver.Parent.Name;
     this.SiteID = tranceiver.Parent.ID;
     this.SiteAltitude = ((Site) tranceiver.getParent()).Altitude;
     this.X = tranceiver.X;
     this.Y = tranceiver.Y;
     this.DLFrequency = tranceiver.Cells[0].FreqBand.DLFrequency;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:13,代码来源:CellInfo.cs


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