org.jactr.modules.pm.common.memory.filter
Interface IIndexFilter

All Known Implementing Classes:
AbstractIndexFilter, AbstractVisualLocationIndexFilter, AttendedAudioEventFilter, AttendedVisualLocationFilter, NearestAuralFilter, NearestVisualLocationFilter, NumericIndexFilter, ValueVisualLocationFilter, VectorVisualLocationFilter

public interface IIndexFilter

interface that is responsible for the second stage of a perceptual index search. The first stage is handled by the IFeatureMap and provides a list of candidates. the index filters then accept/reject and provide the ability to sort the results using the comparator

Author:
harrison

Method Summary
 boolean accept(ChunkTypeRequest template)
           
 java.util.Comparator<ChunkTypeRequest> getComparator()
           
 IPerceptualMemory getPerceptualMemory()
           
 int getWeight()
           
 IIndexFilter instantiate(ChunkTypeRequest request)
          these are self-templating.
 void normalizeRequest(ChunkTypeRequest request)
          can be used to expand variables or special values
 void setPerceptualMemory(IPerceptualMemory memory)
           
 

Method Detail

normalizeRequest

void normalizeRequest(ChunkTypeRequest request)
can be used to expand variables or special values

Parameters:
request -

setPerceptualMemory

void setPerceptualMemory(IPerceptualMemory memory)

getPerceptualMemory

IPerceptualMemory getPerceptualMemory()

instantiate

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

Parameters:
request -
Returns:

getWeight

int getWeight()

accept

boolean accept(ChunkTypeRequest template)

getComparator

java.util.Comparator<ChunkTypeRequest> getComparator()