if (Main.algorithm.equals(ABCAST_ALGO))
nManag = new ABCASTNetworkManager(peerIndex);
if (Main.algorithm.equals(DOPT_ALGO))
nManag = new DOPTNetworkManager(peerIndex);
if (Main.algorithm.equals(JUPITER_ALGO))
nManag = new JupiterNetworkManager(peerIndex);
/* Start and show the gui */
GUIManager gui = new GUIManager(nManag, peerIndex);
nManag.connectToGUI(gui);
nManag.start();