public class EntityKMLExporter extends Object implements IEntityExporter
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 |
---|
EntityKMLExporter() |
Modifier and Type | Method and Description |
---|---|
boolean |
export(IEntityContainer enc,
OutputStream fileOutputStream)
Exports the
IEntityContainer in the output stream . |
boolean |
export(IEntity en,
OutputStream fileOutputStream) |
boolean |
export(IOptimizationResult result,
OutputStream fileOutputStream) |
String[] |
getColors() |
String |
getTitel() |
void |
setTitle(String exportTitle)
Sets the input as the
exportTitle . |
public boolean export(IOptimizationResult result, OutputStream fileOutputStream)
public boolean export(IEntityContainer enc, OutputStream fileOutputStream)
IEntityExporter
IEntityContainer
in the output stream
.export
in interface IEntityExporter
export
in interface IJOptExporter<IEntityContainer>
enc
- the iEntitycontainer to be exportedfileOutputStream
- the fileoutputstreampublic boolean export(IEntity en, OutputStream fileOutputStream)
public void setTitle(String exportTitle)
IEntityExporter
exportTitle
.setTitle
in interface IEntityExporter
exportTitle
- the export titlepublic String getTitel()
public String[] getColors()
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.