|
|||||||||
| Home >> All >> org >> dma >> ihm >> game >> league >> [ std overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dma.ihm.game.league.std
Class StdPlayoffs

java.lang.Objectorg.dma.ihm.lib.CustomComparator
org.dma.ihm.game.league.helper.LeagueElement
org.dma.ihm.game.league.std.StdPlayoffs
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class StdPlayoffs
- extends org.dma.ihm.game.league.helper.LeagueElement
- implements java.io.Serializable
- extends org.dma.ihm.game.league.helper.LeagueElement
StdPlayoffs Implementation of playoffs. - Creates matches & GameDayEvents and post them in the calendar.
| Field Summary | |
private java.util.Calendar[] |
addGameDates
Array of possible gameDates for additional matches |
private int |
bestOf
Maximum count of matches between two teams |
private int |
competitionsCount
Count of competitions (4 if 8 teams are in playoffs) |
private org.dma.ihm.game.league.helper.PlayoffCompetition[] |
playoffCompetitions
Array of Competitions [teams/2] |
private org.dma.ihm.game.team.Team[] |
teams
Teams of this playoffs |
| Fields inherited from class org.dma.ihm.game.league.helper.LeagueElement |
announced, league, leagueElementGroup, name, rank, SORT_RANK |
| Fields inherited from class org.dma.ihm.lib.CustomComparator |
ascending, sortCriteria |
| Constructor Summary | |
StdPlayoffs(int rank,
java.lang.String name,
org.dma.ihm.game.league.League league,
int bestOf)
Create empty Playoffs |
|
| Method Summary | |
void |
generateCalendarEvents(org.dma.ihm.game.calendar.GameCalendarHelper gameCalendarHelper)
Generate GameDayEvents (and their StopBeforeEvents) for playoff games and make "reservations" for more games if needed |
void |
generateMatches()
Generates schedule for this playoffs |
org.dma.ihm.game.league.helper.LeagueStandings |
getLeagueStandings()
Returns the standings of this playoffs |
org.dma.ihm.game.team.Team[] |
getLosers()
Returns the losers of this playoffs |
org.dma.ihm.game.player.Player[] |
getPlayers()
|
org.dma.ihm.game.league.helper.PlayoffCompetition[] |
getPlayoffCompetitions()
Returns all competitions |
org.dma.ihm.game.team.Team[] |
getTeams()
Returns teams of this leagueElement |
static java.lang.String |
getTitle(int level)
Returns the title of this Playoffs |
org.dma.ihm.game.team.Team[] |
getWinners()
Returns the winners of this playoffs |
private org.dma.ihm.game.team.Team[] |
getWinnersOrLosers(boolean winners)
Returns the winners or losers of this playoffs |
void |
init(org.dma.ihm.game.team.Team[] teams,
org.dma.ihm.game.calendar.GameCalendarHelper gameCalendarHelper)
Init Playoffs |
void |
roundPlayed(int playedRound)
Playoff round is played. |
| Methods inherited from class org.dma.ihm.game.league.helper.LeagueElement |
generateTeamStats, getDescription, getLeague, getLeagueElementGroup, getName, getPlayerStats, getSortValue, getTeamStats, isAnnounced, setAnnounced, setLeagueElementGroup, toString |
| Methods inherited from class org.dma.ihm.lib.CustomComparator |
compareTo, setSortCriteria, setSortOrder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
playoffCompetitions
private org.dma.ihm.game.league.helper.PlayoffCompetition[] playoffCompetitions
- Array of Competitions [teams/2]
addGameDates
private java.util.Calendar[] addGameDates
- Array of possible gameDates for additional matches
bestOf
private int bestOf
- Maximum count of matches between two teams
competitionsCount
private int competitionsCount
- Count of competitions (4 if 8 teams are in playoffs)
teams
private org.dma.ihm.game.team.Team[] teams
- Teams of this playoffs
| Constructor Detail |
StdPlayoffs
public StdPlayoffs(int rank,
java.lang.String name,
org.dma.ihm.game.league.League league,
int bestOf)
- Create empty Playoffs
| Method Detail |
init
public void init(org.dma.ihm.game.team.Team[] teams, org.dma.ihm.game.calendar.GameCalendarHelper gameCalendarHelper)
- Init Playoffs
getTeams
public org.dma.ihm.game.team.Team[] getTeams()
- Returns teams of this leagueElement
getPlayers
public org.dma.ihm.game.player.Player[] getPlayers()
generateMatches
public void generateMatches()
- Generates schedule for this playoffs
generateCalendarEvents
public void generateCalendarEvents(org.dma.ihm.game.calendar.GameCalendarHelper gameCalendarHelper)
- Generate GameDayEvents (and their StopBeforeEvents) for playoff games and
make "reservations" for more games if needed
roundPlayed
public void roundPlayed(int playedRound)
- Playoff round is played. Look if further matches are needed
getWinners
public org.dma.ihm.game.team.Team[] getWinners()
- Returns the winners of this playoffs
getLosers
public org.dma.ihm.game.team.Team[] getLosers()
- Returns the losers of this playoffs
getWinnersOrLosers
private org.dma.ihm.game.team.Team[] getWinnersOrLosers(boolean winners)
- Returns the winners or losers of this playoffs
getTitle
public static java.lang.String getTitle(int level)
- Returns the title of this Playoffs
getPlayoffCompetitions
public org.dma.ihm.game.league.helper.PlayoffCompetition[] getPlayoffCompetitions()
- Returns all competitions
getLeagueStandings
public org.dma.ihm.game.league.helper.LeagueStandings getLeagueStandings()
- Returns the standings of this playoffs
|
|||||||||
| Home >> All >> org >> dma >> ihm >> game >> league >> [ std overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC