edu.sc.seis.sod.process.waveform
Class AbstractFileWriter
java.lang.Object
edu.sc.seis.sod.process.waveform.AbstractFileWriter
- Direct Known Subclasses:
- AbstractSeismogramWriter, ParticleMotionPlot
public abstract class AbstractFileWriter
- extends java.lang.Object
Method Summary |
protected static java.lang.String |
extractFileTemplate(org.w3c.dom.Element el,
java.lang.String def)
|
protected static java.lang.String |
extractPrefix(org.w3c.dom.Element el)
|
static java.lang.String |
extractWorkingDir(org.w3c.dom.Element el)
|
java.lang.String |
generate(CacheEvent event,
ChannelGroup channelGroup,
int index,
java.util.Map<java.lang.String,java.lang.Object> extras)
|
java.lang.String |
generate(CacheEvent event,
ChannelImpl channel,
ChannelImpl otherChannel,
int index,
java.util.Map<java.lang.String,java.lang.Object> extras)
|
java.lang.String |
generate(CacheEvent event,
ChannelImpl channel,
LocalSeismogramImpl representativeSeismogram,
int index)
|
java.lang.String |
getTemplate()
|
void |
removeExisting(CacheEvent event,
ChannelGroup channelGroup,
java.util.Map<java.lang.String,java.lang.Object> extras)
|
void |
removeExisting(CacheEvent event,
ChannelImpl channel,
ChannelImpl otherChannel,
java.util.Map<java.lang.String,java.lang.Object> extras)
|
void |
removeExisting(CacheEvent event,
ChannelImpl channel,
LocalSeismogramImpl representativeSeismogram)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FILE_TEMPLATE_WO_EXT
public static final java.lang.String DEFAULT_FILE_TEMPLATE_WO_EXT
- See Also:
- Constant Field Values
DEFAULT_PREFIX
public static final java.lang.String DEFAULT_PREFIX
- See Also:
- Constant Field Values
DEFAULT_WORKING_DIR
public static final java.lang.String DEFAULT_WORKING_DIR
- See Also:
- Constant Field Values
workingDir
protected java.lang.String workingDir
origTemplate
protected java.lang.String origTemplate
template
protected java.lang.String template
prefix
protected java.lang.String prefix
velocitizer
protected SimpleVelocitizer velocitizer
INDEX_VAR
protected static final java.util.regex.Pattern INDEX_VAR
AbstractFileWriter
public AbstractFileWriter(java.lang.String workingDir,
java.lang.String fileTemplate,
java.lang.String prefix)
AbstractFileWriter
public AbstractFileWriter()
generate
public java.lang.String generate(CacheEvent event,
ChannelImpl channel,
LocalSeismogramImpl representativeSeismogram,
int index)
generate
public java.lang.String generate(CacheEvent event,
ChannelImpl channel,
ChannelImpl otherChannel,
int index,
java.util.Map<java.lang.String,java.lang.Object> extras)
generate
public java.lang.String generate(CacheEvent event,
ChannelGroup channelGroup,
int index,
java.util.Map<java.lang.String,java.lang.Object> extras)
removeExisting
public void removeExisting(CacheEvent event,
ChannelImpl channel,
LocalSeismogramImpl representativeSeismogram)
removeExisting
public void removeExisting(CacheEvent event,
ChannelImpl channel,
ChannelImpl otherChannel,
java.util.Map<java.lang.String,java.lang.Object> extras)
removeExisting
public void removeExisting(CacheEvent event,
ChannelGroup channelGroup,
java.util.Map<java.lang.String,java.lang.Object> extras)
getTemplate
public java.lang.String getTemplate()
extractFileTemplate
protected static java.lang.String extractFileTemplate(org.w3c.dom.Element el,
java.lang.String def)
extractPrefix
protected static java.lang.String extractPrefix(org.w3c.dom.Element el)
extractWorkingDir
public static java.lang.String extractWorkingDir(org.w3c.dom.Element el)