Sample showing a network component with BTS elements

Article ID: 2135
Last updated: 28 May, 2018
Article ID: 2135
Last updated: 28 May, 2018
Revision: 3
Views: 742
Posted: 14 Jan, 2004
by Dean J.
Updated: 28 May, 2018
by Gargani A.


How to create a network component with BTS element?


This sample shows a network containing one IltBTS equipment with three IltBTSAntenna objects attached.

import ilog.cpl.IlpNetwork;
import ilog.cpl.datasource.IlpDataSource;
import ilog.cpl.graphic.IlpPoint;
import ilog.tgo.datasource.IltDefaultDataSource;
import ilog.tgo.model.IltBTS;
import ilog.tgo.model.IltBTSAntenna;
import ilog.tgo.model.IltBellcoreObjectState;
import ilog.tgo.model.IltNetworkElement;
import javax.swing.JFrame;
public class Main {
// This sample uses JViews TGO features. When deploying an
// application that includes this code, you need to be in possession
// of an IBM ILOG JViews TGO Deployment license.
// Comment the following line of code if using JViews TGO 8.6 or earlier.
public static void main(String[] args) {
IlpNetwork network = new IlpNetwork();
createFrame("JTGO BTS Antenna Sample", network);
static IlpDataSource createDataSource() {
// Create the objects to be put in the data source
IltBTS bts = new IltBTS("myBTS");
bts.setPosition(new IlpPoint(100, 100));
IltNetworkElement btsEquipment =
new IltNetworkElement("BTS Equipment", IltNetworkElement.Type.BTSEquipment,
new IltBellcoreObjectState());
IltBTSAntenna antenna1 = new IltBTSAntenna("A1", new IltBellcoreObjectState(), 0, 100, 60);
IltBTSAntenna antenna2 = new IltBTSAntenna("A2", new IltBellcoreObjectState(), 120, 50, 60);
IltBTSAntenna antenna3 = new IltBTSAntenna("A3", new IltBellcoreObjectState(), 240, 80, 60);

// Create the data source and add the objects
IltDefaultDataSource dataSource = new IltDefaultDataSource();
dataSource.setParent(btsEquipment, bts);
dataSource.setParent(antenna1, bts);
dataSource.setParent(antenna2, bts);
dataSource.setParent(antenna3, bts);
return dataSource;

static JFrame createFrame(String title, IlpNetwork network) {
JFrame frame = new JFrame(title);
frame.setLocation(50, 50);
frame.setSize(400, 400);
return frame;

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2135
Last updated: 28 May, 2018
Revision: 3
Views: 742
Posted: 14 Jan, 2004 by Dean J.
Updated: 28 May, 2018 by Gargani A.
Attached files

Also listed in

Others in this category