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
-
-
Constructor Summary
Constructors Constructor Description JsonSecurityAnalysisResultExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(SecurityAnalysisResult result, Writer writer)
Export a result of a security analysisString
getComment()
Get a brief description of this exporterString
getFormat()
Get the format of this exporter-
Methods 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
-
-
-
-
Method Detail
-
getFormat
public String 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
public String 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
public void export(SecurityAnalysisResult result, Writer writer)
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
-
-