roboplayer.core.memory
Class Params

java.lang.Object
  |
  +--roboplayer.core.memory.Params
All Implemented Interfaces:
ParamsListener

public class Params
extends java.lang.Object
implements ParamsListener

This class contains all parameters passed from server.

Author:
Klangner

Field Summary
 double PENALTY_AREA_LENGTH
           
 double PENALTY_AREA_WIDTH
           
 double PITCH_LENGTH
           
 double PITCH_WIDTH
           
 
Constructor Summary
Params()
           
 
Method Summary
 double getBallDecay()
           
 double getCatchableAreaL()
           
 double getCatchableAreaW()
           
 double getDashPowerRate()
           
 double getEffortDecThr()
           
 Rectangle getFieldArea()
           
 double getGoalWidth()
           
 double getMaxPower()
           
 double getMinPower()
           
 double getPlayerSize()
           
 double getRecoverDecThr()
           
 char getSide()
           
 double getStaminaMax()
           
 java.lang.String getTeamName()
           
 int getUniformNumber()
           
 void onInit(java.lang.String teamName, char side, int number)
          Init params
 void onParams(java.lang.String info)
          Parse parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PITCH_LENGTH

public final double PITCH_LENGTH
See Also:
Constant Field Values

PITCH_WIDTH

public final double PITCH_WIDTH
See Also:
Constant Field Values

PENALTY_AREA_LENGTH

public final double PENALTY_AREA_LENGTH
See Also:
Constant Field Values

PENALTY_AREA_WIDTH

public final double PENALTY_AREA_WIDTH
See Also:
Constant Field Values
Constructor Detail

Params

public Params()
Method Detail

getTeamName

public java.lang.String getTeamName()

getSide

public char getSide()

getUniformNumber

public int getUniformNumber()

getDashPowerRate

public double getDashPowerRate()

getGoalWidth

public double getGoalWidth()

getPlayerSize

public double getPlayerSize()

getEffortDecThr

public double getEffortDecThr()

getRecoverDecThr

public double getRecoverDecThr()

getStaminaMax

public double getStaminaMax()

getCatchableAreaL

public double getCatchableAreaL()

getCatchableAreaW

public double getCatchableAreaW()

getBallDecay

public double getBallDecay()

getFieldArea

public Rectangle getFieldArea()

getMaxPower

public double getMaxPower()

getMinPower

public double getMinPower()

onInit

public void onInit(java.lang.String teamName,
                   char side,
                   int number)
Init params

Specified by:
onInit in interface ParamsListener

onParams

public void onParams(java.lang.String info)
Parse parameters

Specified by:
onParams in interface ParamsListener