org.opensha.sha.calc.hazardMap.components
Interface CurveResultsArchiver

All Superinterfaces:
XMLSaveable
All Known Implementing Classes:
AsciiFileCurveArchiver, BinaryCurveArchiver

public interface CurveResultsArchiver
extends XMLSaveable

This interface defines a mechanism for storing hazard curve results. Initially this will probably just have one implementation, storing hazard curves to files. In the future, you may want to have this write the values to a database

Author:
kevin

Field Summary
 
Fields inherited from interface org.opensha.commons.metadata.XMLSaveable
XML_METADATA_NAME
 
Method Summary
 void archiveCurve(DiscretizedFunc curve, CurveMetadata meta)
          This stores the curve for the given site.
 void close()
           
 File getStoreDir()
          Return the store dir if applicable (null otherwise) for this archiver.
 boolean isCurveCalculated(CurveMetadata meta, DiscretizedFunc xVals)
          Returns true if the given curve has already been calculated and archived
 
Methods inherited from interface org.opensha.commons.metadata.XMLSaveable
toXMLMetadata
 

Method Detail

archiveCurve

void archiveCurve(DiscretizedFunc curve,
                  CurveMetadata meta)
                  throws IOException
This stores the curve for the given site.

Parameters:
curve - - the curve itself
meta - - curve metadata
Throws:
IOException

isCurveCalculated

boolean isCurveCalculated(CurveMetadata meta,
                          DiscretizedFunc xVals)
Returns true if the given curve has already been calculated and archived

Parameters:
meta -
xVals -
Returns:

getStoreDir

File getStoreDir()
Return the store dir if applicable (null otherwise) for this archiver.

Returns:

close

void close()