org.opensha.sha.calc.hazardMap.components
Class CalculationSettings

java.lang.Object
  extended by org.opensha.sha.calc.hazardMap.components.CalculationSettings
All Implemented Interfaces:
XMLSaveable

public class CalculationSettings
extends Object
implements XMLSaveable

The class contains basic hazard map parameters such as X values for curve calculation, max source cutoff distance, wether the ERF should be serialized before it's distributed to compute nodes, etc.

Author:
kevin

Field Summary
static String XML_METADATA_NAME
           
 
Constructor Summary
CalculationSettings(DiscretizedFunc xValues, double maxSourceDistance)
           
CalculationSettings(HashMap<String,DiscretizedFunc> imtXValMap, double maxSourceDistance)
           
 
Method Summary
static CalculationSettings fromXMLMetadata(Element calcEl)
           
 double getMaxSourceDistance()
           
 Map<String,DiscretizedFunc> getXValsMap()
           
 DiscretizedFunc getXValues(String imt)
           
 boolean isCalcInLogSpace()
           
 boolean isSerializeERF()
           
 void setCalcInLogSpace(boolean calcInLogSpace)
           
 void setMaxSourceDistance(double maxSourceDistance)
           
 void setSerializeERF(boolean serializeERF)
           
 void setXValues(DiscretizedFunc xValues)
           
 void setXValues(String imt, DiscretizedFunc xValues)
           
 Element toXMLMetadata(Element root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_METADATA_NAME

public static final String XML_METADATA_NAME
See Also:
Constant Field Values
Constructor Detail

CalculationSettings

public CalculationSettings(DiscretizedFunc xValues,
                           double maxSourceDistance)

CalculationSettings

public CalculationSettings(HashMap<String,DiscretizedFunc> imtXValMap,
                           double maxSourceDistance)
Method Detail

getXValues

public DiscretizedFunc getXValues(String imt)

setXValues

public void setXValues(DiscretizedFunc xValues)

setXValues

public void setXValues(String imt,
                       DiscretizedFunc xValues)

getXValsMap

public Map<String,DiscretizedFunc> getXValsMap()

getMaxSourceDistance

public double getMaxSourceDistance()

setMaxSourceDistance

public void setMaxSourceDistance(double maxSourceDistance)

setCalcInLogSpace

public void setCalcInLogSpace(boolean calcInLogSpace)

isCalcInLogSpace

public boolean isCalcInLogSpace()

setSerializeERF

public void setSerializeERF(boolean serializeERF)

isSerializeERF

public boolean isSerializeERF()

toXMLMetadata

public Element toXMLMetadata(Element root)
Specified by:
toXMLMetadata in interface XMLSaveable

fromXMLMetadata

public static CalculationSettings fromXMLMetadata(Element calcEl)