models
Class SingleBGM

java.lang.Object
  |
  +--models.SingleBGM

public class SingleBGM
extends java.lang.Object


Constructor Summary
SingleBGM(com.martiansoftware.jsap.JSAPResult config)
           
 
Method Summary
 Game[] getGames()
          Returns the games for the BgModel
 Individual getIndividual()
          Returns the set of individuals for the model.
 MersenneTwister getRandom()
          Returns the random number generator for the model.
 void run(com.martiansoftware.jsap.JSAPResult config)
          Runs the model
 void setGames(Game[] g)
          Sets an array of games, one for each state of the world.
 void setIndividual(Individual i)
          Sets the list of individuals for the model.
 void setRandom(MersenneTwister r)
          Sets the random number generator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleBGM

public SingleBGM(com.martiansoftware.jsap.JSAPResult config)
          throws ModelError
Method Detail

setGames

public void setGames(Game[] g)
Sets an array of games, one for each state of the world.

Parameters:
g - The array of Game objects

getGames

public Game[] getGames()
Returns the games for the BgModel

Returns:
the games

setIndividual

public void setIndividual(Individual i)
Sets the list of individuals for the model.

Parameters:
i - An array of individuals

getIndividual

public Individual getIndividual()
Returns the set of individuals for the model.

Returns:
the individuals

setRandom

public void setRandom(MersenneTwister r)
Sets the random number generator.

Parameters:
r - the mersennetwister random number generator

getRandom

public MersenneTwister getRandom()
Returns the random number generator for the model.

Returns:
the mersenne twister random number generator

run

public void run(com.martiansoftware.jsap.JSAPResult config)
         throws ModelError
Runs the model

ModelError