return (TravelingTournament) solutionBusiness.getSolution();
}
public void resetPanel(Solution solution) {
removeAll();
TravelingTournament travelingTournament = (TravelingTournament) solution;
Map<Day, DayPanel> dayPanelMap = new HashMap<Day, DayPanel>();
for (Day day : travelingTournament.getDayList()) {
TravelingTournamentPanel.DayPanel dayPanel = new DayPanel();
add(dayPanel);
dayPanelMap.put(day, dayPanel);
}
for (Match match : travelingTournament.getMatchList()) {
TravelingTournamentPanel.DayPanel dayPanel = dayPanelMap.get(match.getDay());
dayPanel.addMatch(match);
}
}