Package com.powsybl.ampl.executor
Interface AmplOutputFile
- All Known Implementing Classes:
AbstractMandatoryOutputFile
public interface AmplOutputFile
An additional file to read as output of an Ampl run.
- Author:
- Nicolas PIERRE <[email protected]>
-
Method Summary
Modifier and TypeMethodDescriptionName of the file to readvoid
read
(BufferedReader reader, StringToIntMapper<AmplSubset> networkAmplMapper) Read data from a file though aBufferedReader
.boolean
iftrue
and the file is missing, then ampl executor will throw.
-
Method Details
-
getFileName
String getFileName()Name of the file to read -
throwOnMissingFile
boolean throwOnMissingFile()iftrue
and the file is missing, then ampl executor will throw. -
read
void read(BufferedReader reader, StringToIntMapper<AmplSubset> networkAmplMapper) throws IOException Read data from a file though aBufferedReader
. Will be called if the Ampl solve is successful.- Parameters:
reader
- reader to the file, opened in UTF-8networkAmplMapper
- mapper to convertNetwork
IDs to Ampl IDs and vice versa- Throws:
IOException
-