org.jactr.modules.pm.visual.visicon.map.feature
Class AbstractFeatureMap<T>

java.lang.Object
  extended by org.jactr.modules.pm.visual.visicon.map.feature.AbstractFeatureMap<T>
All Implemented Interfaces:
IAfferentObjectListener, IFeatureMap, IVisualFeatureMap
Direct Known Subclasses:
ColorFeatureMap, DistanceFeatureMap, KindFeatureMap, LocationFeatureMap, SizeFeatureMap, VisibilityFeatureMap

public abstract class AbstractFeatureMap<T>
extends java.lang.Object
implements IVisualFeatureMap


Constructor Summary
AbstractFeatureMap()
           
 
Method Summary
 void addListener(IVisualFeatureMapListener listener, java.util.concurrent.Executor executor)
           
 void afferentObjectAdded(org.commonreality.object.IAfferentObject afferentObject)
           
 void afferentObjectRemoved(org.commonreality.object.IAfferentObject afferentObject)
           
 void afferentObjectUpdated(org.commonreality.object.IAfferentObject afferentObject, org.commonreality.object.delta.IObjectDelta delta)
           
 void dispose()
           
abstract  T getInformation(org.commonreality.identifier.IIdentifier identifier)
           
 IVisualMap getVisualMap()
           
abstract  boolean isInterestedIn(ChunkTypeRequest request)
          returns true if this chunk pattern requires this feature map
 boolean isInterestedIn(org.commonreality.object.IAfferentObject object)
           
 void removeListener(IVisualFeatureMapListener listener)
           
 void setVisualMap(IVisualMap visualMap)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jactr.modules.pm.common.map.IFeatureMap
clear, fillSlotValues, getCandidateRealObjects
 

Constructor Detail

AbstractFeatureMap

public AbstractFeatureMap()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface IFeatureMap

addListener

public void addListener(IVisualFeatureMapListener listener,
                        java.util.concurrent.Executor executor)
Specified by:
addListener in interface IVisualFeatureMap

removeListener

public void removeListener(IVisualFeatureMapListener listener)
Specified by:
removeListener in interface IVisualFeatureMap

setVisualMap

public void setVisualMap(IVisualMap visualMap)
Specified by:
setVisualMap in interface IVisualFeatureMap

getInformation

public abstract T getInformation(org.commonreality.identifier.IIdentifier identifier)

afferentObjectUpdated

public void afferentObjectUpdated(org.commonreality.object.IAfferentObject afferentObject,
                                  org.commonreality.object.delta.IObjectDelta delta)
Specified by:
afferentObjectUpdated in interface IAfferentObjectListener

afferentObjectRemoved

public void afferentObjectRemoved(org.commonreality.object.IAfferentObject afferentObject)
Specified by:
afferentObjectRemoved in interface IAfferentObjectListener

afferentObjectAdded

public void afferentObjectAdded(org.commonreality.object.IAfferentObject afferentObject)
Specified by:
afferentObjectAdded in interface IAfferentObjectListener

isInterestedIn

public abstract boolean isInterestedIn(ChunkTypeRequest request)
returns true if this chunk pattern requires this feature map

Specified by:
isInterestedIn in interface IFeatureMap
Parameters:
request -
Returns:

isInterestedIn

public boolean isInterestedIn(org.commonreality.object.IAfferentObject object)
Specified by:
isInterestedIn in interface IAfferentObjectListener

getVisualMap

public IVisualMap getVisualMap()
Specified by:
getVisualMap in interface IVisualFeatureMap