|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.opensha.sha.gui.ScenarioShakeMapApp
public class ScenarioShakeMapApp
Title: ScenarioShakeMapApp
Description: This application provides the flexibility to plot shakemaps using the single Attenuation as well as the multiple attenuation relationships.
TESTS PERFORMED:1) the Wills site-class servlet and site-type translator were checked independently.
2) All attenuation-relationship parameter settings were checked using the debugging option in the ScenarioShakeMapCalculator (e.g., three different events with different focal mechanisms checked - src #s 136, 232, and 61 in the USGS/CGS_2002 ERF). Thus, the values should be correct as long as the attenuation-relationships are working properly, which has been checked independently using the AttenuationRelationshipApplet.
3) Various IML@prob or prob@iml with various truncations were checked against calculations with the AttenuationRelationshipApplet.
4) ShakeMaps computed here were compared with those at the offical USGS archive (more details later).
5) The wted-averages in multi-attenuation-relationship mode were checked, as well as the fact that log-averages are taken over probabilities and IMLs where appropriate.
6) That the HAZUS files are generated correctly was checked.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ScenarioShakeMapApp(String appShortName)
|
|
| Method Summary | |
|---|---|
protected void |
addButton_actionPerformed(ActionEvent e)
|
protected void |
addButton()
when the generate Map button is pressed |
protected void |
controlComboBox_actionPerformed(ActionEvent e)
This function is called when controls pick list is chosen |
boolean |
doCalculationOnServer()
If the calculation have to be done on server then returns true else retun false |
Object |
generateShakeMap(ArrayList attenRel,
ArrayList attenRelWts,
String imt)
This method calculates the probablity or the IML for the selected Gridded Region and stores the value in each vectors(lat-ArrayList, Lon-ArrayList and IML or Prob ArrayList) The IML or prob vector contains value based on what the user has selected in the Map type |
static ApplicationVersion |
getAppVersion()
Returns the Application version |
ParameterList |
getCalcAdjustableParams()
|
String |
getCalcParamMetadataString()
|
void |
getEqkRupture()
Gets the EqkRupture object from the Eqk Rupture GuiBean |
protected void |
getGriddedRegionSites()
Updates the Sites Values for each site in the region chosen by the user |
void |
getGriddedSitesMapTypeAndSelectedAttenRels()
This function sets the Gridded region Sites and the type of plot user wants to see IML@Prob or Prob@IML and it value. |
protected void |
getIMLorProb()
gets the IML or Prob selected option and its value from the respective guiBean |
protected String |
getMapLabel()
|
String |
getMapParametersInfoAsHTML()
|
ArrayList |
getSelectedAttenuationRelationships()
|
ArrayList |
getSelectedAttenuationRelationshipsWts()
|
Parameter |
getSelectedIntensityMeasure()
Returns the selected IM in the IMR GuiBean |
void |
imrChange(ScalarIMRChangeEvent event)
Function that must be implemented by all Listeners for AttenuationRelationshipChangeEvents. |
void |
init()
|
protected void |
initControlList()
Initialize the items to be added to the control list |
protected void |
initERFSelector_GuiBean()
Initialize the ERF Gui Bean |
protected void |
initGriddedRegionGuiBean()
Initialise the Gridded Region sites gui bean |
protected void |
initImlProb_GuiBean()
Initialise the IMT_Prob Selector Gui Bean |
protected void |
initIMRGuiBean()
Initialize the IMR Gui Bean |
protected void |
initMapGuiBean()
Sets the GMT Params |
protected void |
initSiteDataGuiBean()
|
protected void |
jbInit()
|
static void |
main(String[] args)
|
void |
makeMapForHazus(Object datasetForSA_03,
Object datasetForSA_1,
Object datasetForPGA,
Object datasetForPGV)
Creating the map for the Hazus. |
void |
parameterChange(ParameterChangeEvent event)
Any time a control paramater or independent paramater is changed by the user in a GUI this function is called, and a paramater change event is passed in. |
void |
run()
|
void |
setGriddedRegionSiteParams()
sets the Site Params from the AttenuationRelationships in the GriddedRegion Gui Bean. |
protected void |
setRegionForGMT()
Sets the GMT Region coordinates |
protected void |
showControlPanel(ControlPanel control)
|
protected void |
showControlPanel(String controlName)
|
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final String APP_NAME
public static final String APP_SHORT_NAME
protected String appShortName
protected static final String C
protected static final boolean D
protected static final int W
protected static final int H
protected Insets defaultInsets
protected String serverRegionFilePath
protected String serverXYZDataSetFilePath
protected GeoDataSet xyzDataSet
protected SitesInGriddedRegion griddedRegionSites
protected boolean probAtIML
protected double imlProbValue
protected EqkRupture eqkRupture
protected ArrayList attenRel
protected ArrayList attenRelWts
protected ScenarioShakeMapCalculator shakeMapCalc
protected Timer timer
protected String mapParametersInfo
protected boolean calculationFromServer
protected static final String CONTROL_PANELS
protected RegionsOfInterestControlPanel regionsOfInterest
protected PuenteHillsScenarioControlPanelUsingEqkRuptureCreation puenteHillsControlUsingEqkRupture
protected SanAndreasScenarioControlPanel sanAndreasControlUsingEqkRupture
protected IM_EventSetCEA_ControlPanel imSetScenarioControl
protected GenerateHazusControlPanelForSingleMultipleIMRs hazusControl
protected CalculationSettingsControlPanel calcParamsControl
protected EqkRupSelectorGuiBean erfGuiBean
protected AttenuationRelationshipGuiBean imrGuiBean
protected SitesInGriddedRectangularRegionGuiBean sitesGuiBean
protected OrderedSiteDataGUIBean siteDataGUIBean
protected IMLorProbSelectorGuiBean imlProbGuiBean
protected MapGuiBean mapGuiBean
protected boolean isStandalone
protected JPanel mainPanel
protected Border border1
protected JSplitPane mainSplitPane
protected JPanel buttonPanel
protected JPanel eqkRupPanel
protected GridBagLayout gridBagLayout3
protected GridBagLayout gridBagLayout2
protected JPanel gmtPanel
protected JTabbedPane parameterTabbedPanel
protected JPanel imrPanel
protected JPanel imtPanel
protected JPanel prob_IMLPanel
protected BorderLayout borderLayout2
protected GridBagLayout gridBagLayout9
protected GridBagLayout gridBagLayout8
protected JButton addButton
protected JPanel gridRegionSitePanel
protected GridLayout gridLayout1
protected GridBagLayout gridBagLayout1
protected GridBagLayout gridBagLayout5
protected JComboBox controlComboBox
protected GridBagLayout gridBagLayout6
protected BorderLayout borderLayout1
protected CalcProgressBar calcProgress
protected int step
protected GridBagLayout gridBagLayout4
| Constructor Detail |
|---|
public ScenarioShakeMapApp(String appShortName)
| Method Detail |
|---|
public void init()
public static ApplicationVersion getAppVersion()
protected void jbInit()
throws Exception
Exception
public static void main(String[] args)
throws IOException
IOExceptionprotected void initGriddedRegionGuiBean()
protected void initSiteDataGuiBean()
protected void initIMRGuiBean()
protected void initERFSelector_GuiBean()
protected void initImlProb_GuiBean()
protected void initMapGuiBean()
public void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent - public void run()
run in interface Runnablepublic void setGriddedRegionSiteParams()
setGriddedRegionSiteParams in interface AttenuationRelationshipSiteParamsRegionAPIprotected void getGriddedRegionSites()
protected void getIMLorProb()
public boolean doCalculationOnServer()
public Object generateShakeMap(ArrayList attenRel,
ArrayList attenRelWts,
String imt)
throws ParameterException
attenRel - : Selected AttenuationRelationshipsimt - : Selected IMT
ParameterExceptionpublic void getEqkRupture()
protected void setRegionForGMT()
public Parameter getSelectedIntensityMeasure()
public void makeMapForHazus(Object datasetForSA_03,
Object datasetForSA_1,
Object datasetForPGA,
Object datasetForPGV)
public void getGriddedSitesMapTypeAndSelectedAttenRels()
protected void addButton_actionPerformed(ActionEvent e)
protected void addButton()
throws ParameterException,
RuntimeException
ParameterException
RuntimeExceptionprotected String getMapLabel()
public ParameterList getCalcAdjustableParams()
getCalcAdjustableParams in interface CalculationSettingsControlPanelAPIpublic String getCalcParamMetadataString()
getCalcParamMetadataString in interface CalculationSettingsControlPanelAPIprotected void initControlList()
protected void showControlPanel(String controlName)
protected void showControlPanel(ControlPanel control)
protected void controlComboBox_actionPerformed(ActionEvent e)
e - public ArrayList getSelectedAttenuationRelationships()
public ArrayList getSelectedAttenuationRelationshipsWts()
public String getMapParametersInfoAsHTML()
public void imrChange(ScalarIMRChangeEvent event)
ScalarIMRChangeListener
imrChange in interface ScalarIMRChangeListenerevent - The Event which triggered this function call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||