HelloWorld with JBotSim

The HelloWorld is pretty minimalist. You can compile it together with JBotSim's JAR file as follows:

import jbotsim.Topology;
import jbotsim.ui.JViewer;

public class HelloWorld{
    public static void main(String[] args){
        new JViewer (new Topology());
    }
}    

The Topology is central in JBotSim. It is responsible for managing the nodes and links in the network, and perform automated tasks such as updating wireless links between nodes (if these nodes have wireless capabilities).

The JViewer allows you to visualize the topology in real time and interact with it in several ways. For instance, you can add nodes (left click), delete them (right click), or move them around (drag & drop) with the mouse. Right-clicking on the topology also makes it possible to tune global parameters like communication range or sensing range.