de.hattrickorganizer.prediction
Class RatingPredictionManager

java.lang.Object
  extended by de.hattrickorganizer.prediction.RatingPredictionManager
All Implemented Interfaces:
IRatingPredictionManager

public class RatingPredictionManager
extends java.lang.Object
implements IRatingPredictionManager


Field Summary
static int NUM_SPEC
           
static int SPEC_ALL
           
static int SPEC_HEADER
           
static int SPEC_NONE
           
static int SPEC_POWERFUL
           
static int SPEC_QUICK
           
static int SPEC_REGAINER
           
static int SPEC_TECHNICAL
           
static int SPEC_UNPREDICTABLE
           
 
Fields inherited from interface plugins.IRatingPredictionManager
LAST_CHANGE, LAST_CHANGE_FRIENDLY
 
Constructor Summary
RatingPredictionManager()
           
RatingPredictionManager(ILineUp lineup, int i, ITeam iteam, short trainerType, IRatingPredictionConfig config)
           
RatingPredictionManager(ILineUp lineup, ITeam team, short trainerType, IRatingPredictionConfig config)
           
RatingPredictionManager(IRatingPredictionConfig config)
           
 
Method Summary
 double applyCommonProps(double inVal, IRatingPredictionParameter params, java.lang.String sectionName)
           
static double calcPlayerStrength(IRatingPredictionParameter params, java.lang.String sectionName, double stamina, double xp, double skill, double form, boolean useForm)
           
static float calcPlayerStrength(ISpieler spieler, int skillType)
           
static float calcPlayerStrength(ISpieler spieler, int skillType, boolean useForm)
           
 double[][] getAllPlayerStrength(int skillType)
           
 double[][] getAllPlayerStrength(int skillType, boolean useLeft, boolean useMiddle, boolean useRight)
           
 double[][] getAllPlayerStrengthLeft(int skillType)
           
 double[][] getAllPlayerStrengthMiddle(int skillType)
           
 double[][] getAllPlayerStrengthRight(int skillType)
           
static double[][] getAllPlayerWeights(IRatingPredictionParameter params, java.lang.String sectionName)
           
 float getAow_AimRatings()
          Tactic Rating Functions (AIW, AOW, Counter...)
 float getCentralAttackRatings()
           
 float getCentralDefenseRatings()
           
 float getKonterRatings()
           
 float getLeftAttackRatings()
           
 float getLeftDefenseRatings()
           
 float getMFRatings()
           
 int getNumCDs()
           
 int getNumFWs()
           
 int getNumIMs()
           
 float getRightAttackRatings()
           
 float getRightDefenseRatings()
           
 float getSideAttackRatings(int side)
           
 float getSideDefenseRatings(int side)
           
 boolean isLeft(int pos, int taktik)
           
 boolean isMiddle(int pos, int taktik)
           
 boolean isRight(int pos, int taktik)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPEC_NONE

public static final int SPEC_NONE
See Also:
Constant Field Values

SPEC_TECHNICAL

public static final int SPEC_TECHNICAL
See Also:
Constant Field Values

SPEC_QUICK

public static final int SPEC_QUICK
See Also:
Constant Field Values

SPEC_POWERFUL

public static final int SPEC_POWERFUL
See Also:
Constant Field Values

SPEC_UNPREDICTABLE

public static final int SPEC_UNPREDICTABLE
See Also:
Constant Field Values

SPEC_HEADER

public static final int SPEC_HEADER
See Also:
Constant Field Values

SPEC_REGAINER

public static final int SPEC_REGAINER
See Also:
Constant Field Values

SPEC_ALL

public static final int SPEC_ALL
See Also:
Constant Field Values

NUM_SPEC

public static final int NUM_SPEC
See Also:
Constant Field Values
Constructor Detail

RatingPredictionManager

public RatingPredictionManager()

RatingPredictionManager

public RatingPredictionManager(IRatingPredictionConfig config)

RatingPredictionManager

public RatingPredictionManager(ILineUp lineup,
                               int i,
                               ITeam iteam,
                               short trainerType,
                               IRatingPredictionConfig config)

RatingPredictionManager

public RatingPredictionManager(ILineUp lineup,
                               ITeam team,
                               short trainerType,
                               IRatingPredictionConfig config)
Method Detail

applyCommonProps

public double applyCommonProps(double inVal,
                               IRatingPredictionParameter params,
                               java.lang.String sectionName)

getCentralAttackRatings

public float getCentralAttackRatings()

getCentralDefenseRatings

public float getCentralDefenseRatings()

getRightAttackRatings

public float getRightAttackRatings()

getLeftAttackRatings

public float getLeftAttackRatings()

getSideAttackRatings

public float getSideAttackRatings(int side)

getRightDefenseRatings

public float getRightDefenseRatings()

getLeftDefenseRatings

public float getLeftDefenseRatings()

getSideDefenseRatings

public float getSideDefenseRatings(int side)

getAllPlayerWeights

public static double[][] getAllPlayerWeights(IRatingPredictionParameter params,
                                             java.lang.String sectionName)

getAllPlayerStrength

public double[][] getAllPlayerStrength(int skillType)

getAllPlayerStrengthLeft

public double[][] getAllPlayerStrengthLeft(int skillType)

getAllPlayerStrengthRight

public double[][] getAllPlayerStrengthRight(int skillType)

getAllPlayerStrengthMiddle

public double[][] getAllPlayerStrengthMiddle(int skillType)

getNumIMs

public int getNumIMs()

getNumFWs

public int getNumFWs()

getNumCDs

public int getNumCDs()

isLeft

public boolean isLeft(int pos,
                      int taktik)

isRight

public boolean isRight(int pos,
                       int taktik)

isMiddle

public boolean isMiddle(int pos,
                        int taktik)

getAllPlayerStrength

public double[][] getAllPlayerStrength(int skillType,
                                       boolean useLeft,
                                       boolean useMiddle,
                                       boolean useRight)

getMFRatings

public float getMFRatings()

calcPlayerStrength

public static float calcPlayerStrength(ISpieler spieler,
                                       int skillType)

calcPlayerStrength

public static float calcPlayerStrength(ISpieler spieler,
                                       int skillType,
                                       boolean useForm)

calcPlayerStrength

public static double calcPlayerStrength(IRatingPredictionParameter params,
                                        java.lang.String sectionName,
                                        double stamina,
                                        double xp,
                                        double skill,
                                        double form,
                                        boolean useForm)

getAow_AimRatings

public float getAow_AimRatings()
Tactic Rating Functions (AIW, AOW, Counter...)


getKonterRatings

public float getKonterRatings()