de.hattrickorganizer.logik
Class MatchPlayerRetriever

java.lang.Object
  extended by de.hattrickorganizer.logik.MatchPlayerRetriever

public class MatchPlayerRetriever
extends java.lang.Object

Class that extract the list of players that played in each match with the position field where he played. He consider also sent off and injured players

Author:
Draghetto HO

Constructor Summary
MatchPlayerRetriever(IHOMiniModel miniModel)
          Creates a new MatchManager object.
 
Method Summary
 void clear()
          Clean the matches hashtable where previous calculation are stored
 int getHrf(int matchId)
          Return the right HRF to be used for the match
 java.util.List getMatchData(int matchId)
          Method that returns the MatchData, if not present it calculates it before returing it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchPlayerRetriever

public MatchPlayerRetriever(IHOMiniModel miniModel)
Creates a new MatchManager object.

Parameters:
miniModel - the HO model
Method Detail

getHrf

public final int getHrf(int matchId)
Return the right HRF to be used for the match

Parameters:
matchId - id of selected match
Returns:
the hrf number that is right after the match being played

getMatchData

public final java.util.List getMatchData(int matchId)
Method that returns the MatchData, if not present it calculates it before returing it

Parameters:
matchId - id of selected match
Returns:
The Hashtable of playerID/position

clear

public final void clear()
Clean the matches hashtable where previous calculation are stored