|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmechanics.intelligence.Situation
public class Situation
Method Summary | |
---|---|
java.lang.String |
getBestMemory(Memory target,
java.lang.String[] moves)
Find the best move to use for the situation. |
static Situation |
getInstance()
Get an instance of this class. |
void |
saveToFile()
Save the Situations database to a file. |
void |
updateMemories(java.util.ArrayList memories,
boolean positive,
int factor)
Update a set of memories -- were they positive experiences? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void saveToFile()
public static Situation getInstance()
public java.lang.String getBestMemory(Memory target, java.lang.String[] moves)
public void updateMemories(java.util.ArrayList memories, boolean positive, int factor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |