Package com.powsybl.psse.model.pf.io
Class PowerFlowRawxDataAllVersions
java.lang.Object
com.powsybl.psse.model.pf.io.PowerFlowRawxDataAllVersions
- All Implemented Interfaces:
PowerFlowData
- Direct Known Subclasses:
PowerFlowRawxData35
PSSE RAWX data common to all versions
Should be able to read the case identification to obtain the version (case identification "rev" attribute)
- Author:
- Luma Zamarreño <zamarrenolm at aia.es>, José Antonio Marqués <marquesja at aia.es>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValidFile
(ReadOnlyDataSource dataSource, String ext) protected com.fasterxml.jackson.databind.JsonNode
networkNode
(InputStream stream) read
(ReadOnlyDataSource dataSource, String ext, Context context) readVersion
(ReadOnlyDataSource dataSource, String ext) void
write
(PssePowerFlowModel model, Context context, DataSource dataSource)
-
Constructor Details
-
PowerFlowRawxDataAllVersions
public PowerFlowRawxDataAllVersions()
-
-
Method Details
-
isValidFile
- Specified by:
isValidFile
in interfacePowerFlowData
- Throws:
IOException
-
readVersion
- Specified by:
readVersion
in interfacePowerFlowData
- Throws:
IOException
-
read
public PssePowerFlowModel read(ReadOnlyDataSource dataSource, String ext, Context context) throws IOException - Specified by:
read
in interfacePowerFlowData
- Throws:
IOException
-
write
public void write(PssePowerFlowModel model, Context context, DataSource dataSource) throws IOException - Specified by:
write
in interfacePowerFlowData
- Throws:
IOException
-
networkNode
protected com.fasterxml.jackson.databind.JsonNode networkNode(InputStream stream) throws IOException - Throws:
IOException
-