edu.stanford.multiagent.gamer
Class BidirectionalLEG

java.lang.Object
  |
  +--edu.stanford.multiagent.gamer.ParameterizedObject
        |
        +--edu.stanford.multiagent.gamer.Game
              |
              +--edu.stanford.multiagent.gamer.LocalEffectGame
                    |
                    +--edu.stanford.multiagent.gamer.RandomLEG
                          |
                          +--edu.stanford.multiagent.gamer.BidirectionalLEG

public class BidirectionalLEG
extends RandomLEG

Generate a Local Effect Game with a given graphical structure and a given function structure such that the function stored on an edge a to b is the same as the function stored on an edge b to a. Very similar to RandomLEG except for the generation function.


Field Summary
 
Fields inherited from class edu.stanford.multiagent.gamer.RandomLEG
pFunc, pFuncParams, pGraph, pGraphParams, 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
BidirectionalLEG()
           
 
Method Summary
 void doGenerate()
          Generate the graph and for each node and edge of the graph, a function, making sure that functions are the same on every edge from a to b as they are on the edge from b to a.
protected  java.lang.String getGameHelp()
          Return help screen information about the given game class.
 
Methods inherited from class edu.stanford.multiagent.gamer.RandomLEG
checkParameters, initGraph, initialize, randomizeParameters, setParameters
 
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
 

Constructor Detail

BidirectionalLEG

public BidirectionalLEG()
                 throws java.lang.Exception
Method Detail

getGameHelp

protected java.lang.String getGameHelp()
Description copied from class: Game
Return help screen information about the given game class.

Overrides:
getGameHelp in class RandomLEG

doGenerate

public void doGenerate()
Generate the graph and for each node and edge of the graph, a function, making sure that functions are the same on every edge from a to b as they are on the edge from b to a.

Overrides:
doGenerate in class RandomLEG