|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--LGames.DGame
The class DGame implements the discrimination games. The function playGame is used to control the game.
Copyright (c) 2004 Paul Vogt
Field Summary | |
protected int |
iMeaning
|
protected int |
maxMeanings
|
Constructor Summary | |
DGame()
Empty constructor |
|
DGame(int M)
Constructor with a limit on the number of meanings |
|
DGame(java.util.List o)
Constructor that initialises a pointer to the agents ontology |
Method Summary | |
int |
getDim()
|
int |
playGame(Context cxt,
int topic,
boolean adapt)
playGame controls a discrimination game. |
void |
setDim(int d)
Sets the dimensionality of the conceptual space |
void |
setMaxMeanings(int M)
Sets the limit on the number of meanings# |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int iMeaning
protected int maxMeanings
Constructor Detail |
public DGame()
public DGame(int M)
M
- the maximum number of meanings that are allowed in the agent's memorypublic DGame(java.util.List o)
o
- the ontologyMethod Detail |
public void setMaxMeanings(int M)
M
- the maximum number of meanings that are allowed in the agent's memorypublic void setDim(int d)
d
- the dimensionpublic int getDim()
public int playGame(Context cxt, int topic, boolean adapt)
cxt
- the Contexttopic
- the index of the topic pointing to the topic-th
element of the cxt list.adapt
- sets the learning/adaptation on (true) or off (false)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |