|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--LGames.DGame | +--LGames.HolisticDGame2
The class HolisticDGame2 implements the discrimination games for HolisticAgent2. I.e. for agents
with a hierarchical layering of meanings.
The function playGame is used to control the game.
Copyright (c) 2004 Paul Vogt
Field Summary | |
protected int |
iMeaning
|
protected int |
maxMeanings
|
Constructor Summary | |
HolisticDGame2()
Empty constructor |
|
HolisticDGame2(java.util.List o)
Constructor that initialises a pointer to the agents ontology |
Method Summary | |
void |
forget(int n)
This function makes sure that when forgetting a meaning, the density of the layer is adapted accordingly |
int |
getMaxLayer()
|
int |
playGame(Context cxt,
int topic,
int layer,
boolean adapt)
playGame controls a discrimination game. |
void |
setDim(int d)
Sets the number of dimensions of the conceptual space |
void |
setMaxMeanings(int M)
Sets the limit on the number of meanings# |
Methods inherited from class LGames.DGame |
getDim, playGame |
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 HolisticDGame2()
public HolisticDGame2(java.util.List o)
o
- the ontologyMethod Detail |
public void setDim(int d)
setDim
in class DGame
d
- the dimensionpublic void setMaxMeanings(int M)
setMaxMeanings
in class DGame
M
- the maximum number of meanings that are allowed in the agent's memorypublic int playGame(Context cxt, int topic, int layer, boolean adapt)
cxt
- the Contexttopic
- the index of the topic pointing to the topic-th
element of the cxt list.layer
- the hierarchical at which the discrimination game is playedadapt
- sets the learning/adaptation on (true) or off (false)
public void forget(int n)
public int getMaxLayer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |