|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sra.gui.portfolioeal.PortfolioEALCalculatorController
public class PortfolioEALCalculatorController
The controller for the Portfolio EAL calculator. This class is used to define the underlying functionality of the calculator.
PortfolioEALCalculatorView| Field Summary | |
|---|---|
static String |
APP_NAME
|
static String |
APP_SHORT_NAME
|
| Constructor Summary | |
|---|---|
PortfolioEALCalculatorController()
The default constructor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Listen for the JButtons and the JComboBox. |
void |
calculationException(String errorMessage)
Exceptions occur during a calculation; this method gets the program back to its start state |
double |
computeEAL()
This computes the EAL for a portfolio. |
static HashMap<String,Vulnerability> |
getVulnerabilities()
|
static HashMap<String,Vulnerability> |
getVulnerabilities(File file)
|
void |
itemStateChanged(ItemEvent event)
ItemListener for the JCheckBox |
static void |
main(String[] args)
The main method which drives the whole program. |
void |
run()
This method is used when new thread is started on an object of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String APP_NAME
public static final String APP_SHORT_NAME
| Constructor Detail |
|---|
public PortfolioEALCalculatorController()
| Method Detail |
|---|
public static HashMap<String,Vulnerability> getVulnerabilities()
public static HashMap<String,Vulnerability> getVulnerabilities(File file)
public static void main(String[] args)
args - The command line arguments - These should be null.public double computeEAL()
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - The ActionEvent fired when the buttons/combo box are selected.public void itemStateChanged(ItemEvent event)
itemStateChanged in interface ItemListenerevent - The ItemEvent The event fired whent the check box is selected.public void run()
run in interface Runnablepublic void calculationException(String errorMessage)
calculationException in interface CalculationExceptionHandlererrorMessage - The string representation of the exception's error message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||