Package se.sics.cooja.plugins

Examples of se.sics.cooja.plugins.ScriptRunner


          desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
          GUI gui = new GUI(desktop);

          if (scriptFile != null && configFile != null) {
            /* Load and start script plugin (no-GUI version) */
            ScriptRunner scriptPlugin =
              (ScriptRunner) gui.startPlugin(ScriptRunner.class, gui, null, null);

            /* Activate test */
            scriptPlugin.activateTest(configFile, scriptFile, logFile);
          }
        }
      });

    } else if (args.length > 0 && args[0].startsWith("-applet")) {
View Full Code Here


       * We will manually start a test editor from here. */
      if (!hasEditor) {
        File scriptFile = new File(config.substring(0, config.length()-4) + ".js");
        if (scriptFile.exists()) {
          logger.info("Detected old simulation test, starting test editor manually from: " + scriptFile);
          ScriptRunner plugin = (ScriptRunner) gui.tryStartPlugin(ScriptRunner.class, gui, sim, null);
          if (plugin == null) {
            System.exit(1);
          }
          plugin.updateScript(scriptFile);
          try {
            plugin.setScriptActive(true);
          } catch (Exception e) {
            logger.fatal("Error: " + e.getMessage(), e);
            System.exit(1);
          }
          sim.setSpeedLimit(null);
View Full Code Here

TOP

Related Classes of se.sics.cooja.plugins.ScriptRunner

Copyright © 2018 www.massapicom. 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.