Class __RNAME__InstanceImporter

java.lang.Object
es.urjc.etsii.grafo.io.InstanceImporter<__RNAME__Instance>
es.urjc.etsii.grafo.__RNAME__.model.__RNAME__InstanceImporter

public class __RNAME__InstanceImporter extends InstanceImporter<__RNAME__Instance>
  • Constructor Details

    • __RNAME__InstanceImporter

      public __RNAME__InstanceImporter()
  • Method Details

    • importInstance

      public __RNAME__Instance importInstance(BufferedReader reader, String suggestedName) throws IOException
      Load instance from file. This method is called by the framework when a new instance is being loaded. Note that instance load time is never considered in the total execution time.
      Specified by:
      importInstance in class InstanceImporter<__RNAME__Instance>
      Parameters:
      reader - Input buffer, managed by the framework.
      suggestedName - Suggested filename for the instance, can be ignored. By default, the suggested filename is built by removing the path and extension info. For example, for the path "instances/TSP/TSP-1.txt", the suggestedName would be "TSP-1"
      Returns:
      immutable instance
      Throws:
      IOException - If an error is encountered while the instance is being parsed