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 Hazard
hazard(HazardModel model, CalcConfig config, Site site, Executor exec)
Compute probabilistic seismic hazard curves at asite
using the suppliedmodel
andconfig
.
-
-
-
Method Detail
-
hazard
public static Hazard hazard(HazardModel model, CalcConfig config, Site site, Executor exec)
Compute probabilistic seismic hazard curves at asite
using the suppliedmodel
andconfig
. If anexecutor
is 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
config
will be ignored as the supplied model will already have been initialized.- Parameters:
model
- to useconfig
- calculation configurationsite
- of interestexec
- optionalExecutor
to distribute calculation
-
-