public class CSVNetworkSource extends AbstractCSVSource implements NetworkSource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AZIMUTH |
protected java.util.List<ChannelImpl> |
channels |
static java.lang.String |
CODE |
static java.lang.String |
COMMENT |
static java.lang.String |
DESCRIPTION |
static java.lang.String |
DIP |
static java.lang.String |
END |
static java.lang.String |
NET_CODE |
static java.lang.String |
NET_END |
static java.lang.String |
NET_START |
protected java.util.List<NetworkAttrImpl> |
networks |
static java.lang.String |
OPERATOR |
static java.lang.String |
SAMPLE_FREQUENCY |
static java.lang.String |
SAMPLE_PERIOD |
static java.lang.String |
SITE_CODE |
static java.lang.String |
START |
static java.lang.String |
STATION_CODE |
protected java.util.List<StationImpl> |
stations |
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, UNKNOWNname, NAME_ELEMENT, RETRIES_ELEMENT| Constructor and Description |
|---|
CSVNetworkSource(org.w3c.dom.Element config) |
CSVNetworkSource(java.lang.String stationFile,
java.lang.String channelFile) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends ChannelImpl> |
getChannels(StationImpl station) |
java.util.List<ChannelImpl> |
getChannelsFromReader(java.io.Reader reader,
java.util.List<StationImpl> stations) |
java.lang.String |
getDescription() |
java.lang.String[] |
getFields() |
Instrumentation |
getInstrumentation(ChannelImpl 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() |
java.util.List<NetworkAttrImpl> |
getNetworksFromStations(java.util.List<StationImpl> staList) |
TimeInterval |
getRefreshInterval() |
QuantityImpl |
getSensitivity(ChannelImpl chanId) |
protected StationImpl |
getStationForChannel(java.lang.String netCode,
java.lang.String staCode) |
java.util.List<? extends StationImpl> |
getStations(NetworkAttrImpl net) |
java.util.List<StationImpl> |
getStationsFromReader(java.io.Reader reader) |
protected void |
initChannels(org.w3c.dom.Element config) |
protected void |
initStations(org.w3c.dom.Element config) |
void |
setConstraints(NetworkQueryConstraints constraints) |
java.lang.String |
toString() |
concatenateValidFields, isValidField, loadDouble, loadFloat, loadString, loadTime, loadUnit, validateHeadersappendToName, getFissuresNamingService, getRetries, getRetryStrategy, setRetryStrategyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRetries, getRetryStrategyappendToNameprotected java.util.List<NetworkAttrImpl> networks
protected java.util.List<StationImpl> stations
protected java.util.List<ChannelImpl> channels
public static final java.lang.String NET_CODE
public static final java.lang.String STATION_CODE
public static final java.lang.String SITE_CODE
public static final java.lang.String CODE
public static final java.lang.String NET_START
public static final java.lang.String NET_END
public static final java.lang.String SAMPLE_PERIOD
public static final java.lang.String SAMPLE_FREQUENCY
public static final java.lang.String START
public static final java.lang.String END
public static final java.lang.String OPERATOR
public static final java.lang.String COMMENT
public static final java.lang.String DESCRIPTION
public static final java.lang.String AZIMUTH
public static final java.lang.String DIP
public CSVNetworkSource(org.w3c.dom.Element config)
throws ConfigurationException
ConfigurationExceptionpublic CSVNetworkSource(java.lang.String stationFile,
java.lang.String channelFile)
throws ConfigurationException,
java.io.FileNotFoundException,
java.io.IOException
ConfigurationExceptionjava.io.FileNotFoundExceptionjava.io.IOExceptionprotected void initStations(org.w3c.dom.Element config)
throws ConfigurationException
ConfigurationExceptionprotected void initChannels(org.w3c.dom.Element config)
throws ConfigurationException
ConfigurationExceptionpublic java.lang.String getDescription()
public java.util.List<NetworkAttrImpl> getNetworksFromStations(java.util.List<StationImpl> staList)
public java.util.List<StationImpl> getStationsFromReader(java.io.Reader reader) throws java.io.IOException, java.io.FileNotFoundException, ConfigurationException
java.io.IOExceptionjava.io.FileNotFoundExceptionConfigurationExceptionprotected StationImpl getStationForChannel(java.lang.String netCode, java.lang.String staCode)
public java.util.List<ChannelImpl> getChannelsFromReader(java.io.Reader reader, java.util.List<StationImpl> stations) throws java.io.IOException, java.io.FileNotFoundException, ConfigurationException
java.io.IOExceptionjava.io.FileNotFoundExceptionConfigurationExceptionpublic void setConstraints(NetworkQueryConstraints constraints)
setConstraints in interface NetworkSourcepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
getChannels in interface NetworkSourcepublic Instrumentation getInstrumentation(ChannelImpl chanId) throws ChannelNotFound, InvalidResponse
getInstrumentation in interface NetworkSourceChannelNotFoundInvalidResponsepublic CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
getNetwork in interface NetworkSourcepublic java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name) throws NetworkNotFound
getNetworkByName in interface NetworkSourceNetworkNotFoundpublic java.util.List<? extends NetworkAttrImpl> getNetworks()
getNetworks in interface NetworkSourcepublic QuantityImpl getSensitivity(ChannelImpl chanId) throws ChannelNotFound, InvalidResponse
getSensitivity in interface NetworkSourceChannelNotFoundInvalidResponsepublic java.util.List<? extends StationImpl> getStations(NetworkAttrImpl net)
getStations in interface NetworkSourcepublic java.lang.String[] getFields()
getFields in class AbstractCSVSourcepublic TimeInterval getRefreshInterval()
getRefreshInterval in interface NetworkSourcepublic java.lang.String getName()
SourcegetName in interface SourcegetName in class AbstractSource