|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.language.filters.AbstractFilter
nl.tudelft.simulation.language.filters.CompositeFilter
public class CompositeFilter
The composite filter combines two filters.
(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
Field Summary | |
---|---|
static short |
AND
the AND operator |
static short |
OR
the OR operator |
Fields inherited from class nl.tudelft.simulation.language.filters.AbstractFilter |
---|
inverted |
Constructor Summary | |
---|---|
CompositeFilter(Filterinterface filter1,
Filterinterface filter2,
short operator)
constructs a new CompositeFilter |
Method Summary | |
---|---|
protected boolean |
filter(Object entry)
filters the entry. |
String |
getCriterium()
returns the filter criterium |
protected String |
operatorToString()
Converts the operator of this filter into a human readable string. |
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 |
Field Detail |
---|
public static final short AND
public static final short OR
Constructor Detail |
---|
public CompositeFilter(Filterinterface filter1, Filterinterface filter2, short operator)
filter1
- the first filterfilter2
- the second filteroperator
- the operator (AND or OR)Method Detail |
---|
protected boolean filter(Object entry)
AbstractFilter
filter
in class AbstractFilter
entry
- the entry to filter.
AbstractFilter.filter(java.lang.Object)
protected String operatorToString()
public String getCriterium()
AbstractFilter
getCriterium
in interface Filterinterface
getCriterium
in class AbstractFilter
AbstractFilter.getCriterium()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |