Package avrora.core

Examples of avrora.core.LoadableProgram.load()


            if (args.length <= cntr) break;

            String pname = args[cntr++];
            LoadableProgram lp = new LoadableProgram(pname);
            lp.load();

            // create a number of nodes with the same program
            int max = StringUtil.evaluateIntegerLiteral((String)i.next());
            for (int node = 0; node < max; node++) {
                SensorNode n = (SensorNode)createNode(pf, lp);
View Full Code Here


        if ( args.length > 1 )
            Avrora.userError("Simulation error", "Single node simulation accepts only one program");
        Main.checkFilesExist(args);

        LoadableProgram p = new LoadableProgram(args[0]);
        p.load();
        PlatformFactory pf = getPlatform();
        createNode(pf, p);

    }
}
View Full Code Here

            return true;
        }

        LoadableProgram pp = new LoadableProgram(currentFileAllInfo);
        try {
            pp.load();
        } catch ( Exception e ) {
            // TODO: display exception loading file
            throw Avrora.failure(e.toString());
        }
        PlatformFactory pf = Defaults.getPlatform("mica2");
View Full Code Here

      // Testen, ob schon mind. ein Knoten mit diesem Prog existiert
      if (loadableProgMap.containsKey(filename)) {
        lp = (LoadableProgram) loadableProgMap.get(filename);
      } else {
        lp = new LoadableProgram(filename);
        lp.load();
        loadableProgMap.put(filename, lp);
      }

      Simulation.Node n = (Simulation.Node) sim.createNode(pf,lp);
     
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.