Package de.hpi.eworld.exporter.sumo

Examples of de.hpi.eworld.exporter.sumo.EWorld2sumo


    System.out.println("Edges: " + edges);
    System.out.println("Nodes: " + nodes);
    System.out.println("Ways: " + ways);
    System.out.println("TrafficLights: " + tls);

    EWorld2sumo ew2s = new EWorld2sumo();
    ew2s.setData(DIR_SUMO_TESTRES, RES_FILE_PREFIX, true /* doNetconvert */,
        EWorldConstants.getNetConvertFile(), "", true /* doDuarouter */,
        EWorldConstants.getDuaRouterFile(), "", true /* doTlsFile */, false, false,
        false, true, new Integer[]{10000}, false);
    ew2s.run();

    model.clearModel();
    model.notifyObservers(new ObserverNotification(NotificationType.startBatchProcess));
    Sumo2ModelDOM s2m = new Sumo2ModelDOM("./resources/sumo_test/original/berlin_test.net.xml", model, true,
        false, "");
View Full Code Here


    for (AreaModel area : areas) {
      modelManager.addModelElement(area);
    }

    // export to sumo
    EWorld2sumo eWorld2sumo = new EWorld2sumo();
    eWorld2sumo.setData(DIRECTORY_SCENARIOS_TEST, FILE_SCENARIOS_TEST_PREFIX, true, EWorldConstants.getNetConvertFile(), "",
        true, EWorldConstants.getDuaRouterFile(), "", false, false, false, true, false, new Integer[] { 10000 }, false);

    eWorld2sumo.addObserver(this);
    eWorld2sumo.run();

    if (testPart == TestPart.EXPORT_SUCCESSFUL) {
      // parse trip file
      testPart = TestPart.START_AND_DESTINATION_PARSING_TRIPS;
      parseTripFile();
View Full Code Here

    for (AreaModel area : areas) {
      modelManager.addModelElement(area);
    }

    // export to sumo
    EWorld2sumo eWorld2sumo = new EWorld2sumo();
    eWorld2sumo.setData(DIRECTORY_SCENARIOS_TEST, FILE_SCENARIOS_TEST_PREFIX, true, EWorldConstants.getNetConvertFile(), "",
        true, EWorldConstants.getDuaRouterFile(), "", false, false, false, true, false, new Integer[] { 10000 }, false);

    eWorld2sumo.addObserver(this);
    eWorld2sumo.run();

    if (testPart == TestPart.EXPORT_SUCCESSFUL) {
      // parse trip file
      testPart = TestPart.WITHOUT_START_PARSING_TRIPS;
      parseTripFile();
View Full Code Here

    for (AreaModel area : areas) {
      modelManager.addModelElement(area);
    }

    // export to sumo
    EWorld2sumo eWorld2sumo = new EWorld2sumo();
    eWorld2sumo.setData(DIRECTORY_SCENARIOS_TEST, FILE_SCENARIOS_TEST_PREFIX, true, EWorldConstants.getNetConvertFile(), "",
        true, EWorldConstants.getDuaRouterFile(), "", false, false, false, true, false, new Integer[] { 10000 }, false);

    eWorld2sumo.addObserver(this);
    eWorld2sumo.run();

    if (testPart == TestPart.EXPORT_SUCCESSFUL) {
      // parse trip file
      testPart = TestPart.WITHOUT_DESTINATION_PARSING_TRIPS;
      parseTripFile();
View Full Code Here

    System.out.println("Loading test data");
    //HashMap<String, Integer> compareLines = initTestData();
    initTestData();

    EWorld2sumo ew2s = new EWorld2sumo();
    ew2s.setData(DIR_SUMO_TESTRES, RES_FILE_PREFIX,
        true /* doNetconvert */,
        EWorldConstants.getNetConvertFile(), "",
        true /* doDuarouter */,
        EWorldConstants.getDuaRouterFile(), "",
        true /* doTlsFile */, false, false, false, true, new Integer[]{10000}, false);
    System.out.println("Performing export");
    System.out.println("Generating edg, evt, poi, nod, net, rou and a cfg file...");
    //TODO: ew2s.exportSuccessful.connect(this, "exportWasSuccessful()");
    ew2s.addObserver(this);
    ew2s.run();
    //check export result
    Assert.assertTrue(this.exportResult);
   
    // check if all target files exist
    System.out.println("Checking result files");
View Full Code Here

TOP

Related Classes of de.hpi.eworld.exporter.sumo.EWorld2sumo

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.