Package edu.sc.seis.sod.source.network
Class LoadedNetworkSource
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.network.AbstractNetworkSource
edu.sc.seis.sod.source.network.WrappingNetworkSource
edu.sc.seis.sod.source.network.LoadedNetworkSource
- All Implemented Interfaces:
NetworkSource
,Source
public class LoadedNetworkSource extends WrappingNetworkSource implements NetworkSource
-
Field Summary
Fields inherited from class edu.sc.seis.sod.source.network.AbstractNetworkSource
constraints, REFRESH_ELEMENT, refreshInterval
Fields inherited from class edu.sc.seis.sod.source.AbstractSource
name, NAME_ELEMENT, RETRIES_ELEMENT
-
Constructor Summary
Constructors Constructor Description LoadedNetworkSource(NetworkSource wrapped, java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Station> allStations, edu.sc.seis.seisFile.fdsnws.stationxml.Station sta)
-
Method Summary
Modifier and Type Method Description java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Channel>
getChannels(edu.sc.seis.seisFile.fdsnws.stationxml.Station station)
edu.sc.seis.seisFile.fdsnws.stationxml.Response
getResponse(edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan)
java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Station>
getStations(edu.sc.seis.seisFile.fdsnws.stationxml.Network net)
boolean
isResponseLoaded(edu.sc.seis.sod.model.station.ChannelId chan)
Methods inherited from class edu.sc.seis.sod.source.network.WrappingNetworkSource
getName, getNetworks, getRefreshInterval, getWrapped, setConstraints
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
appendToName, getRetries, getRetryStrategy, setRetryStrategy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.sc.seis.sod.source.network.NetworkSource
getNetworks, getRefreshInterval, getRetries, getRetryStrategy, setConstraints
-
Constructor Details
-
LoadedNetworkSource
public LoadedNetworkSource(NetworkSource wrapped, java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Station> allStations, edu.sc.seis.seisFile.fdsnws.stationxml.Station sta)
-
-
Method Details
-
getChannels
public java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Channel> getChannels(edu.sc.seis.seisFile.fdsnws.stationxml.Station station) throws SodSourceException- Specified by:
getChannels
in interfaceNetworkSource
- Overrides:
getChannels
in classWrappingNetworkSource
- Throws:
SodSourceException
-
getResponse
public edu.sc.seis.seisFile.fdsnws.stationxml.Response getResponse(edu.sc.seis.seisFile.fdsnws.stationxml.Channel chan) throws ChannelNotFound, edu.sc.seis.seisFile.fdsnws.stationxml.InvalidResponse, SodSourceException- Specified by:
getResponse
in interfaceNetworkSource
- Overrides:
getResponse
in classWrappingNetworkSource
- Throws:
ChannelNotFound
edu.sc.seis.seisFile.fdsnws.stationxml.InvalidResponse
SodSourceException
-
getStations
public java.util.List<? extends edu.sc.seis.seisFile.fdsnws.stationxml.Station> getStations(edu.sc.seis.seisFile.fdsnws.stationxml.Network net) throws SodSourceException- Specified by:
getStations
in interfaceNetworkSource
- Overrides:
getStations
in classWrappingNetworkSource
- Throws:
SodSourceException
-
isResponseLoaded
public boolean isResponseLoaded(edu.sc.seis.sod.model.station.ChannelId chan)
-