private void loadLanes() { String filename = this.config.network().getLaneDefinitionsFile(); if (filename != null){ LanesReader reader = new LanesReader(this.scenario); reader.readURL( ConfigGroup.getInputFileURL(this.config.getContext(), filename ) ); } else { log.info("no lanes file set in config, not loading any lanes"); } }
public void testWriter20() { Fixture f = new Fixture(); String testoutput = this.getOutputDirectory() + "testLaneDefinitions2.0out.xml.gz"; log.debug("reading file..."); // read the test file LanesReader reader = new LanesReader( f.scenario); reader.readFile(this.getClassInputDirectory() + FILENAME); // write the test file log.debug("write the test file..."); LanesWriter writerDelegate = new LanesWriter(f.scenario.getLanes()); writerDelegate.write(testoutput); f = new Fixture(); log.debug("and read it again"); reader = new LanesReader( f.scenario); reader.readFile(testoutput); checkContent(f.scenario.getLanes()); }
public void testReader20() { Fixture f = new Fixture(); LanesReader reader = new LanesReader(f.scenario); reader.readFile(this.getClassInputDirectory() + FILENAME); checkContent(f.scenario.getLanes()); }