|
||||||||||
| 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(java.lang.Object entry)
filters the entry. |
java.lang.String |
getCriterium()
returns the filter criterium |
protected java.lang.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(java.lang.Object entry)
AbstractFilter
filter in class AbstractFilterentry - the entry to filter.
AbstractFilter.filter(java.lang.Object)protected java.lang.String operatorToString()
public java.lang.String getCriterium()
AbstractFilter
getCriterium in interface FilterinterfacegetCriterium in class AbstractFilterAbstractFilter.getCriterium()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||