|
||||||||||
| 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.LocalEffectGame
|
+--edu.stanford.multiagent.gamer.RandomLEG
Generate a Local Effect Game with a given graphical structure and a given function.
| Field Summary | |
protected static Parameters.ParamInfo |
pFunc
|
protected static Parameters.ParamInfo |
pFuncParams
|
protected static Parameters.ParamInfo |
pGraph
|
protected static Parameters.ParamInfo |
pGraphParams
|
protected static Parameters.ParamInfo[] |
rlegParam
|
| Fields inherited from class edu.stanford.multiagent.gamer.LocalEffectGame |
graph |
| 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 | |
RandomLEG()
|
|
| Method Summary | |
protected void |
checkParameters()
Checks if Parameter values are consistent. |
void |
doGenerate()
Generate the graph and for each node and edge of the graph, a function. |
protected java.lang.String |
getGameHelp()
Return help screen information about the given game class. |
protected void |
initGraph()
Initialize a graph with the number of nodes equal to the number of actions. |
void |
initialize()
Initialized the random local effect game |
void |
randomizeParameters()
Sets values of any unset parameters randomly. |
void |
setParameters(edu.stanford.multiagent.gamer.ParamParser p,
boolean randomize)
Set parameters for the LEG. |
| Methods inherited from class edu.stanford.multiagent.gamer.LocalEffectGame |
getPayoff |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Parameters.ParamInfo pGraph
protected static Parameters.ParamInfo pGraphParams
protected static Parameters.ParamInfo pFunc
protected static Parameters.ParamInfo pFuncParams
protected static Parameters.ParamInfo[] rlegParam
| Constructor Detail |
public RandomLEG()
throws java.lang.Exception
| Method Detail |
public void setParameters(edu.stanford.multiagent.gamer.ParamParser p,
boolean randomize)
throws java.lang.Exception
setParameters in class ParameterizedObjectp - the ParamParser containing the parameters and
their valuesrandomize - should be set to true if it is desired
that any unset parameters be randomized
java.lang.Exception
public void initialize()
throws java.lang.Exception
initialize in class LocalEffectGamejava.lang.Exception
protected void checkParameters()
throws java.lang.Exception
ParameterizedObject
checkParameters in class ParameterizedObjectjava.lang.Exception - if anything is wrong with the parameter
valuespublic void randomizeParameters()
ParameterizedObject
randomizeParameters in class ParameterizedObjectprotected java.lang.String getGameHelp()
Game
getGameHelp in class Gameprotected void initGraph()
public void doGenerate()
doGenerate in class ParameterizedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||