-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
weichslgartner
committed
Jan 18, 2018
1 parent
3469f32
commit 0ef790e
Showing
5 changed files
with
45 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
src/optimization/FirstLeagueManagerSpielProblemWinter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package optimization; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import IO.IOHelper; | ||
|
||
import com.google.inject.Inject; | ||
|
||
public class FirstLeagueManagerSpielProblemWinter implements ManagerSpielProblem { | ||
|
||
private List<Player> players; | ||
private List<Player> excludedPlayers; | ||
private List<Player> includedPlayers; | ||
private List<Player> winterPlayers; | ||
|
||
@Inject | ||
public FirstLeagueManagerSpielProblemWinter() { | ||
players = IOHelper.loadPlayersFromCSV("spieler_ersteliga_winter.csv"); | ||
excludedPlayers = IOHelper.loadPlayersFromCSV("exclusion_ersteliga.csv"); | ||
includedPlayers = IOHelper.loadPlayersFromCSV("inclusion_ersteliga.csv"); | ||
winterPlayers = IOHelper.loadPlayersFromCSV("current_clean.csv"); | ||
|
||
} | ||
|
||
@Override | ||
public Collection<Player> getPlayers() { | ||
return players; | ||
} | ||
|
||
@Override | ||
public Collection<Player> getExcludedPlayers() { | ||
return excludedPlayers; | ||
} | ||
|
||
@Override | ||
public Collection<Player> getIncludedPlayers() { | ||
return includedPlayers; | ||
} | ||
|
||
@Override | ||
public Collection<Player> getWinterPlayers() { | ||
return winterPlayers; | ||
} | ||
|
||
} |