edu.sc.seis.sod.source.event
Class EventDCQuerier

java.lang.Object
  extended by edu.sc.seis.sod.source.event.EventDCQuerier

public class EventDCQuerier
extends java.lang.Object


Constructor Summary
EventDCQuerier(java.lang.String serverName, java.lang.String serverDNS, int numRetries, org.w3c.dom.Element config)
           
 
Method Summary
 Area getArea()
           
 java.lang.String[] getCatalogs()
           
 java.lang.String[] getContributors()
           
 ProxyEventDC getEventDC()
           
 MagnitudeRange getMagRange()
           
 QuantityImpl getMaxDepth()
           
 QuantityImpl getMinDepth()
           
 int getRetries()
           
 java.lang.String getServerDNS()
           
 java.lang.String getServerName()
           
static boolean putPassingMagFirst(Origin o, MagnitudeRange magRange)
          Reorder the magnitudes in o such that a magnitude >= minMag and <= maxMag with a type in searchTypes is in the 0th position of the magnitudes array
 CacheEvent[] query(MicroSecondTimeRange tr)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventDCQuerier

public EventDCQuerier(java.lang.String serverName,
                      java.lang.String serverDNS,
                      int numRetries,
                      org.w3c.dom.Element config)
               throws ConfigurationException
Throws:
ConfigurationException
Method Detail

getEventDC

public ProxyEventDC getEventDC()

query

public CacheEvent[] query(MicroSecondTimeRange tr)

putPassingMagFirst

public static boolean putPassingMagFirst(Origin o,
                                         MagnitudeRange magRange)
Reorder the magnitudes in o such that a magnitude >= minMag and <= maxMag with a type in searchTypes is in the 0th position of the magnitudes array

Returns:
- True if a magnitude is found and moved into the 0th position

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRetries

public int getRetries()

getCatalogs

public java.lang.String[] getCatalogs()

getContributors

public java.lang.String[] getContributors()

getMinDepth

public QuantityImpl getMinDepth()

getMaxDepth

public QuantityImpl getMaxDepth()

getServerName

public java.lang.String getServerName()

getServerDNS

public java.lang.String getServerDNS()

getMagRange

public MagnitudeRange getMagRange()

getArea

public Area getArea()