|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HazardCurveCalculatorAPI
Title: HazardCurveCalculatorAPI
Description: Defines the interface for the HazardCurveCalculator.
| Method Summary | |
|---|---|
ParameterList |
getAdjustableParams()
Get the adjustable parameter list of calculation parameters |
ListIterator<Parameter<?>> |
getAdjustableParamsIterator()
Get iterator for the adjustable parameters |
DiscretizedFunc |
getAnnualizedRates(DiscretizedFunc hazFunction,
double years)
Returns the Annualized Rates for the Hazard Curves |
DiscretizedFunc |
getAverageEventSetHazardCurve(DiscretizedFunc hazFunction,
Site site,
ScalarIMR imr,
ERF eqkRupForecast)
This function computes an average hazard curve from a number of stochastic event sets for the given Site, IMR, eqkRupForecast, where the number of event-set realizations is specified as the value in numStochEventSetRealizationsParam. |
int |
getCurrRuptures()
gets the current rupture that is being processed |
DiscretizedFunc |
getEventSetHazardCurve(DiscretizedFunc hazFunction,
Site site,
ScalarIMR imr,
List<EqkRupture> eqkRupList,
boolean updateCurrRuptures)
This function computes a hazard curve for the given Site, IMR, and event set (eqkRupList), where it is assumed that each of the events occur (probability of each is 1.0). |
DiscretizedFunc |
getHazardCurve(DiscretizedFunc hazFunction,
Site site,
Map<TectonicRegionType,ScalarIMR> imrMap,
ERF eqkRupForecast)
This function computes a hazard curve for the given Site, imrMap, ERF, and discretized function, where the latter supplies the x-axis values (the IMLs) for the computation, and the result (probability) is placed in the y-axis values of this function. |
DiscretizedFunc |
getHazardCurve(DiscretizedFunc hazFunction,
Site site,
ScalarIMR imr,
EqkRupture rupture)
This computes the "deterministic" exceedance curve for the given Site, IMR, and ProbEqkrupture (conditioned on the event actually occurring). |
DiscretizedFunc |
getHazardCurve(DiscretizedFunc hazFunction,
Site site,
ScalarIMR imr,
ERF eqkRupForecast)
This function computes a hazard curve for the given Site, IMR, ERF, and discretized function, where the latter supplies the x-axis values (the IMLs) for the computation, and the result (probability) is placed in the y-axis values of this function. |
ArbitrarilyDiscretizedFunc |
getMagDistCutoffFunc()
This gets the mag-dist filter function (distance on x-axis and mag on y-axis), returning null if the includeMagDistFilterParam has been set to false. |
double |
getMaxSourceDistance()
This is a direct way of getting the distance cutoff from that parameter |
PtSrcDistCorr.Type |
getPtSrcDistCorrType()
This gets the type of point-source distance correction that is desired (see the class PtSrcDistCorr for options) |
int |
getTotRuptures()
gets the total number of ruptures. |
void |
setAdjustableParams(ParameterList paramList)
This was created so new instances of this calculator could be given pointers to a set of parameter that already exist. |
void |
setIncludeMagDistCutoff(boolean include)
Sets the IncludeMagDistFilterParam parameter, which determines if the
magnitude/distance filter is used in calculation. |
void |
setMagDistCutoffFunc(ArbitrarilyDiscretizedFunc magDistfunc)
This sets the mag-dist filter function (distance on x-axis and mag on y-axis), and also sets the value of includeMagDistFilterParam as true |
void |
setMaxSourceDistance(double distance)
This sets the maximum distance of sources to be considered in the calculation. |
void |
setNumStochEventSetRealizations(int numRealizations)
Set the number of stochastic event set realizations for average event set hazard curve calculation. |
void |
setPtSrcDistCorrType(PtSrcDistCorr.Type ptSrcDistCorrType)
This sets the type of point-source distance correction that is desired (see the class PtSrcDistCorr for options) |
void |
stopCalc()
stops the Hazard Curve calculations. |
| Method Detail |
|---|
ParameterList getAdjustableParams()
ListIterator<Parameter<?>> getAdjustableParamsIterator()
void setPtSrcDistCorrType(PtSrcDistCorr.Type ptSrcDistCorrType)
ptSrcDistCorrType - PtSrcDistCorr.Type getPtSrcDistCorrType()
ptSrcDistCorrType - void setMaxSourceDistance(double distance)
distance: - the maximum distance in kmdouble getMaxSourceDistance()
void setMagDistCutoffFunc(ArbitrarilyDiscretizedFunc magDistfunc)
magDistfunc - function to setvoid setNumStochEventSetRealizations(int numRealizations)
NumStochasticEventSetsParam
parameter.
numRealizations - number of stochastic event set realizationsvoid setIncludeMagDistCutoff(boolean include)
IncludeMagDistFilterParam parameter, which determines if the
magnitude/distance filter is used in calculation.
include - if true, the magnitude/distance filter is includedArbitrarilyDiscretizedFunc getMagDistCutoffFunc()
void setAdjustableParams(ParameterList paramList)
paramList - parameters to be set
DiscretizedFunc getAnnualizedRates(DiscretizedFunc hazFunction,
double years)
hazFunction - Discretized Hazard Function
DiscretizedFunc getHazardCurve(DiscretizedFunc hazFunction,
Site site,
ScalarIMR imr,
ERF eqkRupForecast)
hazFunction: - This function is where the hazard curve is placedsite: - site objectimr: - selected IMR objecteqkRupForecast: - selected Earthquake rup forecast
DiscretizedFunc getHazardCurve(DiscretizedFunc hazFunction,
Site site,
Map<TectonicRegionType,ScalarIMR> imrMap,
ERF eqkRupForecast)
imrMap parameter.
If the mapping only contains a single IMR, then that IMR will be used for all sources.
Otherwise, if a mapping exists for the source's tectonic region type (TRT), then the IMR
from that mapping will be used for that source. If no mapping exists, a NullPointerException
will be thrown.
Once the IMR is selected, it's TRT paramter can be set by the soruce, depending
on the SetTRTinIMR_FromSourceParam param and NonSupportedTRT_OptionsParam
param. If SetTRTinIMR_FromSourceParam is true, then the IMR's TRT param will be set by
the source (otherwise it will be left unchanged). If it is to be set, but the source's TRT is not
supported by the IMR, then NonSupportedTRT_OptionsParam is used.
hazFunction: - This function is where the hazard curve is placedsite: - site objectimrMap - this Map
specifies which IMR to use with each tectonic region.eqkRupForecast - selected Earthquake rup forecast
hazFunction param.
NullPointerException - if there are multiple IMRs in the mapping, but no mapping exists for
a soruce in the ERF.
DiscretizedFunc getHazardCurve(DiscretizedFunc hazFunction,
Site site,
ScalarIMR imr,
EqkRupture rupture)
hazFunction - This function is where the deterministic hazard curve is placedsite - site objectimr - selected IMR objectrupture - Single Earthquake Rupture
hazFunction param.int getCurrRuptures()
int getTotRuptures()
void stopCalc()
DiscretizedFunc getAverageEventSetHazardCurve(DiscretizedFunc hazFunction,
Site site,
ScalarIMR imr,
ERF eqkRupForecast)
hazFunction - This function is where the hazard curve is placedsite - site objectimr - selected IMR objecteqkRupForecast - selected Earthquake rup forecast
hazFunction param.
DiscretizedFunc getEventSetHazardCurve(DiscretizedFunc hazFunction,
Site site,
ScalarIMR imr,
List<EqkRupture> eqkRupList,
boolean updateCurrRuptures)
hazFunction - This function is where the hazard curve is placedsite - site objectimr - selected IMR objecteqkRupForecast - selected Earthquake rup forecastupdateCurrRuptures - tells whether to update current ruptures (for the getCurrRuptures() method used for progress bars)
hazFunction param.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||