Package com.powsybl.security.converter
Class JsonSecurityAnalysisResultExporter
java.lang.Object
com.powsybl.security.converter.JsonSecurityAnalysisResultExporter
- All Implemented Interfaces:
SecurityAnalysisResultExporter
@AutoService(SecurityAnalysisResultExporter.class)
public class JsonSecurityAnalysisResultExporter
extends Object
implements SecurityAnalysisResultExporter
A SecurityAnalysisResultExporter implementation which export the result in JSON
- Author:
- Mathieu Bague <mathieu.bague at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
export
(SecurityAnalysisResult result, Writer writer) Export a result of a security analysisGet a brief description of this exporterGet the format of this exporterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.security.converter.SecurityAnalysisResultExporter
export
-
Constructor Details
-
JsonSecurityAnalysisResultExporter
public JsonSecurityAnalysisResultExporter()
-
-
Method Details
-
getFormat
Description copied from interface:SecurityAnalysisResultExporter
Get the format of this exporter- Specified by:
getFormat
in interfaceSecurityAnalysisResultExporter
- Returns:
- the format name of this exporter
-
getComment
Description copied from interface:SecurityAnalysisResultExporter
Get a brief description of this exporter- Specified by:
getComment
in interfaceSecurityAnalysisResultExporter
- Returns:
- a brief description of this exporter
-
export
Description copied from interface:SecurityAnalysisResultExporter
Export a result of a security analysis- Specified by:
export
in interfaceSecurityAnalysisResultExporter
- Parameters:
result
- The result of the security analysiswriter
- The writer used for the export
-