org.jactr.modules.pm.aural.memory.impl.filter
Class NearestAuralFilter

java.lang.Object
  extended by org.jactr.modules.pm.common.memory.filter.AbstractIndexFilter<java.lang.Double>
      extended by org.jactr.modules.pm.aural.memory.impl.filter.NearestAuralFilter
All Implemented Interfaces:
IIndexFilter

public class NearestAuralFilter
extends AbstractIndexFilter<java.lang.Double>

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

Author:
harrison

Constructor Summary
NearestAuralFilter(double[] referenceLocation, IAuralModule auralModule)
           
NearestAuralFilter(IAuralModule auralModule)
           
 
Method Summary
 boolean accept(ChunkTypeRequest template)
           
 IAuralModule getAuralModule()
           
 java.util.Comparator<ChunkTypeRequest> getComparator()
           
 IIndexFilter instantiate(ChunkTypeRequest request)
          these are self-templating.
 
Methods inherited from class org.jactr.modules.pm.common.memory.filter.AbstractIndexFilter
getPerceptualMemory, getWeight, normalizeRequest, setPerceptualMemory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NearestAuralFilter

public NearestAuralFilter(IAuralModule auralModule)

NearestAuralFilter

public NearestAuralFilter(double[] referenceLocation,
                          IAuralModule auralModule)
Method Detail

getAuralModule

public IAuralModule getAuralModule()

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: