return values;
}
@Override
public HeatSet importTData(String[] record) {
HeatSet heatSet = this.factory.createHeatSet();
heatSet.setName(record[0]);
heatSet.setSetType(ResultType.valueOf(record[1]));
heatSet.setQualifyingRank(new Integer(record[2]));
int nbHeats = new Integer(record[3]);
String[] heatNames = new String[nbHeats];
for (int i = 0; i < nbHeats; i++) {
heatNames[i] = record[4 + i];
}
heatSet.setHeatNames(heatNames);
int nbSets = record.length - nbHeats - 4;
Pool[] selectedSets = new Pool[nbSets];
if( heatSet.isCourseType() ) {
for (int i = 0; i < selectedSets.length; i++) {
selectedSets[i] = registry.findCourse(record[4 + nbHeats + i]);
}
} else {
for (int i = 0; i < selectedSets.length; i++) {
selectedSets[i] = registry.findCategory(record[4 + nbHeats + i]);
}
}
heatSet.setSelectedPools(selectedSets);
return heatSet;
}