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()
FilterinterfaceisInverted in interface FilterinterfaceFilterinterface.isInverted()public void setInverted(boolean inverted)
FilterinterfacesetInverted in interface Filterinterfaceinverted - whether to invert the filter#setInverted(boolean)public boolean accept(Object entry)
Filterinterfaceaccept in interface Filterinterfaceentry - 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 Filterinterfacepublic Filterinterface and(Filterinterface filter)
and in interface Filterinterfacefilter - the filter to addpublic Filterinterface or(Filterinterface filter)
or in interface Filterinterfacefilter - the filter to addpublic String toString()
toString in class ObjectObject.toString()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.