|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.multiagent.gamer.ParameterizedObject | +--edu.stanford.multiagent.gamer.Game | +--edu.stanford.multiagent.gamer.MatrixGame | +--edu.stanford.multiagent.gamer.TwoByTwoGame
Return a 2x2 game of a given type from Rapoport's distribution.
Field Summary |
Fields inherited from class edu.stanford.multiagent.gamer.Game |
actions, DEFAULT_HIGH, DEFAULT_LOW, intMult, intPayoffs, players, pMaxPayoff, pMinPayoff, pNormalize, symActions |
Fields inherited from class edu.stanford.multiagent.gamer.ParameterizedObject |
parameters |
Constructor Summary | |
TwoByTwoGame()
Construct a new game |
Method Summary | |
protected void |
checkParameters()
Checks that parameters are ok |
void |
doGenerate()
Fills in the payoffs |
protected java.lang.String |
getGameHelp()
Returns the help screen |
void |
initialize()
Initializes using preset parameter values |
void |
randomizeParameters()
Randomizes type |
Methods inherited from class edu.stanford.multiagent.gamer.MatrixGame |
getPayoff, initMatrix, setPayoff |
Methods inherited from class edu.stanford.multiagent.gamer.Game |
generate, getAutoNormPayoff, getDescription, getHelp, getName, getNormPayoff, getNumActions, getNumActions, getNumPlayers, getOutputPayoff, getOutputPayoff, getPayoff, getRangeHelp, parseActions, parsePlayersActions, parsePlayersSameNumberActions, parseSameNumberActions, setDescription, setName, setNormMinAndMax, setNumActions, setNumActions, setNumPlayers, writeGame |
Methods inherited from class edu.stanford.multiagent.gamer.ParameterizedObject |
getBooleanParameter, getDoubleParameter, getLongParameter, getParamDescription, getParameter, getParameters, getStringParameter, setParameter, setParameter, setParameters, setParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TwoByTwoGame() throws java.lang.Exception
Method Detail |
public void initialize() throws java.lang.Exception
Game
initialize
in class Game
java.lang.Exception
protected void checkParameters() throws java.lang.Exception
checkParameters
in class ParameterizedObject
java.lang.Exception
- if anything is wrong with the parameter
valuespublic void randomizeParameters()
randomizeParameters
in class ParameterizedObject
protected java.lang.String getGameHelp()
getGameHelp
in class Game
public void doGenerate()
doGenerate
in class ParameterizedObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |