Class Memory

java.lang.Object
  |
  +--Memory

class Memory
extends java.lang.Object


Field Summary
private  SenseBodyInfo m_bodyInfo
           
private  VisualInfo m_info
           
(package private) static int SIMULATOR_STEP
           
 
Constructor Summary
Memory()
          Memory default constructor.
 
Method Summary
 ObjectInfo getObject(java.lang.String name)
          getObject method, examines the memory to find an object corresponding to the given name.
 void printBodyInfo()
          printBodyInfo method, is used for testing purposes to display to the screen the information relating to the player.
 void printObject(ObjectInfo objInfo)
          printObject method, is used for testing purposes to display to the screen the information relating to a specific object.
 void store(SenseBodyInfo info)
          store method, used for putting sense_body information into memory.
 void store(VisualInfo info)
          store method, used for putting see, or visual, information into memory.
 void waitForNewInfo()
          waitForNewInfo method is used to put the thread to sleep, until new information is received from the server.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

m_info

private volatile VisualInfo m_info

m_bodyInfo

private volatile SenseBodyInfo m_bodyInfo

SIMULATOR_STEP

static final int SIMULATOR_STEP
Constructor Detail

Memory

public Memory()
Memory default constructor.
Method Detail

store

public void store(VisualInfo info)
store method, used for putting see, or visual, information into memory.
Parameters:
info - Visual information to store
Returns:
none

store

public void store(SenseBodyInfo info)
store method, used for putting sense_body information into memory.
Parameters:
info - Sense body information to store
Returns:
none

getObject

public ObjectInfo getObject(java.lang.String name)
getObject method, examines the memory to find an object corresponding to the given name.
Parameters:
name - Name of the object to find (example ball)
Returns:
null if object was not found, otherwise returns the valid ObjectInfo

printObject

public void printObject(ObjectInfo objInfo)
printObject method, is used for testing purposes to display to the screen the information relating to a specific object.
Parameters:
objInfo - Specific object to display information of.
Returns:
none

printBodyInfo

public void printBodyInfo()
printBodyInfo method, is used for testing purposes to display to the screen the information relating to the player.
Returns:
none

waitForNewInfo

public void waitForNewInfo()
waitForNewInfo method is used to put the thread to sleep, until new information is received from the server.
Returns:
none