org.jactr.modules.pm
Class AbstractPerceptualModule

java.lang.Object
  extended by org.jactr.core.module.AbstractModule
      extended by org.jactr.core.module.asynch.AbstractAsynchronousModule
          extended by org.jactr.modules.pm.AbstractPerceptualModule
All Implemented Interfaces:
IAsynchronousModule, IModule, IInitializable, IInstallable, IParameterized, IPerceptualModule
Direct Known Subclasses:
AbstractAuralModule, AbstractMotorModule, AbstractVisualModule, AbstractVocalModule

public abstract class AbstractPerceptualModule
extends AbstractAsynchronousModule
implements IPerceptualModule, IParameterized, IAsynchronousModule


Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Fields inherited from interface org.jactr.core.module.asynch.IAsynchronousModule
STRICT_SYNCHRONIZATION_PARAM
 
Constructor Summary
AbstractPerceptualModule(java.lang.String name)
           
 
Method Summary
 void dispose()
          release any resources.
 IChunk getBusyChunk()
           
 java.util.concurrent.Executor getCommonRealityExecutor()
          return the executor that should shared by all common reality listeners.
 IChunk getErrorChunk()
           
 java.util.concurrent.Executor getExecutor()
          default executor INLINE_EXECUTOR is used
 IChunk getFreeChunk()
           
 IChunk getRequestedChunk()
           
 IChunk getUnrequestedChunk()
           
 void initialize()
          this will be called after all the modules have been installed permitting the module to attach listeners to other modules.
 
Methods inherited from class org.jactr.core.module.asynch.AbstractAsynchronousModule
getParameter, getPossibleParameters, getSetableParameters, isStrictSynchronizationEnabled, setParameter, setStrictSynchronizationEnabled, synchronizedTimedEvent
 
Methods inherited from class org.jactr.core.module.AbstractModule
delayedFuture, getModel, getName, getSafeName, immediateFuture, immediateReturn, install, uninstall
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jactr.core.module.asynch.IAsynchronousModule
isStrictSynchronizationEnabled, setStrictSynchronizationEnabled, synchronizedTimedEvent
 
Methods inherited from interface org.jactr.core.module.IModule
getModel, getName, install
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 
Methods inherited from interface org.jactr.core.utils.parameter.IParameterized
getParameter, getPossibleParameters, getSetableParameters, setParameter
 

Field Detail

LOGGER

public static final org.apache.commons.logging.Log LOGGER
logger definition

Constructor Detail

AbstractPerceptualModule

public AbstractPerceptualModule(java.lang.String name)
Method Detail

initialize

public void initialize()
Description copied from interface: IModule
this will be called after all the modules have been installed permitting the module to attach listeners to other modules. if you want to get access to chunks,types, or productions before the model runs, attach a model listener and do that during the modelStarted call

Specified by:
initialize in interface IModule
Specified by:
initialize in interface IInitializable
Specified by:
initialize in class AbstractModule

dispose

public void dispose()
Description copied from interface: IModule
release any resources. this should only be called by the model during its own dispose method (assuming that this module is still installed) and should not result in the propogation of ANY events. The module should dispose of all its resources, including buffers

Specified by:
dispose in interface IModule
Overrides:
dispose in class AbstractModule

getCommonRealityExecutor

public java.util.concurrent.Executor getCommonRealityExecutor()
return the executor that should shared by all common reality listeners. this call is only valid after common reality has been connected

Specified by:
getCommonRealityExecutor in interface IPerceptualModule
Returns:

getExecutor

public java.util.concurrent.Executor getExecutor()
Description copied from class: AbstractModule
default executor INLINE_EXECUTOR is used

Specified by:
getExecutor in interface IAsynchronousModule
Overrides:
getExecutor in class AbstractModule

getFreeChunk

public IChunk getFreeChunk()

getErrorChunk

public IChunk getErrorChunk()

getBusyChunk

public IChunk getBusyChunk()

getRequestedChunk

public IChunk getRequestedChunk()

getUnrequestedChunk

public IChunk getUnrequestedChunk()