de.hattrickorganizer.model.matchlist
Class Spielplan

java.lang.Object
  extended by de.hattrickorganizer.model.matchlist.Spielplan
All Implemented Interfaces:
ISpielplan

public class Spielplan
extends java.lang.Object
implements ISpielplan

DOCUMENT ME!

Author:
thomas.werth

Field Summary
protected  java.sql.Timestamp m_clFetchDate
          TODO Missing Parameter Documentation
protected  LigaTabelle m_clTabelle
          TODO Missing Parameter Documentation
protected  Tabellenverlauf m_clVerlauf
          TODO Missing Parameter Documentation
protected  int m_iLigaId
          TODO Missing Parameter Documentation
protected  int m_iSaison
          TODO Missing Parameter Documentation
protected  java.lang.String m_sLigaName
          TODO Missing Parameter Documentation
protected  java.util.Vector m_vEintraege
          TODO Missing Parameter Documentation
 
Constructor Summary
Spielplan()
          Creates a new instance of Spielplan
 
Method Summary
 void addEintrag(Paarung spiel)
          TODO Missing Method Documentation
protected  void berechneAltePositionen(LigaTabelle tabelle)
          berechnet die Positionierung vom SPieltag zuvor
protected  LigaTabelle berechneTabelle(int maxSpieltag)
          berechnet die Tabelle anhand des Spielplans
protected  LigaTabellenEintrag berechneTabellenEintrag(IPaarung[] spiele, int teamId, java.lang.String name, int maxSpieltag)
          Erstellt einen TabellenEintrag aus den Spielen eines Vereins
 boolean equals(java.lang.Object o)
          TODO Missing Method Documentation
protected  Tabellenverlauf generateTabellenVerlauf()
          erzeugt den Tabellenverlauf
 java.util.Vector getEintraege()
          TODO Missing Method Documentation
 java.sql.Timestamp getFetchDate()
          Getter for property m_clFetchDate.
 int getLigaId()
          Getter for property m_iLigaId.
 java.lang.String getLigaName()
          Getter for property m_sLigaName.
 java.util.Vector getPaarungenBySpieltag(int spieltag)
          liefert die Spiele zu einem Spieltag
 IPaarung[] getPaarungenByTeamId(int id)
          liefert die Spiele eines bestimmten Teams, sortiert nach Spieltagen
 int getSaison()
          Getter for property m_iSaison.
 ILigaTabelle getTabelle()
           
 ITabellenverlauf getVerlauf()
          Getter for property m_clVerlauf.
 void setFetchDate(java.sql.Timestamp m_clFetchDate)
          Setter for property m_clFetchDate.
 void setLigaId(int m_iLigaId)
          Setter for property m_iLigaId.
 void setLigaName(java.lang.String m_sLigaName)
          Setter for property m_sLigaName.
 void setSaison(int m_iSaison)
          Setter for property m_iSaison.
 java.lang.String toString()
          TODO Missing Method Documentation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_clTabelle

protected LigaTabelle m_clTabelle
TODO Missing Parameter Documentation


m_sLigaName

protected java.lang.String m_sLigaName
TODO Missing Parameter Documentation


m_clVerlauf

protected Tabellenverlauf m_clVerlauf
TODO Missing Parameter Documentation


m_clFetchDate

protected java.sql.Timestamp m_clFetchDate
TODO Missing Parameter Documentation


m_vEintraege

protected java.util.Vector m_vEintraege
TODO Missing Parameter Documentation


m_iLigaId

protected int m_iLigaId
TODO Missing Parameter Documentation


m_iSaison

protected int m_iSaison
TODO Missing Parameter Documentation

Constructor Detail

Spielplan

public Spielplan()
Creates a new instance of Spielplan

Method Detail

getEintraege

public final java.util.Vector getEintraege()
TODO Missing Method Documentation

Returns:
TODO Missing Return Method Documentation

setFetchDate

public final void setFetchDate(java.sql.Timestamp m_clFetchDate)
Setter for property m_clFetchDate.

Parameters:
m_clFetchDate - New value of property m_clFetchDate.

getFetchDate

public final java.sql.Timestamp getFetchDate()
Getter for property m_clFetchDate.

Returns:
Value of property m_clFetchDate.

setLigaId

public final void setLigaId(int m_iLigaId)
Setter for property m_iLigaId.

Parameters:
m_iLigaId - New value of property m_iLigaId.

getLigaId

public final int getLigaId()
Getter for property m_iLigaId.

Specified by:
getLigaId in interface ISpielplan
Returns:
Value of property m_iLigaId.

setLigaName

public final void setLigaName(java.lang.String m_sLigaName)
Setter for property m_sLigaName.

Parameters:
m_sLigaName - New value of property m_sLigaName.

getLigaName

public final java.lang.String getLigaName()
Getter for property m_sLigaName.

Specified by:
getLigaName in interface ISpielplan
Returns:
Value of property m_sLigaName.

getPaarungenBySpieltag

public final java.util.Vector getPaarungenBySpieltag(int spieltag)
liefert die Spiele zu einem Spieltag

Specified by:
getPaarungenBySpieltag in interface ISpielplan
Parameters:
spieltag - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

getPaarungenByTeamId

public final IPaarung[] getPaarungenByTeamId(int id)
liefert die Spiele eines bestimmten Teams, sortiert nach Spieltagen

Specified by:
getPaarungenByTeamId in interface ISpielplan
Parameters:
id - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

setSaison

public final void setSaison(int m_iSaison)
Setter for property m_iSaison.

Parameters:
m_iSaison - New value of property m_iSaison.

getSaison

public final int getSaison()
Getter for property m_iSaison.

Specified by:
getSaison in interface ISpielplan
Returns:
Value of property m_iSaison.

getTabelle

public final ILigaTabelle getTabelle()
Specified by:
getTabelle in interface ISpielplan

getVerlauf

public final ITabellenverlauf getVerlauf()
Getter for property m_clVerlauf.

Specified by:
getVerlauf in interface ISpielplan
Returns:
Value of property m_clVerlauf.

addEintrag

public final void addEintrag(Paarung spiel)
TODO Missing Method Documentation

Parameters:
spiel - TODO Missing Method Parameter Documentation

equals

public final boolean equals(java.lang.Object o)
TODO Missing Method Documentation

Overrides:
equals in class java.lang.Object
Parameters:
o - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

toString

public final java.lang.String toString()
TODO Missing Method Documentation

Overrides:
toString in class java.lang.Object
Returns:
TODO Missing Return Method Documentation

berechneAltePositionen

protected final void berechneAltePositionen(LigaTabelle tabelle)
berechnet die Positionierung vom SPieltag zuvor

Parameters:
tabelle - TODO Missing Constructuor Parameter Documentation

berechneTabelle

protected final LigaTabelle berechneTabelle(int maxSpieltag)
berechnet die Tabelle anhand des Spielplans

Parameters:
maxSpieltag - gibt an bis zu welchem Spieltag gerechnet werden soll (inklusive)
Returns:
TODO Missing Return Method Documentation

berechneTabellenEintrag

protected final LigaTabellenEintrag berechneTabellenEintrag(IPaarung[] spiele,
                                                            int teamId,
                                                            java.lang.String name,
                                                            int maxSpieltag)
Erstellt einen TabellenEintrag aus den Spielen eines Vereins

Parameters:
spiele - TODO Missing Constructuor Parameter Documentation
teamId - TODO Missing Constructuor Parameter Documentation
name - TODO Missing Constructuor Parameter Documentation
maxSpieltag - gibt an bis zu welchem Spieltag die Tabelle berechnet werden soll ( 1-14 )
Returns:
TODO Missing Return Method Documentation

generateTabellenVerlauf

protected final Tabellenverlauf generateTabellenVerlauf()
erzeugt den Tabellenverlauf

Returns:
TODO Missing Return Method Documentation