org.opensha.sha.gui.controls
Class PEER_TestCaseSelectorControlPanel

java.lang.Object
  extended by org.opensha.commons.gui.ControlPanel
      extended by org.opensha.sha.gui.controls.PEER_TestCaseSelectorControlPanel
All Implemented Interfaces:
Named

public class PEER_TestCaseSelectorControlPanel
extends ControlPanel

Title: PEER_TestCaseSelectorControlPanel

Description: This class creates the a window that contains the list of different PEER tests cases so that a user can make a selection. This class also sets the default parameters for the selected test in the HazardCurveApplet.

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
: Nitin Gupta, Vipin Gupta, and Ned Field

Field Summary
protected static String C
           
protected static boolean D
           
static String NAME
           
static String PEER_TESTS_SET_ONE
           
static String PEER_TESTS_SET_TWO
           
static String SITE_FIVE
           
static String SITE_FOUR
           
static String SITE_ONE
           
static String SITE_SEVEN
           
static String SITE_SIX
           
static String SITE_THREE
           
static String SITE_TWO
           
static String TEST_CASE_EIGHT_A
           
static String TEST_CASE_EIGHT_B
           
static String TEST_CASE_EIGHT_C
           
static String TEST_CASE_ELEVEN
           
static String TEST_CASE_FIVE
           
static String TEST_CASE_FOUR
           
static String TEST_CASE_NINE_A
           
static String TEST_CASE_NINE_B
           
static String TEST_CASE_NINE_C
           
static String TEST_CASE_ONE
           
static String TEST_CASE_SEVEN
           
static String TEST_CASE_SIX
           
static String TEST_CASE_TEN
           
static String TEST_CASE_THREE
           
static String TEST_CASE_TWELVE
           
static String TEST_CASE_TWO
           
 
Constructor Summary
PEER_TestCaseSelectorControlPanel(Component parent, HazardCurveApplication api, IMR_MultiGuiBean imrGuiBean, Site_GuiBean siteGuiBean, IMT_NewGuiBean imtGuiBean, ERF_GuiBean erfGuiBean, TimeSpanGuiBean timeSpanGuiBean, CalculationSettingsControlPanelAPI application)
          Class Constructor
 
Method Summary
 void doinit()
          This method will be called the first time the control panel is displayed.
 Window getComponent()
           
 ArrayList<String> getPEER_SetOneTestCasesNames()
           
 ArrayList<String> getPEER_SetTwoTestCasesNames()
           
 void setParams()
          This function sets the site Paramters and the IMR parameters based on the selected test case and selected site number for that test case
 void setPEER_XValues()
          This method sets the X values for the hazard Curve to the PEER supported X Values.
 void setTestCaseAndSite(String testAndSite)
          This method extracts the selected Site and the selected TestCase set
 
Methods inherited from class org.opensha.commons.gui.ControlPanel
getName, init, isInitialized, showControlPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

C

protected static final String C
See Also:
Constant Field Values

D

protected static final boolean D
See Also:
Constant Field Values

PEER_TESTS_SET_ONE

public static final String PEER_TESTS_SET_ONE
See Also:
Constant Field Values

PEER_TESTS_SET_TWO

public static final String PEER_TESTS_SET_TWO
See Also:
Constant Field Values

TEST_CASE_ONE

public static final String TEST_CASE_ONE
See Also:
Constant Field Values

TEST_CASE_TWO

public static final String TEST_CASE_TWO
See Also:
Constant Field Values

TEST_CASE_THREE

public static final String TEST_CASE_THREE
See Also:
Constant Field Values

TEST_CASE_FOUR

public static final String TEST_CASE_FOUR
See Also:
Constant Field Values

TEST_CASE_FIVE

public static final String TEST_CASE_FIVE
See Also:
Constant Field Values

TEST_CASE_SIX

public static final String TEST_CASE_SIX
See Also:
Constant Field Values

TEST_CASE_SEVEN

public static final String TEST_CASE_SEVEN
See Also:
Constant Field Values

TEST_CASE_EIGHT_A

public static final String TEST_CASE_EIGHT_A
See Also:
Constant Field Values

TEST_CASE_EIGHT_B

public static final String TEST_CASE_EIGHT_B
See Also:
Constant Field Values

TEST_CASE_EIGHT_C

public static final String TEST_CASE_EIGHT_C
See Also:
Constant Field Values

TEST_CASE_NINE_A

public static final String TEST_CASE_NINE_A
See Also:
Constant Field Values

TEST_CASE_NINE_B

public static final String TEST_CASE_NINE_B
See Also:
Constant Field Values

TEST_CASE_NINE_C

public static final String TEST_CASE_NINE_C
See Also:
Constant Field Values

TEST_CASE_TEN

public static final String TEST_CASE_TEN
See Also:
Constant Field Values

TEST_CASE_ELEVEN

public static final String TEST_CASE_ELEVEN
See Also:
Constant Field Values

TEST_CASE_TWELVE

public static final String TEST_CASE_TWELVE
See Also:
Constant Field Values

SITE_ONE

public static final String SITE_ONE
See Also:
Constant Field Values

SITE_TWO

public static final String SITE_TWO
See Also:
Constant Field Values

SITE_THREE

public static final String SITE_THREE
See Also:
Constant Field Values

SITE_FOUR

public static final String SITE_FOUR
See Also:
Constant Field Values

SITE_FIVE

public static final String SITE_FIVE
See Also:
Constant Field Values

SITE_SIX

public static final String SITE_SIX
See Also:
Constant Field Values

SITE_SEVEN

public static final String SITE_SEVEN
See Also:
Constant Field Values
Constructor Detail

PEER_TestCaseSelectorControlPanel

public PEER_TestCaseSelectorControlPanel(Component parent,
                                         HazardCurveApplication api,
                                         IMR_MultiGuiBean imrGuiBean,
                                         Site_GuiBean siteGuiBean,
                                         IMT_NewGuiBean imtGuiBean,
                                         ERF_GuiBean erfGuiBean,
                                         TimeSpanGuiBean timeSpanGuiBean,
                                         CalculationSettingsControlPanelAPI application)
Class Constructor

Parameters:
parent - : Give the dimensions of the parent class calling it.
api - : Instance of the application implementing the PEER_TestCaseSelectorControlPanelAPI
imrGuiBean -
siteGuiBean -
imtGuiBean -
erfGuiBean -
timeSpanGuiBean -
distanceControlPanel -
Method Detail

doinit

public void doinit()
Description copied from class: ControlPanel
This method will be called the first time the control panel is displayed. All setup should be in this method and not in the constructor, so that the apps can start quickly.

Specified by:
doinit in class ControlPanel

setPEER_XValues

public void setPEER_XValues()
This method sets the X values for the hazard Curve to the PEER supported X Values.


setTestCaseAndSite

public void setTestCaseAndSite(String testAndSite)
This method extracts the selected Site and the selected TestCase set

Parameters:
testAndSite: - Contains both the site and the Selected Test Cases Set

setParams

public void setParams()
This function sets the site Paramters and the IMR parameters based on the selected test case and selected site number for that test case


getPEER_SetOneTestCasesNames

public ArrayList<String> getPEER_SetOneTestCasesNames()
Returns:
the ArrayList of the PEER Test Case set One

getPEER_SetTwoTestCasesNames

public ArrayList<String> getPEER_SetTwoTestCasesNames()
Returns:
the ArrayList of the PEER Test Case set Two

getComponent

public Window getComponent()
Specified by:
getComponent in class ControlPanel