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 manages the nodes and links and performs automated tasks such as updating wireless links between nodes (if these nodes have wireless capabilities).

The JViewer allows you to visualize the topology 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.