public PerformanceDataSet getPerformanceData() {
List<PerformanceTuple> performanceData = new ArrayList<>();
if (!dirFile.isDirectory()) {
return new PerformanceDataSet(performanceData, maximisePerformance);
}
SimSystem.report(Level.INFO, "Main directory for file data import: " + dirFile.getAbsolutePath());
List<File> importableFiles = getEligibleFiles(dirFile);
Collections.sort(importableFiles, new CompareFilesByName());
for (File file : importableFiles) {
performanceData.addAll(readProblemFile(file, getModelProps(file)));
}
SimSystem.report(Level.INFO, "Size of performance data: " + performanceData.size()
+ " tuples from " + importableFiles.size() + " files.");
return new PerformanceDataSet(performanceData, maximisePerformance);
}