Concurrent Programming with Java
Lab Manual, Version 1.0, F. Astha Ekadiyanto, 2002.

[Contents] [Next] [Previous]

Lab 2: Building Application


How to construct the topology using BlueJ

First of all, run BlueJ and load the project you have just extracted from the Lab1.zip file.You should have a result like below.

Constructing the topology using BlueJ is an example of how to use BlueJ to test a Java Class code. Once you have managed to compile your java Classes successfully, you are able to test all the classes and how they will operate without even have to construct the application. This is very useful when building classes to be able to test objects immediately after declaration.

Create Msc Object

We will use the top down approach, that is to construct the top level hierarchy first, then down to the lower level hierarchy of the mobile network topology. To create the Msc object, simply right click on the Msc class and select the Msc() constructor.

Enter the instance name of the Msc object for BlueJ to refer to.

 

[Contents] [Next] [Previous]