Package jmt.engine.simDispatcher

Examples of jmt.engine.simDispatcher.Dispatcher_jMVAschema


*/
public class TestDispatcher {

  public static void test_dispatcher_jMVAschema(String path, boolean delete) {

    final Dispatcher_jMVAschema disp = new Dispatcher_jMVAschema(path);
    disp.setDeleteIntermediateFiles(delete);

    // Remove next line to initialize with random seed
    disp.setSimulationSeed(1200000);

    /* Decomment this to add a timer to stop simulation
    new Thread() {
            public void run() {
                try{
                    // Set maximum simulation time in milliseconds (here 15 seconds)
                    sleep(15000);
                }
                catch (InterruptedException ex) {
                    //Do nothing
                }
                disp.abortAllMeasures();
            }
    }.start();    */

    disp.solveModel();
  }
 
View Full Code Here


  }

  private static void test2() {

    //Dispatcher disp = new Dispatcher("D://randomModel_open_1.xml");
    Dispatcher_jMVAschema disp = new Dispatcher_jMVAschema("D://JMTtest//randomModel_open_1.xml");

    Thread3 t3 = new Thread3(disp);
    Thread4 t4 = new Thread4(disp);
    t3.start();
    t4.start();
View Full Code Here

  }

  private static void test3() {

    //Dispatcher disp = new Dispatcher("D://randomModel_open_1.xml");
    Dispatcher_jMVAschema disp = new Dispatcher_jMVAschema("D://JMTtest//randomModel_open_1.xml");

    Thread3 t3 = new Thread3(disp);
    Thread5 t5 = new Thread5(disp);
    t3.start();
    t5.start();
View Full Code Here

   * @param model the xml File containing the model description
   * @return true if the model has been correctly solved
   */
  private boolean solve_jsim(File model) {

    Dispatcher_jMVAschema solver = new Dispatcher_jMVAschema(model);
    solver.setDeleteIntermediateFiles(deleteIntermediateSimFiles);
    if (!automaticSeed) {
      solver.setSimulationSeed(userDefinedSeed);
    }
    boolean success = solver.solveModel();
    return success;
  }
View Full Code Here

TOP

Related Classes of jmt.engine.simDispatcher.Dispatcher_jMVAschema

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.