Class TSPTWInstanceImporter
java.lang.Object
es.urjc.etsii.grafo.io.InstanceImporter<TSPTWInstance>
es.urjc.etsii.grafo.tsptw.model.TSPTWInstanceImporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionimportInstance(BufferedReader reader, String suggestedName) Load instance from file.Methods inherited from class InstanceImporter
importInstance
-
Constructor Details
-
TSPTWInstanceImporter
public TSPTWInstanceImporter()
-
-
Method Details
-
importInstance
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:
importInstancein classInstanceImporter<TSPTWInstance>- 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
-