edu.memphis.ccrg.lida.sensorymemory
Class MockEnvironmentImpl

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
      extended by edu.memphis.ccrg.lida.environment.EnvironmentImpl
          extended by edu.memphis.ccrg.lida.sensorymemory.MockEnvironmentImpl
All Implemented Interfaces:
Environment, FrameworkModule, FullyInitializable, Initializable

public class MockEnvironmentImpl
extends EnvironmentImpl


Field Summary
 
Fields inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
taskSpawner
 
Constructor Summary
MockEnvironmentImpl()
           
 
Method Summary
 java.lang.Object getModuleContent(java.lang.Object... params)
          Returns module content specified by params.
 java.lang.Object getState(java.util.Map<java.lang.String,?> params)
          Returns the environment's state
 void init()
          Implementations should only perform initialization of variables or objects that depend on parameters in the parameter map specified in FrameworkModuleImpl.init(Map).
 void processAction(java.lang.Object action)
          Process the specified action updating the environment's state accordingly.
 void resetState()
          Reset the state of the environment
 
Methods inherited from class edu.memphis.ccrg.lida.environment.EnvironmentImpl
addListener, decayModule
 
Methods inherited from class edu.memphis.ccrg.lida.framework.FrameworkModuleImpl
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getParam, getSubmodule, getSubmodule, getSubmodules, init, setAssistingTaskSpawner, setAssociatedModule, setModuleName, taskManagerDecayModule, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.FrameworkModule
addSubModule, containsSubmodule, containsSubmodule, getAssistingTaskSpawner, getModuleName, getSubmodule, getSubmodule, getSubmodules, setAssistingTaskSpawner, setModuleName, taskManagerDecayModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.FullyInitializable
setAssociatedModule
 
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable
getParam, init
 

Constructor Detail

MockEnvironmentImpl

public MockEnvironmentImpl()
Method Detail

resetState

public void resetState()
Description copied from interface: Environment
Reset the state of the environment


processAction

public void processAction(java.lang.Object action)
Description copied from interface: Environment
Process the specified action updating the environment's state accordingly.

Parameters:
action - an algorithm to be processed by the environment

getState

public java.lang.Object getState(java.util.Map<java.lang.String,?> params)
Description copied from interface: Environment
Returns the environment's state

Parameters:
params - Map of optional parameters specifying the aspect of the state which will be returned
Returns:
some part of the environment's state depending on the parameters

getModuleContent

public java.lang.Object getModuleContent(java.lang.Object... params)
Description copied from interface: FrameworkModule
Returns module content specified by params. Should only be used by the GUI.

Specified by:
getModuleContent in interface FrameworkModule
Specified by:
getModuleContent in class FrameworkModuleImpl
Parameters:
params - - specifies what content will be returned.
Returns:
various kinds of content of this module.

init

public void init()
Description copied from class: FrameworkModuleImpl
Implementations should only perform initialization of variables or objects that depend on parameters in the parameter map specified in FrameworkModuleImpl.init(Map). Furthermore they should not try to access modules added via FrameworkModuleImpl.setAssociatedModule(FrameworkModule, String) as this method will not have run yet at the time this method is called.

Specified by:
init in interface Initializable
Specified by:
init in class FrameworkModuleImpl