|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sra.gui.portfolioeal.Portfolio
public class Portfolio
The representation of a site portfolio, which holds assets and represents the model of the PortfolioEALCalculator.
PortfolioParser,
Asset| Method Summary | |
|---|---|
double |
calculatePortfolioEAL(ScalarIMR imr,
double maxSourceDistance,
Site site,
BaseERF erf,
PortfolioEALCalculatorController controller)
This computes the EAL for a portfolio. |
static Portfolio |
createPortfolio(File portfolioFile)
This method acts as a factory of sorts. |
ArrayList<Asset> |
getAssetList()
|
File |
getPortfolioFile()
|
ArrayList<Site> |
getSiteList()
|
void |
setPortfolioFile(File portfolioFile)
Set the portofolio file for the given portfolio |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Portfolio createPortfolio(File portfolioFile)
throws IOException
portfolioFile - The file the portfolio is based on.
IOException
public double calculatePortfolioEAL(ScalarIMR imr,
double maxSourceDistance,
Site site,
BaseERF erf,
PortfolioEALCalculatorController controller)
imr - The imr gotten from the viewvalue - The asset's valuesite - The site that the asset is aterf - The erf gotten from the viewcontroller - The controllerpublic void setPortfolioFile(File portfolioFile)
portfolioFile - The portfolio filepublic ArrayList<Asset> getAssetList()
public ArrayList<Site> getSiteList()
public File getPortfolioFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||