nl.tudelft.simulation.jstats.filters
Class SnippetFilter

java.lang.Object
  extended by nl.tudelft.simulation.language.filters.AbstractFilter
      extended by nl.tudelft.simulation.jstats.filters.SnippetFilter
All Implemented Interfaces:
Serializable, Filterinterface

public class SnippetFilter
extends AbstractFilter

The modulus filter only accepts

(c) copyright 2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/dsol
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.2
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:44 $
Author:
Niels Lang Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.language.filters.AbstractFilter
inverted
 
Constructor Summary
SnippetFilter(double snippet)
          constructs a new SnippetFilter.
 
Method Summary
 boolean filter(Object entry)
           
 String getCriterium()
           
 
Methods inherited from class nl.tudelft.simulation.language.filters.AbstractFilter
accept, and, isInverted, or, setInverted, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnippetFilter

public SnippetFilter(double snippet)
constructs a new SnippetFilter. A snippet filter test only accepts one entry per snippet value. A snippet is a range in x-value.

Parameters:
snippet - the snippet to use. A snippet is a range in the x-value.
Method Detail

filter

public boolean filter(Object entry)
Specified by:
filter in class AbstractFilter
See Also:
#filter(java.lang.Object)

getCriterium

public String getCriterium()
Specified by:
getCriterium in interface Filterinterface
Specified by:
getCriterium in class AbstractFilter
See Also:
Filterinterface.getCriterium()


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.