edu.sc.seis.sod.source.network
Class StationXML

java.lang.Object
  extended by edu.sc.seis.sod.source.network.StationXML
All Implemented Interfaces:
NetworkSource, Source

public class StationXML
extends java.lang.Object
implements NetworkSource


Field Summary
static byte[] EMPTY_STATIONXML
           
static TimeInterval ONE_DAY
           
static TimeInterval ONE_SECOND
           
static java.lang.String URL_ELEMENT
           
 
Constructor Summary
StationXML()
           
StationXML(org.w3c.dom.Element config)
           
 
Method Summary
 java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
           
 java.lang.String getDNS()
           
 Instrumentation getInstrumentation(ChannelId chanId)
           
 java.lang.String getName()
          returns the name of the server.
 CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
           
 java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name)
           
 java.util.List<? extends NetworkAttrImpl> getNetworks()
           
 TimeInterval getRefreshInterval()
           
 QuantityImpl getSensitivity(ChannelId chanId)
           
 java.util.List<? extends StationImpl> getStations(NetworkId net)
           
 void setConstrains(NetworkQueryConstraints constraints)
           
static java.lang.String toDateString(MicroSecondDate msd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONE_SECOND

public static final TimeInterval ONE_SECOND

ONE_DAY

public static final TimeInterval ONE_DAY

URL_ELEMENT

public static final java.lang.String URL_ELEMENT
See Also:
Constant Field Values

EMPTY_STATIONXML

public static final byte[] EMPTY_STATIONXML
Constructor Detail

StationXML

public StationXML()
           throws ConfigurationException
Throws:
ConfigurationException

StationXML

public StationXML(org.w3c.dom.Element config)
           throws ConfigurationException
Throws:
ConfigurationException
Method Detail

getDNS

public java.lang.String getDNS()

getName

public java.lang.String getName()
Description copied from interface: Source
returns the name of the server. The name to which the server's servant instance is bound in the CORBA naming service. For non-corba servers, this string can be anything that seems reasonable and is relatively unique

Specified by:
getName in interface Source

getRefreshInterval

public TimeInterval getRefreshInterval()
Specified by:
getRefreshInterval in interface NetworkSource

getNetwork

public CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
Specified by:
getNetwork in interface NetworkSource

getNetworkByName

public java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name)
                                                              throws NetworkNotFound
Specified by:
getNetworkByName in interface NetworkSource
Throws:
NetworkNotFound

getNetworks

public java.util.List<? extends NetworkAttrImpl> getNetworks()
Specified by:
getNetworks in interface NetworkSource

getStations

public java.util.List<? extends StationImpl> getStations(NetworkId net)
Specified by:
getStations in interface NetworkSource

getChannels

public java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
Specified by:
getChannels in interface NetworkSource

getSensitivity

public QuantityImpl getSensitivity(ChannelId chanId)
                            throws ChannelNotFound,
                                   InvalidResponse
Specified by:
getSensitivity in interface NetworkSource
Throws:
ChannelNotFound
InvalidResponse

getInstrumentation

public Instrumentation getInstrumentation(ChannelId chanId)
                                   throws ChannelNotFound,
                                          InvalidResponse
Specified by:
getInstrumentation in interface NetworkSource
Throws:
ChannelNotFound
InvalidResponse

setConstrains

public void setConstrains(NetworkQueryConstraints constraints)
Specified by:
setConstrains in interface NetworkSource

toDateString

public static java.lang.String toDateString(MicroSecondDate msd)