本文整理汇总了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;
}
示例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;
}