org.jactr.modules.pm.visual.memory.impl.filter
Class NearestVisualLocationFilter

java.lang.Object
  extended by org.jactr.modules.pm.visual.memory.impl.filter.AbstractVisualLocationIndexFilter<java.lang.Double>
      extended by org.jactr.modules.pm.visual.memory.impl.filter.NearestVisualLocationFilter
All Implemented Interfaces:
IIndexFilter

public class NearestVisualLocationFilter
extends AbstractVisualLocationIndexFilter<java.lang.Double>

provides nearest filtering and also normalizes all references to current, highest,lowest

Author:
harrison

Constructor Summary
NearestVisualLocationFilter()
           
NearestVisualLocationFilter(double[] referenceLocation)
           
 
Method Summary
 boolean accept(ChunkTypeRequest template)
           
 java.util.Comparator<ChunkTypeRequest> getComparator()
           
 IIndexFilter instantiate(ChunkTypeRequest request)
          these are self-templating.
 void normalizeRequest(ChunkTypeRequest searchRequest)
          can be used to expand variables or special values
 
Methods inherited from class org.jactr.modules.pm.visual.memory.impl.filter.AbstractVisualLocationIndexFilter
getPerceptualMemory, getWeight, setPerceptualMemory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NearestVisualLocationFilter

public NearestVisualLocationFilter()

NearestVisualLocationFilter

public NearestVisualLocationFilter(double[] referenceLocation)
Method Detail

accept

public boolean accept(ChunkTypeRequest template)

getComparator

public java.util.Comparator<ChunkTypeRequest> getComparator()

instantiate

public IIndexFilter instantiate(ChunkTypeRequest request)
Description copied from interface: IIndexFilter
these are self-templating. The master copy is installed and during the search processing a copy is instantiated.

Returns:

normalizeRequest

public void normalizeRequest(ChunkTypeRequest searchRequest)
Description copied from interface: IIndexFilter
can be used to expand variables or special values