models
Class SingleDPL

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

public class SingleDPL
extends java.lang.Object


Field Summary
static MersenneTwister random
           
 
Constructor Summary
SingleDPL(com.martiansoftware.jsap.JSAPResult config)
           
 
Method Summary
 Game getGame()
          Returns the value of game.
 Individual getIndivids()
          Returns the value of indivis.
 void playGen()
          Resets then plays a generation.
 void run(com.martiansoftware.jsap.JSAPResult config)
           
 void setGame(Game game)
          Sets the value of game.
 void setIndividual(Individual individs)
          Sets the value of indivis.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

public static final MersenneTwister random
Constructor Detail

SingleDPL

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

getIndivids

public Individual getIndivids()
Returns the value of indivis.


setIndividual

public void setIndividual(Individual individs)
Sets the value of indivis.


getGame

public Game getGame()
Returns the value of game.


setGame

public void setGame(Game game)
Sets the value of game.

Parameters:
game - The value to assign game.

playGen

public void playGen()
             throws ModelError
Resets then plays a generation. This first calls each individuals reset function, then calls each individuals playGame function, then calles each individuals update function

Throws:
ModelError - If something bad happens

run

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