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 TimeInterval ONE_DAY
           
static TimeInterval ONE_SECOND
           
static java.lang.String URL_ELEMENT
           
 
Constructor Summary
StationXML(org.w3c.dom.Element config)
           
 
Method Summary
 java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
           
 java.lang.String getDNS()
          returns the DNSName of the server.
 Instrumentation getInstrumentation(ChannelId chanId)
           
 java.lang.String getName()
          returns the sourceName 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)
           
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
Constructor Detail

StationXML

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

getDNS

public java.lang.String getDNS()
Description copied from interface: Source
returns the DNSName of the server. The context under which the objectName is registered in the CORBA naming service. For non-corba servers, this string can be anything that seems reasonable and is relatively unique

Specified by:
getDNS in interface Source
Returns:
a String value

getName

public java.lang.String getName()
Description copied from interface: Source
returns the sourceName 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

toDateString

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