org.opensha.sha.calc.hazardMap.components
Class CalculationSettings
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_METADATA_NAME
public static final String XML_METADATA_NAME
- See Also:
- Constant Field Values
CalculationSettings
public CalculationSettings(ArbitrarilyDiscretizedFunc xValues,
double maxSourceDistance)
CalculationSettings
public CalculationSettings(HashMap<String,ArbitrarilyDiscretizedFunc> imtXValMap,
double maxSourceDistance)
getXValues
public ArbitrarilyDiscretizedFunc getXValues(String imt)
setXValues
public void setXValues(ArbitrarilyDiscretizedFunc xValues)
setXValues
public void setXValues(String imt,
ArbitrarilyDiscretizedFunc xValues)
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)