public abstract class AbstractPerceptualModule extends AbstractAsynchronousModule implements IPerceptualModule, IParameterized, IAsynchronousModule
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOGGER
logger definition
|
GREATER_THAN_CURRENT_CHUNK, HIGHEST_CHUNK, LESS_THAN_CURRENT_CHUNK, LOWEST_CHUNK
STRICT_SYNCHRONIZATION_PARAM
Constructor and Description |
---|
AbstractPerceptualModule(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectToCommonReality()
called immediately after common reality connection has been established.
|
protected void |
disconnectFromCommonReality()
called on model termination to give modules a chance to remove their
listeners
|
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() |
protected IChunk |
getNamedChunk(java.lang.String name)
utility to snag a named chunk from DM
|
protected IChunkType |
getNamedChunkType(java.lang.String name) |
IChunk |
getRequestedChunk() |
ISymbolGrounder |
getSymbolGrounder()
returns the shared symbol grounder.
|
IChunk |
getUnrequestedChunk() |
void |
initialize()
this will be called after all the modules have been installed permitting
the module to attach listeners to other modules.
|
void |
setSymbolGrounder(ISymbolGrounder grounder)
set the symbol grounder for this module and, if it can, set it for all the
other installed perceptual modules
|
getParameter, getPossibleParameters, getSetableParameters, isStrictSynchronizationEnabled, setParameter, setStrictSynchronizationEnabled, synchronizedTimedEvent
createBuffers, delayedFuture, delayedFuture, getModel, getName, getSafeName, immediateFuture, immediateReturn, install, setExecutor, uninstall
addAdapterFactory, getAdapter, removeAdapterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStrictSynchronizationEnabled, setStrictSynchronizationEnabled, synchronizedTimedEvent
uninstall
getAdapter
getParameter, getPossibleParameters, getSetableParameters, setParameter
public ISymbolGrounder getSymbolGrounder()
IPerceptualModule
getSymbolGrounder
in interface IPerceptualModule
public void setSymbolGrounder(ISymbolGrounder grounder)
setSymbolGrounder
in interface IPerceptualModule
grounder
- protected void connectToCommonReality()
IAgent
so that the
model can be aware of different IAfferentObject
and
IEfferentObject
sprotected void disconnectFromCommonReality()
public void initialize()
IModule
initialize
in interface IModule
initialize
in interface IInitializable
initialize
in class AbstractModule
public void dispose()
IModule
dispose
in interface IModule
dispose
in class AbstractModule
public java.util.concurrent.Executor getCommonRealityExecutor()
getCommonRealityExecutor
in interface IPerceptualModule
public java.util.concurrent.Executor getExecutor()
AbstractModule
getExecutor
in interface IAsynchronousModule
getExecutor
in class AbstractModule
protected IChunk getNamedChunk(java.lang.String name)
name
- protected IChunkType getNamedChunkType(java.lang.String name)
public IChunk getFreeChunk()
public IChunk getErrorChunk()
public IChunk getBusyChunk()
public IChunk getRequestedChunk()
public IChunk getUnrequestedChunk()