Package gov.usgs.earthquake.nshmp.calc
Class HazardCalcs
- java.lang.Object
-
- gov.usgs.earthquake.nshmp.calc.HazardCalcs
-
public class HazardCalcs extends Object
Static probabilistic seismic hazard analysis calculators.- Author:
- U.S. Geological Survey
-
-
Constructor Summary
Constructors Constructor Description HazardCalcs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Hazardhazard(HazardModel model, CalcConfig config, Site site, Executor exec)Compute probabilistic seismic hazard curves at asiteusing the suppliedmodelandconfig.
-
-
-
Method Detail
-
hazard
public static Hazard hazard(HazardModel model, CalcConfig config, Site site, Executor exec)
Compute probabilistic seismic hazard curves at asiteusing the suppliedmodelandconfig. If anexecutoris supplied,the calculation will be distributed; otherwise, it will run on the current thread. Be sure to shutdown any supplied executor after a calculation completes.Note: any model initialization settings in
configwill be ignored as the supplied model will already have been initialized.- Parameters:
model- to useconfig- calculation configurationsite- of interestexec- optionalExecutorto distribute calculation
-
-