edu.sc.seis.sod.subsetter.origin
Class OriginPointDistance

java.lang.Object
  extended by edu.sc.seis.sod.subsetter.DistanceRangeSubsetter
      extended by edu.sc.seis.sod.subsetter.origin.AbstractOriginPoint
          extended by edu.sc.seis.sod.subsetter.origin.OriginPointDistance
All Implemented Interfaces:
SodElement, OriginSubsetter, Subsetter

public class OriginPointDistance
extends AbstractOriginPoint
implements OriginSubsetter


Field Summary
 
Fields inherited from class edu.sc.seis.sod.subsetter.origin.AbstractOriginPoint
latitude, longitude
 
Constructor Summary
OriginPointDistance(org.w3c.dom.Element config)
           
 
Method Summary
 StringTree accept(CacheEvent event, EventAttrImpl eventAttr, OriginImpl origin)
          Accepts an origin only if it lies within the given distance range of the given lat and lon.
 Area getArea()
           
 
Methods inherited from class edu.sc.seis.sod.subsetter.origin.AbstractOriginPoint
getLatLon
 
Methods inherited from class edu.sc.seis.sod.subsetter.DistanceRangeSubsetter
getMax, getMin, getUnitRange, processConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OriginPointDistance

public OriginPointDistance(org.w3c.dom.Element config)
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

accept

public StringTree accept(CacheEvent event,
                         EventAttrImpl eventAttr,
                         OriginImpl origin)
Accepts an origin only if it lies within the given distance range of the given lat and lon.

Specified by:
accept in interface OriginSubsetter

getArea

public Area getArea()