|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITrainingsManager
encapsulates Trainingscalculation and data
Field Summary | |
---|---|
static int |
PLAYERSTATUS_NO_MATCHDATA
|
static int |
PLAYERSTATUS_NO_MATCHDETAILS
|
static int |
PLAYERSTATUS_NOT_IN_LINEUP
|
static int |
PLAYERSTATUS_OK
|
static int |
PLAYERSTATUS_RED_CARD
|
Method Summary | |
---|---|
java.util.Vector |
calculateTrainings(java.util.Vector inputTrainings)
calculates TrainingWeeks based on given input Vector and sets actual trainingsVector to result of calcultaion |
double |
getBasePoints(int trainType,
int position)
Returns the base points a player gets for this training type in a full match at this position |
java.util.List |
getMatchesForTraining(java.util.Calendar trainingDate)
Creates a list of matches for the specified training |
int |
getMatchPosition(int matchId,
int playerId)
Returns the positionId for a player in a specific match If he is not in the lineup, return the player status (PLAYERSTATUS_*) |
int |
getMinutesPlayed(int matchId,
int playerId)
Calculates how long the player was on the field in the specified match |
int |
getPlayerStatus(int matchId,
int playerId)
Returns the player status (PLAYERSTATUS_*) for a player in a specific match |
ITrainingPerPlayer |
getTrainingPerPlayer()
returns an empty ITrainingPerPlayer instance |
ITrainingPerPlayer |
getTrainingPerPlayer(ISpieler player)
returns a ITrainingPerPlayer instance for a specific player |
ITrainingPoint |
getTrainingPoint()
get a new training point instance |
ITrainingPoint |
getTrainingPoint(int year,
int week,
int type,
int intensity,
int staminaTrainingPart)
get a new training point instance initialized with a new ITrainingWeek created by the arguments |
ITrainingPoint |
getTrainingPoint(ITrainingWeek trainWeek)
get a new training point instance initialized with existing ITrainingWeek |
java.util.Vector |
getTrainingsVector()
returns current TrainingVector calculates new vector if current is null |
void |
recalcSubskills(boolean showBar)
Method to force a recalculation of decimal subskills |
Field Detail |
---|
static final int PLAYERSTATUS_OK
static final int PLAYERSTATUS_NO_MATCHDATA
static final int PLAYERSTATUS_NO_MATCHDETAILS
static final int PLAYERSTATUS_NOT_IN_LINEUP
static final int PLAYERSTATUS_RED_CARD
Method Detail |
---|
ITrainingPerPlayer getTrainingPerPlayer()
ITrainingPerPlayer getTrainingPerPlayer(ISpieler player)
ITrainingPoint getTrainingPoint()
ITrainingPoint getTrainingPoint(ITrainingWeek trainWeek)
ITrainingPoint getTrainingPoint(int year, int week, int type, int intensity, int staminaTrainingPart)
java.util.Vector getTrainingsVector()
java.util.Vector calculateTrainings(java.util.Vector inputTrainings)
inputTrainings
- must be != null, empty vector if no trainings are preset
void recalcSubskills(boolean showBar)
showBar
- TODO Missing Constructuor Parameter Documentationint getMinutesPlayed(int matchId, int playerId)
matchId
- the match to checkplayerId
- the player to check
int getPlayerStatus(int matchId, int playerId)
matchId
- match idplayerId
- player id
java.util.List getMatchesForTraining(java.util.Calendar trainingDate)
trainingDate
- use this trainingDate
double getBasePoints(int trainType, int position)
trainType
- training typeposition
- player position id
int getMatchPosition(int matchId, int playerId)
matchId
- match idplayerId
- player id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |