public abstract class AbstractFilter extends Object implements Filterinterface
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
Modifier and Type | Field and Description |
---|---|
protected boolean |
inverted
is this filter inverted
|
Constructor and Description |
---|
AbstractFilter()
constructs a new AbstractFilter
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Object entry)
a filter defines whether to accept a value in a chart
|
Filterinterface |
and(Filterinterface filter)
adds filter to this filter and returns the composed filter
|
protected abstract boolean |
filter(Object entry)
filters the entry.
|
abstract String |
getCriterium()
returns the filter criterium
|
boolean |
isInverted()
is the filter inverted?
|
Filterinterface |
or(Filterinterface filter)
creates a new composite filter which is one or two
|
void |
setInverted(boolean inverted)
inverts the filter
|
String |
toString() |
public boolean isInverted()
Filterinterface
isInverted
in interface Filterinterface
Filterinterface.isInverted()
public void setInverted(boolean inverted)
Filterinterface
setInverted
in interface Filterinterface
inverted
- whether to invert the filter#setInverted(boolean)
public boolean accept(Object entry)
Filterinterface
accept
in interface Filterinterface
entry
- the entry to filterFilterinterface.accept(java.lang.Object)
protected abstract boolean filter(Object entry)
entry
- the entry to filter.public abstract String getCriterium()
getCriterium
in interface Filterinterface
public Filterinterface and(Filterinterface filter)
and
in interface Filterinterface
filter
- the filter to addpublic Filterinterface or(Filterinterface filter)
or
in interface Filterinterface
filter
- the filter to addpublic String toString()
toString
in class Object
Object.toString()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.