Package edu.sc.seis.sod.source.network
Class CSVNetworkSource
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
edu.sc.seis.sod.source.AbstractCSVSource
edu.sc.seis.sod.source.network.CSVNetworkSource
- All Implemented Interfaces:
NetworkSource
,Source
- Direct Known Subclasses:
WinstonNetworkSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected List<edu.iris.Fissures.network.ChannelImpl>
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected List<edu.iris.Fissures.network.NetworkAttrImpl>
static final String
static final String
static final String
static final String
static final String
static final String
protected List<edu.iris.Fissures.network.StationImpl>
Fields inherited from class edu.sc.seis.sod.source.AbstractCSVSource
csvFilename, DEFAULT_END, DEFAULT_TIME, DEPTH, DEPTH_UNITS, ELEVATION, ELEVATION_UNITS, FE_GEO_REGION, FE_REGION, FE_REGION_TYPE, FE_SEIS_REGION, LATITUDE, LONGITUDE, NAME, UNKNOWN
Fields inherited from class edu.sc.seis.sod.source.AbstractSource
name, NAME_ELEMENT, RETRIES_ELEMENT
-
Constructor Summary
ConstructorsConstructorDescriptionCSVNetworkSource
(String stationFile, String channelFile) CSVNetworkSource
(Element config) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends edu.iris.Fissures.network.ChannelImpl>
getChannels
(edu.iris.Fissures.network.StationImpl station) List<edu.iris.Fissures.network.ChannelImpl>
getChannelsFromReader
(Reader reader, List<edu.iris.Fissures.network.StationImpl> stations) String[]
edu.iris.Fissures.IfNetwork.Instrumentation
getInstrumentation
(edu.iris.Fissures.network.ChannelImpl chanId) getName()
returns the name of the server.edu.sc.seis.fissuresUtil.cache.CacheNetworkAccess
getNetwork
(edu.iris.Fissures.network.NetworkAttrImpl attr) List<? extends edu.sc.seis.fissuresUtil.cache.CacheNetworkAccess>
getNetworkByName
(String name) List<? extends edu.iris.Fissures.network.NetworkAttrImpl>
List<edu.iris.Fissures.network.NetworkAttrImpl>
getNetworksFromStations
(List<edu.iris.Fissures.network.StationImpl> staList) edu.iris.Fissures.model.TimeInterval
edu.iris.Fissures.model.QuantityImpl
getSensitivity
(edu.iris.Fissures.network.ChannelImpl chanId) protected edu.iris.Fissures.network.StationImpl
getStationForChannel
(String netCode, String staCode) List<? extends edu.iris.Fissures.network.StationImpl>
getStations
(edu.iris.Fissures.network.NetworkAttrImpl net) List<edu.iris.Fissures.network.StationImpl>
getStationsFromReader
(Reader reader) protected void
initChannels
(Element config) protected void
initStations
(Element config) void
setConstraints
(NetworkQueryConstraints constraints) toString()
Methods inherited from class edu.sc.seis.sod.source.AbstractCSVSource
concatenateValidFields, isValidField, loadDouble, loadFloat, loadString, loadTime, loadUnit, validateHeaders
Methods inherited from class edu.sc.seis.sod.source.AbstractSource
appendToName, getFissuresNamingService, getRetries, getRetryStrategy, setRetryStrategy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.sc.seis.sod.source.network.NetworkSource
getRetries, getRetryStrategy
Methods inherited from interface edu.sc.seis.sod.source.Source
appendToName
-
Field Details
-
networks
-
stations
-
channels
-
NET_CODE
- See Also:
-
STATION_CODE
- See Also:
-
SITE_CODE
- See Also:
-
CODE
- See Also:
-
NET_START
- See Also:
-
NET_END
- See Also:
-
SAMPLE_PERIOD
- See Also:
-
SAMPLE_FREQUENCY
- See Also:
-
START
- See Also:
-
END
- See Also:
-
OPERATOR
- See Also:
-
COMMENT
- See Also:
-
DESCRIPTION
- See Also:
-
AZIMUTH
- See Also:
-
DIP
- See Also:
-
-
Constructor Details
-
CSVNetworkSource
- Throws:
ConfigurationException
-
CSVNetworkSource
public CSVNetworkSource(String stationFile, String channelFile) throws ConfigurationException, FileNotFoundException, IOException
-
-
Method Details
-
initStations
- Throws:
ConfigurationException
-
initChannels
- Throws:
ConfigurationException
-
getDescription
-
getNetworksFromStations
-
getStationsFromReader
public List<edu.iris.Fissures.network.StationImpl> getStationsFromReader(Reader reader) throws IOException, FileNotFoundException, ConfigurationException -
getStationForChannel
-
getChannelsFromReader
public List<edu.iris.Fissures.network.ChannelImpl> getChannelsFromReader(Reader reader, List<edu.iris.Fissures.network.StationImpl> stations) throws IOException, FileNotFoundException, ConfigurationException -
setConstraints
- Specified by:
setConstraints
in interfaceNetworkSource
-
toString
-
getChannels
public List<? extends edu.iris.Fissures.network.ChannelImpl> getChannels(edu.iris.Fissures.network.StationImpl station) - Specified by:
getChannels
in interfaceNetworkSource
-
getInstrumentation
public edu.iris.Fissures.IfNetwork.Instrumentation getInstrumentation(edu.iris.Fissures.network.ChannelImpl chanId) throws edu.iris.Fissures.IfNetwork.ChannelNotFound, edu.sc.seis.fissuresUtil.sac.InvalidResponse - Specified by:
getInstrumentation
in interfaceNetworkSource
- Throws:
edu.iris.Fissures.IfNetwork.ChannelNotFound
edu.sc.seis.fissuresUtil.sac.InvalidResponse
-
getNetwork
public edu.sc.seis.fissuresUtil.cache.CacheNetworkAccess getNetwork(edu.iris.Fissures.network.NetworkAttrImpl attr) - Specified by:
getNetwork
in interfaceNetworkSource
-
getNetworkByName
public List<? extends edu.sc.seis.fissuresUtil.cache.CacheNetworkAccess> getNetworkByName(String name) throws edu.iris.Fissures.IfNetwork.NetworkNotFound - Specified by:
getNetworkByName
in interfaceNetworkSource
- Throws:
edu.iris.Fissures.IfNetwork.NetworkNotFound
-
getNetworks
- Specified by:
getNetworks
in interfaceNetworkSource
-
getSensitivity
public edu.iris.Fissures.model.QuantityImpl getSensitivity(edu.iris.Fissures.network.ChannelImpl chanId) throws edu.iris.Fissures.IfNetwork.ChannelNotFound, edu.sc.seis.fissuresUtil.sac.InvalidResponse - Specified by:
getSensitivity
in interfaceNetworkSource
- Throws:
edu.iris.Fissures.IfNetwork.ChannelNotFound
edu.sc.seis.fissuresUtil.sac.InvalidResponse
-
getStations
public List<? extends edu.iris.Fissures.network.StationImpl> getStations(edu.iris.Fissures.network.NetworkAttrImpl net) - Specified by:
getStations
in interfaceNetworkSource
-
getFields
- Specified by:
getFields
in classAbstractCSVSource
-
getRefreshInterval
public edu.iris.Fissures.model.TimeInterval getRefreshInterval()- Specified by:
getRefreshInterval
in interfaceNetworkSource
-
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 interfaceSource
- Overrides:
getName
in classAbstractSource
- Returns:
- a
String
value
-