edu.sc.seis.sod.process.waveform
Class RSChannelInfoPopulator
java.lang.Object
edu.sc.seis.sod.process.waveform.RSChannelInfoPopulator
- All Implemented Interfaces:
- WaveformProcess, SodElement, Subsetter
- Direct Known Subclasses:
- RecordSectionDisplayGenerator
public class RSChannelInfoPopulator
- extends java.lang.Object
- implements WaveformProcess
Method Summary |
WaveformResult |
accept(CacheEvent event,
ChannelImpl chan,
RequestFilter[] original,
RequestFilter[] available,
LocalSeismogramImpl[] seismograms,
CookieJar cookieJar)
Processes localSeismograms, possibly modifying them. |
java.util.List<URLDataSetSeismogram> |
extractSeismograms(CacheEvent event)
|
static URLDataSetSeismogram |
extractSeismogramsFromDB(RecordSectionItem rsi)
|
ChannelId[] |
getChannelIds(java.util.List<DataSetSeismogram> dss)
|
RecordSectionDisplay |
getConfiguredRSDisplay()
|
java.util.List<MemoryDataSetSeismogram> |
getDSSForRecordSectionItems(java.util.List<RecordSectionItem> rsList,
CacheEvent event)
|
static ChannelId |
getMatchingChanIdByStationCode(ChannelId chan,
ChannelId[] channels)
|
static ChannelId |
getMatchingChanIdIgnoreDates(ChannelId chan,
ChannelId[] channels)
|
java.lang.String |
getOrientationId()
|
java.lang.String |
getRecordSectionId()
|
java.awt.Dimension |
getRecSecDimension()
|
java.lang.String |
getSaveSeisId()
|
AbstractSeismogramWriter |
getSeismogramWriter()
|
static AbstractSeismogramWriter |
getSeismogramWriter(java.lang.String saveId)
|
java.util.List<RecordSectionItem> |
updateTable(CacheEvent event,
ChannelImpl channel,
RequestFilter[] original,
RequestFilter[] available,
LocalSeismogramImpl[] seismograms,
CookieJar cookieJar)
if new channel is in the record section, best RecordSectionItems are returned. |
java.util.List<MemoryDataSetSeismogram> |
wrap(java.util.List<? extends DataSetSeismogram> dss)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GENS_POPS_XPATH
public static final java.lang.String GENS_POPS_XPATH
- See Also:
- Constant Field Values
spacer
protected RecordSectionSpacer spacer
RSChannelInfoPopulator
public RSChannelInfoPopulator(org.w3c.dom.Element config)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRecSecDimension
public java.awt.Dimension getRecSecDimension()
getSeismogramWriter
public AbstractSeismogramWriter getSeismogramWriter()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSeismogramWriter
public static AbstractSeismogramWriter getSeismogramWriter(java.lang.String saveId)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDSSForRecordSectionItems
public java.util.List<MemoryDataSetSeismogram> getDSSForRecordSectionItems(java.util.List<RecordSectionItem> rsList,
CacheEvent event)
throws java.lang.Exception
- Throws:
java.lang.Exception
wrap
public java.util.List<MemoryDataSetSeismogram> wrap(java.util.List<? extends DataSetSeismogram> dss)
throws java.lang.Exception
- Throws:
java.lang.Exception
accept
public WaveformResult accept(CacheEvent event,
ChannelImpl chan,
RequestFilter[] original,
RequestFilter[] available,
LocalSeismogramImpl[] seismograms,
CookieJar cookieJar)
throws java.lang.Exception
- Description copied from interface:
WaveformProcess
- Processes localSeismograms, possibly modifying them.
- Specified by:
accept
in interface WaveformProcess
- Throws:
java.lang.Exception
updateTable
public java.util.List<RecordSectionItem> updateTable(CacheEvent event,
ChannelImpl channel,
RequestFilter[] original,
RequestFilter[] available,
LocalSeismogramImpl[] seismograms,
CookieJar cookieJar)
throws java.lang.Exception
- if new channel is in the record section, best RecordSectionItems are returned. If
the new channel does not make the best list, then an empty list is returned.
- Throws:
java.lang.Exception
getChannelIds
public ChannelId[] getChannelIds(java.util.List<DataSetSeismogram> dss)
throws java.sql.SQLException,
NotFound
- Throws:
java.sql.SQLException
NotFound
extractSeismograms
public java.util.List<URLDataSetSeismogram> extractSeismograms(CacheEvent event)
throws java.lang.Exception
- Throws:
java.lang.Exception
extractSeismogramsFromDB
public static URLDataSetSeismogram extractSeismogramsFromDB(RecordSectionItem rsi)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConfiguredRSDisplay
public RecordSectionDisplay getConfiguredRSDisplay()
getMatchingChanIdIgnoreDates
public static ChannelId getMatchingChanIdIgnoreDates(ChannelId chan,
ChannelId[] channels)
getMatchingChanIdByStationCode
public static ChannelId getMatchingChanIdByStationCode(ChannelId chan,
ChannelId[] channels)
getOrientationId
public java.lang.String getOrientationId()
getRecordSectionId
public java.lang.String getRecordSectionId()
getSaveSeisId
public java.lang.String getSaveSeisId()