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

java.lang.Objectorg.dma.ihm.lib.CustomComparator
org.dma.ihm.game.league.helper.LeagueElement
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public abstract class LeagueElement
- extends org.dma.ihm.lib.CustomComparator
LeagueElement Base class for all league elements (playoffs, regular season ...)
| Field Summary | |
protected boolean |
announced
Boolean if this element is already announced |
protected org.dma.ihm.game.league.League |
league
Owner of this element (league) |
protected LeagueElementGroup |
leagueElementGroup
LeagueElement group if any |
protected java.lang.String |
name
Name of this element |
protected int |
rank
Rank of this leagueElement |
static int |
SORT_RANK
Sort by rank |
| Fields inherited from class org.dma.ihm.lib.CustomComparator |
ascending, sortCriteria |
| Constructor Summary | |
LeagueElement(int rank,
java.lang.String name,
org.dma.ihm.game.league.League league)
Constructs element with name & owner |
|
| Method Summary | |
void |
generateTeamStats()
Generate TeamStats for each team |
java.lang.String |
getDescription()
Returns complete description of this element (owner, league, name) |
org.dma.ihm.game.league.League |
getLeague()
Returns owner of this element |
LeagueElementGroup |
getLeagueElementGroup()
Returns the leagueElementGroup of this element (null if none) |
abstract LeagueStandings |
getLeagueStandings()
Returns standings of this element |
java.lang.String |
getName()
Returns the name of this element |
abstract org.dma.ihm.game.player.Player[] |
getPlayers()
|
org.dma.ihm.game.player.PlayerStats[] |
getPlayerStats()
|
protected int |
getSortValue()
Returns sort value considering sortCriteria |
abstract org.dma.ihm.game.team.Team[] |
getTeams()
Returns teams of this element |
org.dma.ihm.game.team.TeamStats[] |
getTeamStats()
Gets the teamStats attribute of the LeagueElement object |
boolean |
isAnnounced()
Returns boolean if element is announced |
void |
setAnnounced()
Sets element as announced |
void |
setLeagueElementGroup(LeagueElementGroup leagueElementGroup)
Sets the leagueElementGroup of this leagueElement |
java.lang.String |
toString()
Overrides the toString method with something more usefull |
| 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 |
SORT_RANK
public static final int SORT_RANK
- Sort by rank
- See Also:
- Constant Field Values
league
protected org.dma.ihm.game.league.League league
- Owner of this element (league)
name
protected java.lang.String name
- Name of this element
announced
protected boolean announced
- Boolean if this element is already announced
leagueElementGroup
protected LeagueElementGroup leagueElementGroup
- LeagueElement group if any
rank
protected int rank
- Rank of this leagueElement
| Constructor Detail |
LeagueElement
public LeagueElement(int rank,
java.lang.String name,
org.dma.ihm.game.league.League league)
- Constructs element with name & owner
| Method Detail |
generateTeamStats
public void generateTeamStats()
- Generate TeamStats for each team
setAnnounced
public void setAnnounced()
- Sets element as announced
setLeagueElementGroup
public void setLeagueElementGroup(LeagueElementGroup leagueElementGroup)
- Sets the leagueElementGroup of this leagueElement
getLeagueElementGroup
public LeagueElementGroup getLeagueElementGroup()
- Returns the leagueElementGroup of this element (null if none)
isAnnounced
public boolean isAnnounced()
- Returns boolean if element is announced
getLeague
public org.dma.ihm.game.league.League getLeague()
- Returns owner of this element
getName
public java.lang.String getName()
- Returns the name of this element
getDescription
public java.lang.String getDescription()
- Returns complete description of this element (owner, league, name)
getLeagueStandings
public abstract LeagueStandings getLeagueStandings()
- Returns standings of this element
getTeams
public abstract org.dma.ihm.game.team.Team[] getTeams()
- Returns teams of this element
getPlayers
public abstract org.dma.ihm.game.player.Player[] getPlayers()
getTeamStats
public org.dma.ihm.game.team.TeamStats[] getTeamStats()
- Gets the teamStats attribute of the LeagueElement object
getPlayerStats
public org.dma.ihm.game.player.PlayerStats[] getPlayerStats()
getSortValue
protected int getSortValue()
- Returns sort value considering sortCriteria
toString
public java.lang.String toString()
- Overrides the toString method with something more usefull
|
|||||||||
| Home >> All >> org >> dma >> ihm >> game >> league >> [ helper overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC