@Override public void run() { final PopulationWriter writer = new PopulationWriter(s1); try { writer.write(out); } catch (UncheckedIOException e) { // Writer will throw an IOException when pipe is closed from the other side (like "broken pipe" in UNIX) // This is expected. Don't even log anything. // Other exceptions (from the Writer) are not caught // but written to the console. } } }).start();
public final void writeV4(final String filename) { this.handler = new PopulationWriterHandlerImplV4( coordinateTransformation , this.network ); write(filename); }
public static void writePopulation( Population population, String filename ) { new PopulationWriter( population).write( filename ); }
public final void writeV0(final String filename) { this.handler = new PopulationWriterHandlerImplV0( coordinateTransformation , this.network); write(filename); }
public final void writeV5(final String filename) { this.handler = new PopulationWriterHandlerImplV5(coordinateTransformation); write(filename); }
public final void writeV6(final String filename) { this.handler = new PopulationWriterHandlerImplV6(coordinateTransformation); ((PopulationWriterHandlerImplV6) handler).putAttributeConverters( converters ); write(filename); }
ProjectionUtils.putCRS(originalScenario.getPopulation(), INITIAL_CRS); new PopulationWriter(originalScenario.getPopulation()).write(utils.getOutputDirectory()+BASE_FILE); new NetworkWriter(originalScenario.getNetwork()).write(utils.getOutputDirectory()+NET_FILE);