Package com.powsybl.ampl.executor
Interface AmplOutputFile
-
public interface AmplOutputFile
An additional file to read as output of an Ampl run.- Author:
- Nicolas PIERRE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getFileName()
Name of the file to readvoid
read(Path outputPath, StringToIntMapper<AmplSubset> networkAmplMapper)
Consummer of the output file.
-
-
-
Method Detail
-
getFileName
String getFileName()
Name of the file to read
-
read
void read(Path outputPath, StringToIntMapper<AmplSubset> networkAmplMapper) throws IOException
Consummer of the output file. Will be called if the Ampl solve is successful.No check is done on the presence of the file.
- Parameters:
outputPath
- Path representing the outputfilenetworkAmplMapper
- Mapper to convertNetwork
IDs to Ampl IDs and vice versa- Throws:
IOException
-
-