/**@author Schleicher Johannes Beispielnummer: 4100 Beispielbeschreibung: Tokenringnetzwerk */ import eprog.*; import Netzwerk.Checkinput; import Netzwerk.Simulation; /** HAUPTKLASSE BEINHALTED MAIN METHOD*/ public class Main extends EprogIO { private static final String ERROR_MSG="FALSCHE EINGABE"; private static final String WRONG_TYPE="?"; public static void main (String[] args) throws EprogException { boolean check=false; Checkinput chk = new Checkinput(); try { check=chk.check(); if(check==true) { Simulation sim = new Simulation(chk.getNodes(),chk.getPacket(),chk.getTime(),chk.getQuery()); sim.startSimulation(); }//if else println(ERROR_MSG); }catch(EprogException e){println(WRONG_TYPE);} }//main }//Main