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

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.VectorVisualLocationFilter
All Implemented Interfaces:
IIndexFilter

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

enables search along a path defined by one visual-location, an angle (from vertical, -PI - PI), and a threshold. The filter will prioritize visual-location candidates based on their distance from the line defined by visual-location and angle, culling any of those beyond the threshold.

Author:
harrison

Field Summary
static java.lang.String ANGLE_SLOT
           
static java.lang.String DESTINATION_SLOT
           
static java.lang.String ORIGIN_SLOT
           
static java.lang.String THRESHOLD_SLOT
           
 
Constructor Summary
VectorVisualLocationFilter()
           
 
Method Summary
 boolean accept(ChunkTypeRequest visualLocationTemplate)
           
 java.util.Comparator<ChunkTypeRequest> getComparator()
           
 IIndexFilter instantiate(ChunkTypeRequest request)
          these are self-templating.
 void normalizeRequest(ChunkTypeRequest request)
          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
 

Field Detail

ANGLE_SLOT

public static final java.lang.String ANGLE_SLOT
See Also:
Constant Field Values

ORIGIN_SLOT

public static final java.lang.String ORIGIN_SLOT
See Also:
Constant Field Values

DESTINATION_SLOT

public static final java.lang.String DESTINATION_SLOT
See Also:
Constant Field Values

THRESHOLD_SLOT

public static final java.lang.String THRESHOLD_SLOT
See Also:
Constant Field Values
Constructor Detail

VectorVisualLocationFilter

public VectorVisualLocationFilter()
Method Detail

accept

public boolean accept(ChunkTypeRequest visualLocationTemplate)

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 request)
Description copied from interface: IIndexFilter
can be used to expand variables or special values