plugins
Interface ITrainingPoint

All Known Implementing Classes:
TrainingPoint

public interface ITrainingPoint

DOCUMENT ME!

Author:
thomas.werth

Method Summary
 void addTrainingMatch(int minutes, int posId)
          Adds a match to the internal list
 double calcTrainingPoints(boolean ignorePosition)
          Calculate how many points the player gets for this week, using the matches previously added with addTrainingMatch(min, posId) Optimal: 100% position + 90mins -> points = 1.0
 java.lang.Double getTrainingPoint(int trtype, java.lang.Integer playerMatchPosition)
          Mathod that returns the correct training point
 ITrainingWeek getTrainWeek()
          Returns the training week for this training point
 

Method Detail

getTrainingPoint

java.lang.Double getTrainingPoint(int trtype,
                                  java.lang.Integer playerMatchPosition)
Mathod that returns the correct training point

Parameters:
trtype - Training type code
playerMatchPosition - player position code
Returns:
training points earned in that match

addTrainingMatch

void addTrainingMatch(int minutes,
                      int posId)
Adds a match to the internal list

Parameters:
minutes - How long was the player on the field in this match
posId - Position of the player in this match

calcTrainingPoints

double calcTrainingPoints(boolean ignorePosition)
Calculate how many points the player gets for this week, using the matches previously added with addTrainingMatch(min, posId) Optimal: 100% position + 90mins -> points = 1.0

Parameters:
ignorePosition - Ignore players position, otherwise use only minutes on correct position
Returns:
training points for this player and week

getTrainWeek

ITrainingWeek getTrainWeek()
Returns the training week for this training point