de.hattrickorganizer.logik.matchengine
Class MatchPredictionManager

java.lang.Object
  extended by de.hattrickorganizer.logik.matchengine.MatchPredictionManager
All Implemented Interfaces:
IMatchPredictionManager

public class MatchPredictionManager
extends java.lang.Object
implements IMatchPredictionManager

DOCUMENT ME!

Author:
thomas.werth

Method Summary
 java.util.Vector calculateMatch(IMPTeamData home, IMPTeamData away)
          calculates a match ( 90 minutes ) and returns list of events for both teams.
 IMatchResult calculateMatchResult(IMPTeamData home, IMPTeamData away)
           
 IMatchResult calculateNMatches(int numberOfMatches, IMPTeamData home, IMPTeamData away)
          calculates a number of matches match ( 90 minutes ) and returns list of events for both teams.
 IMPTeamData generateTeamData(java.lang.String name, IMPTeamRatings _ratings, int _tactic, int _level)
          TODO Missing Method Documentation
 IMPTeamRatings generateTeamRatings(double midfield, double leftDef, double middleDef, double rightDef, double leftAttack, double middleAttack, double rightAttack)
          TODO Missing Method Documentation
 IMPMatchData getMatchData(IMPTeamData home, IMPTeamData away)
          TODO Missing Method Documentation
static MatchPredictionManager instance()
          TODO Missing Method Documentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static MatchPredictionManager instance()
TODO Missing Method Documentation

Returns:
TODO Missing Return Method Documentation

getMatchData

public IMPMatchData getMatchData(IMPTeamData home,
                                 IMPTeamData away)
TODO Missing Method Documentation

Specified by:
getMatchData in interface IMatchPredictionManager
Parameters:
home - TODO Missing Method Parameter Documentation
away - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

calculateMatch

public java.util.Vector calculateMatch(IMPTeamData home,
                                       IMPTeamData away)
calculates a match ( 90 minutes ) and returns list of events for both teams.

Specified by:
calculateMatch in interface IMatchPredictionManager
Parameters:
home - TODO Missing Constructuor Parameter Documentation
away - TODO Missing Constructuor Parameter Documentation
Returns:
Vector holding IMPActions for that match

calculateMatchResult

public IMatchResult calculateMatchResult(IMPTeamData home,
                                         IMPTeamData away)

calculateNMatches

public IMatchResult calculateNMatches(int numberOfMatches,
                                      IMPTeamData home,
                                      IMPTeamData away)
calculates a number of matches match ( 90 minutes ) and returns list of events for both teams.

Specified by:
calculateNMatches in interface IMatchPredictionManager
Parameters:
numberOfMatches - TODO Missing Constructuor Parameter Documentation
home - TODO Missing Constructuor Parameter Documentation
away - TODO Missing Constructuor Parameter Documentation
Returns:
vector contaning Vectors holding IMPActions for each match

generateTeamData

public IMPTeamData generateTeamData(java.lang.String name,
                                    IMPTeamRatings _ratings,
                                    int _tactic,
                                    int _level)
TODO Missing Method Documentation

Specified by:
generateTeamData in interface IMatchPredictionManager
Parameters:
name - TODO Missing Method Parameter Documentation
_ratings - TODO Missing Method Parameter Documentation
_tactic - TODO Missing Method Parameter Documentation
_level - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

generateTeamRatings

public IMPTeamRatings generateTeamRatings(double midfield,
                                          double leftDef,
                                          double middleDef,
                                          double rightDef,
                                          double leftAttack,
                                          double middleAttack,
                                          double rightAttack)
TODO Missing Method Documentation

Specified by:
generateTeamRatings in interface IMatchPredictionManager
Parameters:
midfield - TODO Missing Method Parameter Documentation
leftDef - TODO Missing Method Parameter Documentation
middleDef - TODO Missing Method Parameter Documentation
rightDef - TODO Missing Method Parameter Documentation
leftAttack - TODO Missing Method Parameter Documentation
middleAttack - TODO Missing Method Parameter Documentation
rightAttack - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation