public class DefaultVisualModule6 extends AbstractVisualModule implements IVisualModule
http://jactr.org/node/137
Modifier and Type | Field and Description |
---|---|
protected IChunk |
_trackedVisualChunk |
static org.apache.commons.logging.Log |
LOGGER
logger definition
|
ENABLE_BUFFER_STUFF_PARAM, ENCODING_TIME_EQUATION_PARAM, SEARCHING_TIME_EQUATION_PARAM
ASSIGN_FINST_CHUNK_TYPE, ATTENDED_STATUS_SLOT, CLEAR_CHUNK_TYPE, COLOR_CHUNK_TYPE, COLOR_SLOT, CURRENT_CHUNK, CURSOR_CHUNK_TYPE, EMPTY_CHUNK_TYPE, GUI_CHUNK_TYPE, HEIGHT_SLOT, KIND_SLOT, LINE_CHUNK_TYPE, MOVE_ATTENTION_CHUNK_TYPE, NEAREST_SLOT, OBJECTS_SLOT, OVAL_CHUNK_TYPE, PHRASE_CHUNK_TYPE, SCREEN_POSITION_SLOT, SCREEN_X_SLOT, SCREEN_Y_SLOT, SCREEN_Z_SLOT, SIZE_SLOT, START_TRACKING_CHUNK_TYPE, TEXT_CHUNK_TYPE, TIME_STATUS_SLOT, TOKEN_SLOT, TYPE_SLOT, VALUE_SLOT, VISUAL_BUFFER, VISUAL_CHUNK_TYPE, VISUAL_COMMAND_CHUNK_TYPE, VISUAL_LOCATION_BUFFER, VISUAL_LOCATION_CHUNK_TYPE, WIDTH_SLOT
GREATER_THAN_CURRENT_CHUNK, HIGHEST_CHUNK, LESS_THAN_CURRENT_CHUNK, LOWEST_CHUNK
STRICT_SYNCHRONIZATION_PARAM
Constructor and Description |
---|
DefaultVisualModule6() |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<IChunk> |
attendTo(PerceptualSearchResult result,
double requestTime)
snag the create the visual chunk at the visual location - actual encoding
is taken care of when the chunk is removed from the visual buffer
|
protected void |
connectToCommonReality()
called immediately after common reality connection has been established.
|
protected IVisualActivationBuffer |
createVisualActivationBuffer()
called during install process
|
protected IVisualLocationBuffer |
createVisualLocationBuffer(IVisualActivationBuffer buffer)
called during install process since models rely on only one status buffer,
the visual location buffer should use the visual activation buffer.
|
protected IVisualMemory |
createVisualMemory() |
protected void |
disconnectFromCommonReality()
called on model termination to give modules a chance to remove their
listeners
|
void |
dispose()
release any resources.
|
void |
reset()
reset the module.
|
void |
reset(boolean resetFINSTs)
reset the visual system.
|
java.util.concurrent.Future<PerceptualSearchResult> |
search(ChunkTypeRequest pattern,
double requestTime,
boolean isStuffRequest)
search perceptual memory, returning some result in the future
|
void |
setTrackedVisualChunk(IChunk visualChunk)
enable the tracking of this chunk.
|
addListener, applyParameters, assignFINST, createBuffers, dispatch, getCurrentChunk, getEncodingTimeEquation, getGreaterThanCurrentChunk, getHighestChunk, getLessThanCurrentChunk, getLowestChunk, getParameter, getPerceptualMemory, getSearchTimeEquation, getSetableParameters, getVisualActivationBuffer, getVisualChunkType, getVisualLocationBuffer, getVisualLocationChunkType, getVisualMemory, hasListeners, initialize, removeListener, setDefaultParameters, setEncodingTimeEquation, setParameter, setSearchTimeEquation
getBusyChunk, getCommonRealityExecutor, getErrorChunk, getExecutor, getFreeChunk, getNamedChunk, getNamedChunkType, getRequestedChunk, getSymbolGrounder, getUnrequestedChunk, setSymbolGrounder
getPossibleParameters, isStrictSynchronizationEnabled, setStrictSynchronizationEnabled, synchronizedTimedEvent
delayedFuture, delayedFuture, getModel, getName, getSafeName, immediateFuture, immediateReturn, install, setExecutor, uninstall
addAdapterFactory, getAdapter, removeAdapterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, assignFINST, dispatch, getEncodingTimeEquation, getSearchTimeEquation, getVisualActivationBuffer, getVisualChunkType, getVisualLocationBuffer, getVisualLocationChunkType, getVisualMemory, hasListeners, removeListener, setEncodingTimeEquation, setSearchTimeEquation
getPerceptualMemory
getCommonRealityExecutor, getSymbolGrounder, setSymbolGrounder
getExecutor, isStrictSynchronizationEnabled, setStrictSynchronizationEnabled, synchronizedTimedEvent
getModel, getName, initialize, install
uninstall
getAdapter
getPossibleParameters
public static final org.apache.commons.logging.Log LOGGER
protected IChunk _trackedVisualChunk
public void dispose()
IModule
dispose
in interface IModule
dispose
in class AbstractVisualModule
protected void disconnectFromCommonReality()
AbstractPerceptualModule
disconnectFromCommonReality
in class AbstractVisualModule
protected void connectToCommonReality()
AbstractPerceptualModule
IAgent
so that the
model can be aware of different IAfferentObject
and
IEfferentObject
sconnectToCommonReality
in class AbstractVisualModule
protected IVisualActivationBuffer createVisualActivationBuffer()
AbstractVisualModule
createVisualActivationBuffer
in class AbstractVisualModule
protected IVisualLocationBuffer createVisualLocationBuffer(IVisualActivationBuffer buffer)
AbstractVisualModule
createVisualLocationBuffer
in class AbstractVisualModule
public void reset(boolean resetFINSTs)
IVisualModule
reset
in interface IVisualModule
public void reset()
IModule
public java.util.concurrent.Future<IChunk> attendTo(PerceptualSearchResult result, double requestTime)
attendTo
in interface IPerceptualMemoryModule
org.jactr.modules.pm.visual.IVisualModule#encodeVisualChunkAt(org.jactr.core.chunk.IChunk)
public java.util.concurrent.Future<PerceptualSearchResult> search(ChunkTypeRequest pattern, double requestTime, boolean isStuffRequest)
IPerceptualMemoryModule
search
in interface IPerceptualMemoryModule
public void setTrackedVisualChunk(IChunk visualChunk)
setTrackedVisualChunk
in interface IVisualModule
visualChunk
- to the visual object or null to turn offIVisualModule.setTrackedVisualChunk(org.jactr.core.chunk.IChunk)
protected IVisualMemory createVisualMemory()
createVisualMemory
in class AbstractVisualModule