org.jactr.modules.pm.visual.six
Class DefaultVisualModule6
java.lang.Object
org.jactr.core.module.AbstractModule
org.jactr.core.module.asynch.AbstractAsynchronousModule
org.jactr.modules.pm.AbstractPerceptualModule
org.jactr.modules.pm.visual.AbstractVisualModule
org.jactr.modules.pm.visual.six.DefaultVisualModule6
- All Implemented Interfaces:
- IAsynchronousModule, IModule, IInitializable, IInstallable, IParameterized, IPerceptualMemoryModule, IPerceptualModule, IVisualModule
public class DefaultVisualModule6
- extends AbstractVisualModule
- implements IVisualModule
|
Field Summary |
static org.apache.commons.logging.Log |
LOGGER
logger definition |
| Fields inherited from interface org.jactr.modules.pm.visual.IVisualModule |
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 |
|
Method Summary |
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 |
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. |
| Methods inherited from class org.jactr.modules.pm.visual.AbstractVisualModule |
addListener, assignFINST, dispatch, getCurrentChunk, getEncodingTimeEquation, getGreaterThanCurrentChunk, getHighestChunk, getLessThanCurrentChunk, getLowestChunk, getParameter, getPerceptualMemory, getSearchTimeEquation, getSetableParameters, getVisualActivationBuffer, getVisualChunkType, getVisualLocationBuffer, getVisualLocationChunkType, getVisualMemory, hasListeners, initialize, removeListener, setParameter |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jactr.modules.pm.visual.IVisualModule |
addListener, assignFINST, dispatch, getEncodingTimeEquation, getSearchTimeEquation, getVisualActivationBuffer, getVisualChunkType, getVisualLocationBuffer, getVisualLocationChunkType, getVisualMemory, hasListeners, removeListener |
LOGGER
public static final org.apache.commons.logging.Log LOGGER
- logger definition
DefaultVisualModule6
public DefaultVisualModule6()
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 AbstractVisualModule
reset
public void reset(boolean resetFINSTs)
- Description copied from interface:
IVisualModule
- reset the visual system. this will typically clear both buffers and force
the visual chunk encoders to flush their pre-encoded visual chunks. the
visual map should remain in tact unless a refresh command is sent to common
reality
- Specified by:
reset in interface IVisualModule
reset
public void reset()
- Description copied from interface:
IModule
- reset the module. This will typically clear the owned buffers and abort
any module specific operations
- Specified by:
reset in interface IModule
attendTo
public 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
- Specified by:
attendTo in interface IPerceptualMemoryModule
- Returns:
- See Also:
org.jactr.modules.pm.visual.IVisualModule#encodeVisualChunkAt(org.jactr.core.chunk.IChunk)
search
public java.util.concurrent.Future<PerceptualSearchResult> search(ChunkTypeRequest pattern,
double requestTime,
boolean isStuffRequest)
- Description copied from interface:
IPerceptualMemoryModule
- search perceptual memory, returning some result in the future
- Specified by:
search in interface IPerceptualMemoryModule
- Returns:
setTrackedVisualChunk
public void setTrackedVisualChunk(IChunk visualChunk)
- enable the tracking of this chunk. if visualChunk is null, it will turn off
tracking.
- Specified by:
setTrackedVisualChunk in interface IVisualModule
- Parameters:
visualChunk - to the visual object or null to turn off- See Also:
IVisualModule.setTrackedVisualChunk(org.jactr.core.chunk.IChunk)