org.jactr.modules.pm.visual.memory.impl.filter
Class VectorVisualLocationFilter
java.lang.Object
org.jactr.modules.pm.visual.memory.impl.filter.AbstractVisualLocationIndexFilter<java.lang.Double>
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VectorVisualLocationFilter
public VectorVisualLocationFilter()
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