edu.stanford.multiagent.gamer
Class TimingGame.TimingGameParams

java.lang.Object
  |
  +--edu.stanford.multiagent.gamer.TimingGame.TimingGameParams
Enclosing class:
TimingGame

public static class TimingGame.TimingGameParams
extends java.lang.Object

TimingGameParams is a simple helper class used to store all of the parameters for the Timing Game function for one particular player. This can be extended if timing games with more complicated payoff functions are added. If any of the parameters are set to 0, their corresponding terms are ignored.


Constructor Summary
TimingGame.TimingGameParams(double yourTime, double lowTime, double added)
          Constructor for TimingGameParams objects.
 
Method Summary
 double getAdditional()
          Returns the extra amount to be added to the payoff.
 double getMultLowTime()
          Returns the multiplier for the lowest time of all players.
 double getMultYourTime()
          Returns the multiplier for a player's own time.
 void setAdditional(double value)
          Sets the extra amount to be added to the payoff.
 void setMultLowTime(double value)
          Sets the multiplier for the lowest time of all players.
 void setMultYourTime(double value)
          Sets the multiplier for a player's own time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimingGame.TimingGameParams

public TimingGame.TimingGameParams(double yourTime,
                                   double lowTime,
                                   double added)
Constructor for TimingGameParams objects.

Parameters:
yourTime - amount to be multiplied by a player's individual time and added to a payoff
lowTime - amount to be multiplied by the lowest time chosen by any player and added to a payoff
added - additional amount to be added to a payoff
Method Detail

getMultYourTime

public double getMultYourTime()
Returns the multiplier for a player's own time.


setMultYourTime

public void setMultYourTime(double value)
Sets the multiplier for a player's own time.


getMultLowTime

public double getMultLowTime()
Returns the multiplier for the lowest time of all players.


setMultLowTime

public void setMultLowTime(double value)
Sets the multiplier for the lowest time of all players.


getAdditional

public double getAdditional()
Returns the extra amount to be added to the payoff.


setAdditional

public void setAdditional(double value)
Sets the extra amount to be added to the payoff.