本文整理汇总了C#中Transceiver.setParent方法的典型用法代码示例。如果您正苦于以下问题:C# Transceiver.setParent方法的具体用法?C# Transceiver.setParent怎么用?C# Transceiver.setParent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transceiver
的用法示例。
在下文中一共展示了Transceiver.setParent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddCells
private void AddCells(Transceiver tran)
{
IASite site = new Site();
site.X = 1;
site.Y = 1;
tran.setParent(site);
for (int i = 0; i < 3; i++)
{
IACell cell1 = new MockIACell();
tran.addCarrier(cell1);
cell1.setParent(tran, cell1);
}
}
示例2: Init
public void Init()
{
IProject project = new MockProject();
ProjectSingleton.CurrentProject = project;
IGeoProvider Geo = new MockGeoProvider();
ProjectSingleton.CurrentProject.AppContext.RegisterService(Geo);
m_Target = new CalcCellToCellLinkLoss(ProjectSingleton.CurrentProject.AppContext);
m_CellFrom = new MockIACell();
m_CellTo = new MockIACell();
FrequencyBand fromBand = new FrequencyBand();
fromBand.DLFrequency = 900;
m_CellFrom.FreqBand = fromBand;
Transceiver fromParent = new Transceiver();
IASite fromSite = new Site();
fromSite.X = 0;
fromSite.Y = 0;
fromParent.setParent(fromSite);
//List<AntConfig> fromConfigs = new List<AntConfig>();
AntConfig fromConfig1 = new AntConfig();
fromConfig1.OutdoorAntenna = new AntennaEntity();
fromConfig1.AntType = 1;
fromConfig1.Height = 30;
fromConfig1.SectorID = 0;
//fromConfigs.Add(fromConfig1);
fromParent.addAntConfig(fromConfig1);
m_CellFrom.setParent(fromParent, m_CellFrom);
FrequencyBand toBand = new FrequencyBand();
toBand.DLFrequency = 905;
m_CellTo.FreqBand = toBand;
Transceiver toParent = new Transceiver();
IASite toSite = new Site();
toSite.X = 4;
toSite.Y = 3;
toParent.setParent(toSite);
AntConfig toConfig = new AntConfig();
toConfig.OutdoorAntenna = new AntennaEntity();
toConfig.AntType = 1;
toConfig.Height = 25;
toConfig.SectorID = 0;
toParent.addAntConfig(toConfig);
m_CellTo.setParent(toParent, m_CellTo);
}
示例3: Initial
public void Initial()
{
cellCase = new MockCellCase();
context = new Context();
tfMatrix = new TrueFalseMatrix(20,20,10.0,30.0,1,true);
context.Add(ContextKeys.TFMatrix, tfMatrix);
cell = new MockCell();
tran = new Transceiver();
Site site = new Site();
site.X = 10.0f;
site.Y = 30.0f;
tran.setParent(site);
cell.Parent = tran;
tran.addCarrier(cell);
PropModelConfig config = new PropModelConfig();
config.CalcRadius = 10;
cell.PropModels.Add(config);
context.Add(ContextKeys.CurrentCalcCell, cell);
}
示例4: InitCell
private static void InitCell(out IACell cell1, out IACell cell2)
{
cell1 = new MockACell();
cell1.ID = 1;
FrequencyBand Fre1 = new FrequencyBand();
Fre1.DLFrequency = 900;
cell1.FreqBand = Fre1;
Transceiver Trans1 = new Transceiver();
IASite Site1 = new Site();
Site1.X = 0;
Site1.Y = 0;
((Site)Site1).Equipment = new BtsEquipment();
Trans1.setParent(Site1);
AntConfig Ant1 = new AntConfig();
Ant1.OutdoorAntenna = new AntennaEntity();
Ant1.AntType = 1;
Ant1.Height = 25;
Ant1.SectorID = 0;
Ant1.IsMainAnt = true;
Trans1.addAntConfig(Ant1);
cell1.setParent(Trans1, cell1);
cell2 = new MockACell();
cell2.ID = 2;
FrequencyBand Fre2 = new FrequencyBand();
Fre2.DLFrequency = 925;
cell2.FreqBand = Fre2;
Transceiver Trans2 = new Transceiver();
IASite Site2 = new Site();
Site2.X = 10;
Site2.Y = 10;
((Site)Site2).Equipment = new BtsEquipment();
Trans2.setParent(Site2);
AntConfig Ant2 = new AntConfig();
Ant2.OutdoorAntenna = new AntennaEntity();
Ant2.AntType = 1;
Ant2.Height = 25;
Ant2.SectorID = 0;
Ant2.IsMainAnt = true;
Trans2.addAntConfig(Ant2);
cell2.setParent(Trans2, cell2);
}
示例5: GetNeighbourCellsTest
public void GetNeighbourCellsTest()
{
List<ISimCellBase> cells = new List<ISimCellBase>();
Site site1 = new Site();
site1.X = 10;
site1.Y = 10;
Transceiver tranceiver1 = new Transceiver();
tranceiver1.addCarrier(targetCell.Cell);
PropModelConfig pmcfg = new PropModelConfig();
pmcfg.CalcRadius = 1;
targetCell.Cell.PropModels.Add(pmcfg);
targetCell.Cell.setParent(tranceiver1, targetCell.Cell);
tranceiver1.setParent(site1);
tranceiver1.X = site1.X - tranceiver1.DeltaX;
tranceiver1.Y = site1.Y - tranceiver1.DeltaY;
//tranceiver1.Parent.X = site1.X;
//tranceiver1.Parent.Y = site1.Y;
cell.Add(cell1);
Site site2 = new Site();
site2.X = 0;
site2.Y = 0;
Transceiver tranceiver2 = new Transceiver();
tranceiver2.addCarrier(cell1.Cell);
cell1.Cell.setParent(tranceiver2, cell1.Cell);
tranceiver2.setParent(site2);
tranceiver2.X = site2.X - tranceiver2.DeltaX;
tranceiver2.Y = site2.Y - tranceiver2.DeltaY;
//foreach (PropModelConfig pmc in hometran1.PropModels)
//{
// pmc.CalcRadius = 1;
//};
cells = simuRalatedCell.GetNeighbourCells(targetCell, cell, maxInterNum);
// Assert.AreEqual(cells.Count, 1);
}