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 Details

    • getFileName

      String getFileName()
      Name of the file to read
    • throwOnMissingFile

      boolean throwOnMissingFile()
      if true 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 a BufferedReader. Will be called if the Ampl solve is successful.
      Parameters:
      reader - reader to the file, opened in UTF-8
      networkAmplMapper - mapper to convert Network IDs to Ampl IDs and vice versa
      Throws:
      IOException