org.jactr.modules.pm.common.memory.map
Class AbstractFeatureMap<T>
java.lang.Object
org.jactr.modules.pm.common.memory.map.AbstractFeatureMap<T>
- All Implemented Interfaces:
- IAfferentObjectListener, IFeatureMap<T>
- Direct Known Subclasses:
- AbstractAuralFeatureMap, AbstractSortedFeatureMap, AbstractVisualFeatureMap
public abstract class AbstractFeatureMap<T>
- extends java.lang.Object
- implements IFeatureMap<T>
|
Constructor Summary |
AbstractFeatureMap(java.lang.String requestSlotName,
java.lang.String crPropertyName)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFeatureMap
public AbstractFeatureMap(java.lang.String requestSlotName,
java.lang.String crPropertyName)
addListener
public void addListener(IFeatureMapListener listener,
java.util.concurrent.Executor executor)
- Specified by:
addListener in interface IFeatureMap<T>
removeListener
public void removeListener(IFeatureMapListener listener)
- Specified by:
removeListener in interface IFeatureMap<T>
setPerceptualMemory
public void setPerceptualMemory(IPerceptualMemory memory)
- Specified by:
setPerceptualMemory in interface IFeatureMap<T>
getPerceptualMemory
public IPerceptualMemory getPerceptualMemory()
- Specified by:
getPerceptualMemory in interface IFeatureMap<T>
clear
public final void clear()
- Specified by:
clear in interface IFeatureMap<T>
dispose
public void dispose()
- Specified by:
dispose in interface IFeatureMap<T>
fillSlotValues
public void fillSlotValues(ChunkTypeRequest mutableRequest,
org.commonreality.identifier.IIdentifier identifier,
IChunk encodedChunk,
ChunkTypeRequest originalSearchRequest)
- Description copied from interface:
IFeatureMap
- fill the slot values accordingly for this identifier at the mutablePattern
location this is then used to further specify the actual location
chunk that will be returned
- Specified by:
fillSlotValues in interface IFeatureMap<T>
- Parameters:
mutableRequest - the pseudo visual location to be setupencodedChunk - TODO
getInformation
public final T getInformation(org.commonreality.identifier.IIdentifier identifier)
- Description copied from interface:
IFeatureMap
- returns the feature value for this object
- Specified by:
getInformation in interface IFeatureMap<T>
- Returns:
getCandidateRealObjects
public final void getCandidateRealObjects(ChunkTypeRequest request,
java.util.Set<org.commonreality.identifier.IIdentifier> container)
- Description copied from interface:
IFeatureMap
- return all the identifiers of all possible objects that can exist at the
visual location defined by this search pattern if nothing is available, and
empty collection is to be returned
- Specified by:
getCandidateRealObjects in interface IFeatureMap<T>
isInterestedIn
public boolean isInterestedIn(ChunkTypeRequest request)
- is
getRelevantSlotName() is not null, this will check to see if
the request contains that slot name.
- Specified by:
isInterestedIn in interface IFeatureMap<T>
- Parameters:
request -
- Returns:
- See Also:
IFeatureMap.isInterestedIn(org.jactr.core.production.request.ChunkTypeRequest)
afferentObjectAdded
public final void afferentObjectAdded(org.commonreality.object.IAfferentObject object)
- Specified by:
afferentObjectAdded in interface IAfferentObjectListener
afferentObjectRemoved
public final void afferentObjectRemoved(org.commonreality.object.IAfferentObject object)
- Specified by:
afferentObjectRemoved in interface IAfferentObjectListener
afferentObjectUpdated
public final void afferentObjectUpdated(org.commonreality.object.IAfferentObject object,
org.commonreality.object.delta.IObjectDelta delta)
- Specified by:
afferentObjectUpdated in interface IAfferentObjectListener