edu.nrao.sss.util
Interface Filter<T>

All Known Implementing Classes:
CompoundFilter, SkyPositionFilter

public interface Filter<T>

A filter that either blocks a particle or allows it to pass through. This filter merely blocks or allows passage -- it is not a transformer. The particles to which the filter is applied remain unchanged by their passage.

Version Info:

$Revision: 696 $
$Date: 2007-06-06 17:27:00 -0600 (Wed, 06 Jun 2007) $
$Author: dharland $ (last person to modify)

Since:
2006-12-20
Author:
David M. Harland

Method Summary
 boolean allows(T particle)
          Returns true if this filter allows particle to pass through.
 boolean blocks(T particle)
          Returns true if this filter blocks particle from passing through.
 

Method Detail

allows

boolean allows(T particle)
Returns true if this filter allows particle to pass through.

Parameters:
particle - an object attempting to pass through this filter.
Returns:
true if this filter passes particle.

blocks

boolean blocks(T particle)
Returns true if this filter blocks particle from passing through.

Parameters:
particle - an object attempting to pass through this filter.
Returns:
true if this filter blocks particle.


Copyright © 2009. All Rights Reserved.