edu.harvard.seas.iis.abilities.analysis
Class MovementFilter

java.lang.Object
  extended by edu.harvard.seas.iis.abilities.analysis.MovementFilter
Direct Known Subclasses:
SimpleMovementFilter

public abstract class MovementFilter
extends Object


Constructor Summary
MovementFilter()
           
 
Method Summary
abstract  boolean evaluateMovement(Movement m)
          The method for subclasses to implement
 Vector<Movement> filter(Collection<Movement> movements)
           
static Vector<Movement> filter(Collection<MovementFilter> filters, Collection<Movement> movements)
          Applies a collection of filters to a collection of movements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovementFilter

public MovementFilter()
Method Detail

evaluateMovement

public abstract boolean evaluateMovement(Movement m)
The method for subclasses to implement

Returns:
true if the movement should be kept, false otherwise

filter

public Vector<Movement> filter(Collection<Movement> movements)

filter

public static Vector<Movement> filter(Collection<MovementFilter> filters,
                                      Collection<Movement> movements)
Applies a collection of filters to a collection of movements

Parameters:
filters -
movements -
Returns: