de.hattrickorganizer.model
Class TrainingPerPlayer

java.lang.Object
  extended by de.hattrickorganizer.model.TrainingPerPlayer
All Implemented Interfaces:
ITrainingPerPlayer

public class TrainingPerPlayer
extends java.lang.Object
implements ITrainingPerPlayer

DOCUMENT ME!

Author:

Constructor Summary
TrainingPerPlayer()
          Creates a new TrainingPerPlayer object.
TrainingPerPlayer(ISpieler player)
          Creates a new TrainingPerPlayer object initialized with a specific player
 
Method Summary
 void addValues(ITrainingPerPlayer values)
          add sub values of another ITrainingPerPlayer instance to this instance
 double getFL()
          Getter for property FL.
 double getKO()
          TODO Missing Method Documentation
 double getPS()
          Getter for property PS.
 double getSA()
          Getter for property SA.
 double getSkillValue(int skillType)
          Returns the training (sub)skill for a specific skill type
 ISpieler getSpieler()
          Getter for property spieler.
 double getST()
          Getter for property ST.
 java.util.Date getTimestamp()
           
 ITrainingPoint getTrainPoint()
          get the training point for this instance
 double getTS()
          Getter for property TS.
 double getTW()
          Getter for property TW.
 double getVE()
          Getter for property VE.
 void setFL(double FL)
          Setter for property FL.
 void setKO(double d)
          TODO Missing Method Documentation
 void setPS(double PS)
          Setter for property PS.
 void setSA(double SA)
          Setter for property SA.
 void setSpieler(ISpieler spieler)
          Setter for property spieler.
 void setST(double ST)
          Setter for property ST.
 void setTimestamp(java.util.Date timestamp)
          Set the timestamp if not null, calculate sub increase for this training date only
 void setTrainPoint(ITrainingPoint trainPoint)
          set the training point for this instance and calculate the sub skills for the player using the training week from this training point
 void setTS(double TS)
          Setter for property TS.
 void setTW(double TW)
          Setter for property TW.
 void setVE(double VE)
          Setter for property VE.
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrainingPerPlayer

public TrainingPerPlayer()
Creates a new TrainingPerPlayer object.


TrainingPerPlayer

public TrainingPerPlayer(ISpieler player)
Creates a new TrainingPerPlayer object initialized with a specific player

Method Detail

setFL

public final void setFL(double FL)
Setter for property FL.

Parameters:
FL - New value of property FL.

getFL

public final double getFL()
Getter for property FL.

Specified by:
getFL in interface ITrainingPerPlayer
Returns:
Value of property FL.

setKO

public final void setKO(double d)
TODO Missing Method Documentation

Parameters:
d - TODO Missing Method Parameter Documentation

getKO

public final double getKO()
TODO Missing Method Documentation

Specified by:
getKO in interface ITrainingPerPlayer
Returns:
TODO Missing Return Method Documentation

setPS

public final void setPS(double PS)
Setter for property PS.

Parameters:
PS - New value of property PS.

getPS

public final double getPS()
Getter for property PS.

Specified by:
getPS in interface ITrainingPerPlayer
Returns:
Value of property PS.

setSA

public final void setSA(double SA)
Setter for property SA.

Parameters:
SA - New value of property SA.

getSA

public final double getSA()
Getter for property SA.

Specified by:
getSA in interface ITrainingPerPlayer
Returns:
Value of property SA.

setST

public final void setST(double ST)
Setter for property ST.

Parameters:
ST - New value of property ST.

getST

public final double getST()
Getter for property ST.

Specified by:
getST in interface ITrainingPerPlayer
Returns:
Value of property ST.

setSpieler

public final void setSpieler(ISpieler spieler)
Setter for property spieler.

Parameters:
spieler - New value of property spieler.

getSpieler

public final ISpieler getSpieler()
Getter for property spieler.

Specified by:
getSpieler in interface ITrainingPerPlayer
Returns:
Value of property spieler.

setTS

public final void setTS(double TS)
Setter for property TS.

Parameters:
TS - New value of property TS.

getTS

public final double getTS()
Getter for property TS.

Specified by:
getTS in interface ITrainingPerPlayer
Returns:
Value of property TS.

setTW

public final void setTW(double TW)
Setter for property TW.

Parameters:
TW - New value of property TW.

getTW

public final double getTW()
Getter for property TW.

Specified by:
getTW in interface ITrainingPerPlayer
Returns:
Value of property TW.

setVE

public final void setVE(double VE)
Setter for property VE.

Parameters:
VE - New value of property VE.

getVE

public final double getVE()
Getter for property VE.

Specified by:
getVE in interface ITrainingPerPlayer
Returns:
Value of property VE.

getTimestamp

public java.util.Date getTimestamp()
Returns:
the timestamp

setTimestamp

public void setTimestamp(java.util.Date timestamp)
Set the timestamp if not null, calculate sub increase for this training date only

Specified by:
setTimestamp in interface ITrainingPerPlayer
Parameters:
timestamp - the timestamp to set

toString

public final java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:

addValues

public void addValues(ITrainingPerPlayer values)
add sub values of another ITrainingPerPlayer instance to this instance

Specified by:
addValues in interface ITrainingPerPlayer
Parameters:
values - the instance we take the values from

getSkillValue

public double getSkillValue(int skillType)
Returns the training (sub)skill for a specific skill type

Specified by:
getSkillValue in interface ITrainingPerPlayer
Parameters:
skillType - skill type from ISpieler.SKILL_*
Returns:
the (sub)skill for this skill type

getTrainPoint

public ITrainingPoint getTrainPoint()
get the training point for this instance

Specified by:
getTrainPoint in interface ITrainingPerPlayer
Returns:
training point

setTrainPoint

public void setTrainPoint(ITrainingPoint trainPoint)
set the training point for this instance and calculate the sub skills for the player using the training week from this training point

Specified by:
setTrainPoint in interface ITrainingPerPlayer
Parameters:
trainPoint - training point