Class ACInstanceImporter

java.lang.Object
es.urjc.etsii.grafo.io.InstanceImporter<ACInstance>
es.urjc.etsii.grafo.autoconfigtests.model.ACInstanceImporter

public class ACInstanceImporter extends InstanceImporter<ACInstance>
Load a test instance used to validate the autoconfig behaviour, instance data consists on several lines with random words
  • Constructor Details

    • ACInstanceImporter

      public ACInstanceImporter()
  • Method Details

    • importInstance

      public ACInstance importInstance(BufferedReader reader, String filename) throws IOException
      Description copied from class: InstanceImporter
      Create an instance from the format used by the problem. After this method finishes executing, the Instance object MUST BE IMMUTABLE.
      Specified by:
      importInstance in class InstanceImporter<ACInstance>
      Parameters:
      reader - Input buffer, managed by the framework
      filename - Filename on disk
      Returns:
      The instance object that represents this object
      Throws:
      IOException - If an error is encountered while the instance is being parsed