public class SolutionKMLExporter extends Object
Example:
public void onAsynchronousOptimizationResult(IOptimizationResult rapoptResult) {
System.out.println(rapoptResult);
IEntityExporter kmlExporter = new EntityKMLExporter();
kmlExporter.setTitle("" + this.getClass().getSimpleName());
try {
kmlExporter.export(
rapoptResult.getContainer(),
new FileOutputStream(new File("./" + this.getClass().getSimpleName() + ".kml")));
} catch (FileNotFoundException e) {
//
e.printStackTrace();
}
}
Constructor and Description |
---|
SolutionKMLExporter() |
Modifier and Type | Method and Description |
---|---|
boolean |
export(com.dna.jopt.config.types.Solution sol,
OutputStream fileOutputStream) |
public boolean export(com.dna.jopt.config.types.Solution sol, OutputStream fileOutputStream)
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.