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
public class PowerFlowRawxDataAllVersions extends Object implements PowerFlowData
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
, José Antonio Marqués
-
-
Constructor Summary
Constructors Constructor Description PowerFlowRawxDataAllVersions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValidFile(ReadOnlyDataSource dataSource, String ext)
protected com.fasterxml.jackson.databind.JsonNode
networkNode(InputStream stream)
PssePowerFlowModel
read(ReadOnlyDataSource dataSource, String ext, Context context)
PsseVersion
readVersion(ReadOnlyDataSource dataSource, String ext)
void
write(PssePowerFlowModel model, Context context, DataSource dataSource)
-
-
-
Method Detail
-
isValidFile
public boolean isValidFile(ReadOnlyDataSource dataSource, String ext) throws IOException
- Specified by:
isValidFile
in interfacePowerFlowData
- Throws:
IOException
-
readVersion
public PsseVersion readVersion(ReadOnlyDataSource dataSource, String ext) throws IOException
- 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
-
-