Package org.contikios.cooja

Examples of org.contikios.cooja.Simulation.startSimulation()


    Cooja.setLookAndFeel();
    Simulation sim = Cooja.quickStartSimulationConfig(new File(executeDir, SIMCONFIG_FILENAME), false, null);
    if (sim != null){
        /* Set simulation speed to maximum and start simulation */
        sim.setSpeedLimit(null);
        sim.startSimulation();
    } else {
        logger.fatal("Cannot load simulation, aborting");
        System.exit(1);
    }
  }
View Full Code Here


    Cooja.setLookAndFeel();
    Simulation sim = Cooja.quickStartSimulationConfig(new File(executeDir, SIMCONFIG_FILENAME), false, null);
    if (sim != null){
        /* Set simulation speed to maximum and start simulation */
        sim.setSpeedLimit(null);
        sim.startSimulation();
    } else {
        logger.fatal("Cannot load simulation, aborting");
        System.exit(1);
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.