|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.eq.cat.filters.ExtentsFilter
public class ExtentsFilter
This class filters catalogs based on space,time and magnitude parameters.
Filter assumes that catalogs subjected to processing are sorted ascending by
date. Any constructor arguments can be null.
TODO do range checking and throw exceptions TODO check and add documentation
for range searching; I believe it's currently >=min & <=max (i.e. inclusive)
| Field Summary |
|---|
| Fields inherited from interface org.opensha.commons.eq.cat.filters.CatalogFilter |
|---|
FILTER_ERROR, FILTER_ERROR_NO_RESULT, FILTER_STATUS_IDLE, FILTER_STATUS_WORKING |
| Constructor Summary | |
|---|---|
ExtentsFilter()
Constructs an empty filter that will produce no results. |
|
| Method Summary | |
|---|---|
int[] |
process(MutableCatalog catalog)
Processes a given MutableCatalog against a filter. |
ExtentsFilter |
setDates(long min,
long max)
Sets date filter criteria. |
ExtentsFilter |
setDepths(double min,
double max)
Sets depth filter criteria. |
ExtentsFilter |
setLatitudes(double min,
double max)
Sets latitude filter criteria. |
ExtentsFilter |
setLongitudes(double min,
double max)
Sets longitude filter criteria. |
ExtentsFilter |
setMagnitudes(double min,
double max)
Sets magnitude filter criteria. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtentsFilter()
| Method Detail |
|---|
public ExtentsFilter setLatitudes(double min,
double max)
min - minimum latitudemax - maximum latitude
public ExtentsFilter setLongitudes(double min,
double max)
min - minimum longitudemax - maximum longitude
public ExtentsFilter setDepths(double min,
double max)
min - minimum depthmax - maximum depth
public ExtentsFilter setMagnitudes(double min,
double max)
min - minimum magnitudemax - maximum magnitude
public ExtentsFilter setDates(long min,
long max)
min - minimum date/time (UTC)max - maximum date/time (UTC)
public int[] process(MutableCatalog catalog)
CatalogFilterMutableCatalog against a filter. Returns
an array of valid event indices. Returns null if filter produces no results.
process in interface CatalogFiltercatalog - to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||