public class StationXML extends java.lang.Object implements NetworkSource
Modifier and Type | Field and Description |
---|---|
static byte[] |
EMPTY_STATIONXML |
static TimeInterval |
ONE_DAY |
static TimeInterval |
ONE_SECOND |
static java.lang.String |
URL_ELEMENT |
Constructor and Description |
---|
StationXML(org.w3c.dom.Element config) |
Modifier and Type | Method and Description |
---|---|
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(NetworkAttrImpl net) |
void |
setConstraints(NetworkQueryConstraints constraints) |
static java.lang.String |
toDateString(MicroSecondDate msd) |
public static final TimeInterval ONE_SECOND
public static final TimeInterval ONE_DAY
public static final java.lang.String URL_ELEMENT
public static final byte[] EMPTY_STATIONXML
public StationXML(org.w3c.dom.Element config) throws ConfigurationException
ConfigurationException
public java.lang.String getDNS()
public java.lang.String getName()
Source
public TimeInterval getRefreshInterval()
getRefreshInterval
in interface NetworkSource
public CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
getNetwork
in interface NetworkSource
public java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name) throws NetworkNotFound
getNetworkByName
in interface NetworkSource
NetworkNotFound
public java.util.List<? extends NetworkAttrImpl> getNetworks()
getNetworks
in interface NetworkSource
public java.util.List<? extends StationImpl> getStations(NetworkAttrImpl net)
getStations
in interface NetworkSource
public java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
getChannels
in interface NetworkSource
public QuantityImpl getSensitivity(ChannelId chanId) throws ChannelNotFound, InvalidResponse
getSensitivity
in interface NetworkSource
ChannelNotFound
InvalidResponse
public Instrumentation getInstrumentation(ChannelId chanId) throws ChannelNotFound, InvalidResponse
getInstrumentation
in interface NetworkSource
ChannelNotFound
InvalidResponse
public void setConstraints(NetworkQueryConstraints constraints)
setConstraints
in interface NetworkSource
public static java.lang.String toDateString(MicroSecondDate msd)