|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--models.PayoffLearningModel
Field Summary | |
static MersenneTwister |
random
|
Constructor Summary | |
PayoffLearningModel(Individual[] i,
Game g,
ConnectionRule c,
LearningRule l,
double m)
|
Method Summary | |
int |
detectConvergence(int optimal)
Checks to see if the population has converged either to the correct state or the bad state. |
Game |
getGame()
Returns the value of game. |
Individual[] |
getIndivids()
Returns the value of indivis. |
static void |
main(java.lang.String[] args)
|
void |
playGen()
Resets then plays a generation. |
void |
setGame(Game game)
Sets the value of game. |
void |
setIndivids(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 |
public static final MersenneTwister random
Constructor Detail |
public PayoffLearningModel(Individual[] i, Game g, ConnectionRule c, LearningRule l, double m) throws ModelError
Method Detail |
public Individual[] getIndivids()
public void setIndivids(Individual[] individs)
public Game getGame()
public void setGame(Game game)
game
- The value to assign game.public void playGen() throws ModelError
ModelError
- If something bad happenspublic int detectConvergence(int optimal) throws ModelError
optimal
- The optimal action
ModelError
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |