public final class EqRateExport extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(EqRate rate)
Add an
EqRate to this exporter. |
void |
addAll(Collection<EqRate> rates)
Add the supplied
EqRates to this exporter. |
static EqRateExport |
create(CalcConfig config,
Sites sites,
Logger log)
Create a new results handler.
|
String |
elapsedTime()
A string representation of the time duration that this result handler has
been running.
|
void |
expire()
Flushes any remaining results, stops all timers and sets the state of this
exporter to 'used'; no more results may be added.
|
Path |
outputDir()
The target output directory established by this handler.
|
int |
resultsProcessed()
The number of hazard [and deagg] results passed to this handler thus far.
|
int |
size()
The number of
Hazard results this handler is currently storing. |
public static EqRateExport create(CalcConfig config, Sites sites, Logger log) throws IOException
config - that specifies output options and formatssites - reference to the sites to be processed (not retained)log - shared logging instance from calling classIllegalStateException - if binary output has been specified in the
config but the sites container does not specify map
extents.IOExceptionpublic void addAll(Collection<EqRate> rates) throws IOException
EqRates to this exporter.rates - data containers to addIOExceptionpublic void add(EqRate rate) throws IOException
EqRate to this exporter.rate - data container to addIOExceptionpublic void expire()
throws IOException
IOExceptionpublic int resultsProcessed()
public int size()
Hazard results this handler is currently storing.public String elapsedTime()
public Path outputDir()