public class DefaultVisualMemory extends AbstractPerceptualMemory implements IVisualMemory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VISUAL_PESISTENCE_DELAY_PARAM |
MOVEMENT_TOLERANCE_PARAM, STICKY_ATTENTION_PARAM, VISUAL_FIELD_HEIGHT_PARAM, VISUAL_FIELD_HORIZONTAL_RESOLUTION_PARAM, VISUAL_FIELD_VERTICAL_RESOLUTION_PARAM, VISUAL_FIELD_WIDTH_PARAM
FINST_DURATION_TIME_PARAM, NEW_FINST_ONSET_DURATION_TIME_PARAM, NUMBER_OF_FINSTS_PARAM, SEARCH_RESULT_IDENTIFIER_KEY
Constructor and Description |
---|
DefaultVisualMemory(IVisualModule module) |
Modifier and Type | Method and Description |
---|---|
void |
attach(ACTRAgent agent)
attach must be called after the model has been connected to commmon reality
|
protected void |
fillIndexChunk(IChunk indexChunk,
IChunk encodedChunk,
ChunkTypeRequest originalRequest,
ChunkTypeRequest expandedRequest)
provides a hook to set the slot values of the returned index chunk in case
they are recycled..
|
int |
getHorizontalResolution() |
double |
getHorizontalSpan() |
double |
getMovementTolerance() |
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined.
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read
|
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set.
|
int |
getVerticalResolution() |
double |
getVerticalSpan() |
IChunk |
getVisualLocationChunkAt(double x,
double y) |
IVisualModule |
getVisualModule() |
double |
getVisualPersistenceDelay() |
protected boolean |
isAcceptable(IChunk encodedChunk,
ChunkTypeRequest originalRequest)
return true if the chunk is a visual-object of some sort
|
boolean |
isStickyAttentionEnabled() |
PerceptualSearchResult |
searchNow(ChunkTypeRequest request)
executes the visual search on the current thread.
|
void |
setHorizontalResolution(int resolution) |
void |
setHorizontalSpan(double fov) |
void |
setMovementTolerance(double tolerance) |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter
|
void |
setStickyAttentionEnabled(boolean enabled) |
void |
setVerticalResolution(int resolution) |
void |
setVerticalSpan(double fov) |
void |
setVisualPersistenceDelay(double persistenceDelay) |
addEncoder, addFeatureMap, addFilter, addListener, addRecentSearch, createDefaultComparator, detach, dispatch, getAfferentObjectListener, getEncoders, getEncodings, getFeatureMaps, getFilters, getFINSTFeatureMap, getFINSTLimit, getFINSTSpan, getIndexManager, getLastChangeTime, getLastSearchResult, getModule, getNamedChunk, getNewFINSTOnsetDuration, getObjectListener, getPendingUpdates, getRecentSearchResults, hasListeners, isAttached, removeEncoder, removeFeatureMap, removeFilter, removeListener, search, searchInternal, select, setFINSTLimit, setFINSTSpan, setNewFINSTOnsetDuration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEncoder, addFeatureMap, addFilter, addListener, detach, getEncoders, getEncodings, getFeatureMaps, getFilters, getFINSTFeatureMap, getFINSTLimit, getFINSTSpan, getIndexManager, getLastChangeTime, getLastSearchResult, getModule, getNewFINSTOnsetDuration, getPendingUpdates, getRecentSearchResults, isAttached, removeEncoder, removeFeatureMap, removeFilter, removeListener, search, setFINSTLimit, setFINSTSpan, setNewFINSTOnsetDuration
public static final java.lang.String VISUAL_PESISTENCE_DELAY_PARAM
public DefaultVisualMemory(IVisualModule module)
public int getHorizontalResolution()
getHorizontalResolution
in interface IVisualMemory
public double getHorizontalSpan()
getHorizontalSpan
in interface IVisualMemory
public double getMovementTolerance()
getMovementTolerance
in interface IVisualMemory
public int getVerticalResolution()
getVerticalResolution
in interface IVisualMemory
public double getVerticalSpan()
getVerticalSpan
in interface IVisualMemory
public void setHorizontalResolution(int resolution)
setHorizontalResolution
in interface IVisualMemory
public void setHorizontalSpan(double fov)
setHorizontalSpan
in interface IVisualMemory
public void setMovementTolerance(double tolerance)
setMovementTolerance
in interface IVisualMemory
public void setVisualPersistenceDelay(double persistenceDelay)
public double getVisualPersistenceDelay()
public void setVerticalResolution(int resolution)
setVerticalResolution
in interface IVisualMemory
public void setVerticalSpan(double fov)
setVerticalSpan
in interface IVisualMemory
public void attach(ACTRAgent agent)
AbstractPerceptualMemory
attach
in interface IPerceptualMemory
attach
in class AbstractPerceptualMemory
public IChunk getVisualLocationChunkAt(double x, double y)
getVisualLocationChunkAt
in interface IVisualMemory
public IVisualModule getVisualModule()
getVisualModule
in interface IVisualMemory
public PerceptualSearchResult searchNow(ChunkTypeRequest request)
searchNow
in interface IPerceptualMemory
searchNow
in class AbstractPerceptualMemory
request
- protected boolean isAcceptable(IChunk encodedChunk, ChunkTypeRequest originalRequest)
isAcceptable
in class AbstractPerceptualMemory
encodedChunk
- originalRequest
- AbstractPerceptualMemory.isAcceptable(org.jactr.core.chunk.IChunk,
org.jactr.core.production.request.ChunkTypeRequest)
protected void fillIndexChunk(IChunk indexChunk, IChunk encodedChunk, ChunkTypeRequest originalRequest, ChunkTypeRequest expandedRequest)
AbstractPerceptualMemory
fillIndexChunk
in class AbstractPerceptualMemory
indexChunk
- encodedChunk
- originalRequest
- expandedRequest
- AbstractPerceptualMemory.fillIndexChunk(org.jactr.core.chunk.IChunk,
org.jactr.core.chunk.IChunk,
org.jactr.core.production.request.ChunkTypeRequest,
org.jactr.core.production.request.ChunkTypeRequest)
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
getParameter
in class AbstractPerceptualMemory
key
- Description of the Parameterpublic void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized
setParameter
in class AbstractPerceptualMemory
public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters
in interface IParameterized
getPossibleParameters
in class AbstractPerceptualMemory
public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters
in interface IParameterized
getSetableParameters
in class AbstractPerceptualMemory
public boolean isStickyAttentionEnabled()
isStickyAttentionEnabled
in interface IVisualMemory
public void setStickyAttentionEnabled(boolean enabled)
setStickyAttentionEnabled
in interface IVisualMemory