|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sra.calc.EALCalculator
public class EALCalculator
This class computes the expected annualized damage factor for a given building using a hazard curve.
| Constructor Summary | |
|---|---|
EALCalculator()
Default constructor. |
|
EALCalculator(ArrayList<Double> IML,
ArrayList<Double> DF,
ArrayList<Double> MAFE,
double structValue)
A more useful constructor. |
|
EALCalculator(ArrayList<Double> MAFE,
DiscretizedFunc vulnFunc,
double structValue)
Creates a new EALCalculator object using the IML and DF values as defined in the given vulnFunc. |
|
EALCalculator(DiscretizedFunc hazFunc,
ArrayList<Double> DF,
double structValue)
Creates a new EALCalculator object using the IML and MAFE values as defined in the given hazFunc. |
|
EALCalculator(DiscretizedFunc hazFunc,
DiscretizedFunc vulnFunc,
double structValue)
Creates a new EALCalculator based on the given hazFunc, vulnFunc, and structValue. |
|
| Method Summary | |
|---|---|
double |
computeEAL()
Computes the Expected Annualized Loss for the current values of IML, DF, and MAFE. |
static double |
computeEAL(ArrayList<Double> IML,
ArrayList<Double> DF,
ArrayList<Double> MAFE,
double structValue)
Same as computeEAL() except as specified below. |
ArrayList<Double> |
getDF()
|
ArrayList<Double> |
getIML()
|
ArrayList<Double> |
getMAFE()
|
double |
getStructValue()
|
void |
setDF(ArrayList<Double> df)
Note: No checking is done to ensure the given DF values correspond to current IML values |
void |
setDF(DiscretizedFunc vulnFunc)
Resets the values for Damage Factor to those contained in the vulnFunc. |
void |
setIML(ArrayList<Double> iml)
Note: No checking is done to ensure the given IML values correspond to current DF/MAFE values |
void |
setMAFE(ArrayList<Double> pe)
Note: No checking is done to ensure the given MAFE values correspond to current IML values |
void |
setMAFE(DiscretizedFunc hazFunc)
Resets the values for Mean Annual Frequency of Exceedance to those contained in the hazFunc. |
void |
setStructValue(double structValue)
Sets the replacement cost to structValue |
static double |
testCalc()
A simple function to test if the EALCalculator is working on the current machine/in the current application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EALCalculator()
public EALCalculator(ArrayList<Double> IML,
ArrayList<Double> DF,
ArrayList<Double> MAFE,
double structValue)
IML - An ArrayList of doubles representing the Intensity Measure Values.DF - An ArrayList of doubles representing the Damage Factor Values.MAFE - An ArrayList of doubles representing the Mean Annual Frequency of Exceedance Values.
public EALCalculator(DiscretizedFunc hazFunc,
ArrayList<Double> DF,
double structValue)
hazFunc - The Hazard Function defining (x,y) values for IML,MAFE respectively.DF - The Damage Factor values to use in calculation.
public EALCalculator(ArrayList<Double> MAFE,
DiscretizedFunc vulnFunc,
double structValue)
MAFE - The Mean Annual Frequency of Exceedance values to use corresponding to the IML values
defined by the vulnFunc.vulnFunc - The Vulnerability Function defining (x,y) values for IML,DF respectively.
public EALCalculator(DiscretizedFunc hazFunc,
DiscretizedFunc vulnFunc,
double structValue)
throws IllegalArgumentException
hazFunc - vulnFunc - structValue -
IllegalArgumentException| Method Detail |
|---|
public static double computeEAL(ArrayList<Double> IML,
ArrayList<Double> DF,
ArrayList<Double> MAFE,
double structValue)
computeEAL() except as specified below. But requires arguments
for IML, DF, and MAFE since it is accessed statically.
IML - An ArrayList of doubles representing the Intensity Measure Values.DF - An ArrayList of doubles representing the Damage Factor Values.MAFE - An ArrayList of doubles representing the Mean Annual Frequency of Exceedance Values.
public double computeEAL()
public ArrayList<Double> getDF()
ArrayList of Damage Factorspublic void setDF(ArrayList<Double> df)
public ArrayList<Double> getIML()
ArrayList of IML valuespublic void setIML(ArrayList<Double> iml)
public ArrayList<Double> getMAFE()
ArrayList of MAFE valuespublic void setMAFE(ArrayList<Double> pe)
public double getStructValue()
public void setStructValue(double structValue)
structValue
public void setDF(DiscretizedFunc vulnFunc)
vulnFunc. Note that IML values remain unchanged.
It is the responsibility of the caller to ensure that the current
values of IML correspond to the given values for DF.
vulnFunc - Used to get DF values.public void setMAFE(DiscretizedFunc hazFunc)
hazFunc. Note hat IML values remain unchanged. It is the
responsibility of the caller to ensure that the current value of IML
correspond to the given values for MAFE.
hazFunc - Used to get MAFE values.public static double testCalc()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||