mechanics.intelligence
Class Situation

java.lang.Object
  extended by mechanics.intelligence.Situation

public class Situation
extends java.lang.Object


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

saveToFile

public void saveToFile()
Save the Situations database to a file.


getInstance

public static Situation getInstance()
Get an instance of this class.


getBestMemory

public java.lang.String getBestMemory(Memory target,
                                      java.lang.String[] moves)
Find the best move to use for the situation.


updateMemories

public void updateMemories(java.util.ArrayList memories,
                           boolean positive,
                           int factor)
Update a set of memories -- were they positive experiences?