Creating a BTS object with the API
How to create an IltBTS object
To create an
IltBTS object and add it to a data source:
Initialize
JViews TGO.
IltSystem.Init() ;
Instantiate one or more antennas.
IltBTSAntenna antenna1 = new IltBTSAntenna("A1",//label
new IltBellcoreObjectState(),//state
0,//beam direction
100,//power
60);//beam width
IltBTSAntenna antenna2 = new IltBTSAntenna("A2",new
IltBellcoreObjectState(),60,50,60);
IltBTSAntenna antenna3 = new IltBTSAntenna("A3",new
IltBellcoreObjectState(),120,80,60);
IltBTSAntenna antenna4 = new IltBTSAntenna("A4",new
IltBellcoreObjectState(),180,20,60);
IltBTSAntenna antenna5 = new IltBTSAntenna("A5",new
IltBellcoreObjectState(),240,70,60);
IltBTSAntenna antenna6 = new IltBTSAntenna("A6",new
IltBellcoreObjectState(),300,50,60);
Instantiate an item of BTS equipment (optional).
IltNetworkElement btsEquipment = new IltNetworkElement("bts
equipment",IltNetworkElement.Type.BTSEquipment,new
IltBellcoreObjectState());
Instantiate the BTS container.
IltBTS bts = new IltBTS("BTS",null,null);
bts.setPosition(new IlpPoint(500,200));
Create a data source for
IltObject instances and define the parent-child relationships.
IltDataSource dataSource = new IltDefaultDataSource();
dataSource.setParent(btsEquipment,bts);
dataSource.setParent(antenna1,bts);
dataSource.setParent(antenna2,bts);
dataSource.setParent(antenna3,bts);
dataSource.setParent(antenna4,bts);
dataSource.setParent(antenna5,bts);
dataSource.setParent(antenna6,bts);
Add the BTS to the data source.
dataSource.addObject(bts);
dataSource.addObject(btsEquipment);
dataSource.addObject(antenna1);
dataSource.addObject(antenna2);
dataSource.addObject(antenna3);
dataSource.addObject(antenna4);
dataSource.addObject(antenna5);
dataSource.addObject(antenna6);
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.