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

java.lang.Object
  extended by edu.sc.seis.sod.subsetter.origin.RemoveEventDuplicate
All Implemented Interfaces:
SodElement, OriginSubsetter, Subsetter
Direct Known Subclasses:
SimilarEvent

public class RemoveEventDuplicate
extends java.lang.Object
implements OriginSubsetter


Field Summary
protected  QuantityImpl depthVariance
           
protected  QuantityImpl distanceVariance
           
protected  QuantityImpl timeVariance
           
 
Constructor Summary
RemoveEventDuplicate()
           
RemoveEventDuplicate(org.w3c.dom.Element config)
           
RemoveEventDuplicate(QuantityImpl timeVariance, QuantityImpl distanceVariance, QuantityImpl depthVariance)
           
 
Method Summary
 StringTree accept(CacheEvent eventAccess, EventAttrImpl eventAttr, OriginImpl preferred_origin)
           
 java.util.List getEventsNearTimeAndDepth(Origin preferred_origin)
           
 StatefulEventDB getEventStatusTable()
           
 boolean isDistanceClose(CacheEvent eventA, Origin originB)
           
protected  void setDepthVariance(QuantityImpl depthVariance)
           
protected  void setDistanceVariance(QuantityImpl maxDistance)
           
protected  void setTimeVariance(QuantityImpl timeVariance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeVariance

protected QuantityImpl timeVariance

distanceVariance

protected QuantityImpl distanceVariance

depthVariance

protected QuantityImpl depthVariance
Constructor Detail

RemoveEventDuplicate

public RemoveEventDuplicate(org.w3c.dom.Element config)
                     throws ConfigurationException
Throws:
ConfigurationException

RemoveEventDuplicate

public RemoveEventDuplicate(QuantityImpl timeVariance,
                            QuantityImpl distanceVariance,
                            QuantityImpl depthVariance)
                     throws ConfigurationException
Throws:
ConfigurationException

RemoveEventDuplicate

public RemoveEventDuplicate()
Method Detail

getEventStatusTable

public StatefulEventDB getEventStatusTable()
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

accept

public StringTree accept(CacheEvent eventAccess,
                         EventAttrImpl eventAttr,
                         OriginImpl preferred_origin)
                  throws java.lang.Exception
Specified by:
accept in interface OriginSubsetter
Throws:
java.lang.Exception

isDistanceClose

public boolean isDistanceClose(CacheEvent eventA,
                               Origin originB)

getEventsNearTimeAndDepth

public java.util.List getEventsNearTimeAndDepth(Origin preferred_origin)
                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

setTimeVariance

protected void setTimeVariance(QuantityImpl timeVariance)
                        throws ConfigurationException
Throws:
ConfigurationException

setDistanceVariance

protected void setDistanceVariance(QuantityImpl maxDistance)
                            throws ConfigurationException
Throws:
ConfigurationException

setDepthVariance

protected void setDepthVariance(QuantityImpl depthVariance)
                         throws ConfigurationException
Throws:
ConfigurationException