|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.multiagent.gamer.TimingGame.TimingGameParams
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 |
public TimingGame.TimingGameParams(double yourTime, double lowTime, double added)
yourTime
- amount to be multiplied by a player's individual
time and added to a payofflowTime
- amount to be multiplied by the lowest time chosen
by any player and added to a payoffadded
- additional amount to be added to a payoffMethod Detail |
public double getMultYourTime()
public void setMultYourTime(double value)
public double getMultLowTime()
public void setMultLowTime(double value)
public double getAdditional()
public void setAdditional(double value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |