org.opensha.sha.gui
Class ScenarioShakeMapApp

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by org.opensha.sha.gui.ScenarioShakeMapApp
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, ParameterChangeListener, AttenuationRelationshipSiteParamsRegionAPI, CalculationSettingsControlPanelAPI, ScalarIMRChangeListener

public class ScenarioShakeMapApp
extends javax.swing.JFrame
implements ParameterChangeListener, AttenuationRelationshipSiteParamsRegionAPI, CalculationSettingsControlPanelAPI, java.lang.Runnable, ScalarIMRChangeListener

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.

Version:
1.0
Author:
: Edward (Ned) Field, Nitin Gupta and Vipin Gupta
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  javax.swing.JButton addButton
           
static java.lang.String APP_NAME
           
static java.lang.String APP_SHORT_NAME
           
protected  java.lang.String appShortName
          this is the short name for the application (not static because other apps extend this).
protected  java.util.ArrayList attenRel
           
protected  java.util.ArrayList attenRelWts
           
protected  javax.swing.border.Border border1
           
protected  java.awt.BorderLayout borderLayout1
           
protected  java.awt.BorderLayout borderLayout2
           
protected  javax.swing.JPanel buttonPanel
           
protected static java.lang.String C
          Name of the class
protected  CalculationSettingsControlPanel calcParamsControl
           
protected  CalcProgressBar calcProgress
           
protected  boolean calculationFromServer
           
protected static java.lang.String CONTROL_PANELS
           
protected  javax.swing.JComboBox controlComboBox
           
protected static boolean D
           
protected  java.awt.Insets defaultInsets
           
protected  javax.swing.JPanel eqkRupPanel
           
protected  EqkRupture eqkRupture
           
protected  EqkRupSelectorGuiBean erfGuiBean
           
protected  javax.swing.JPanel gmtPanel
           
protected  java.awt.GridBagLayout gridBagLayout1
           
protected  java.awt.GridBagLayout gridBagLayout2
           
protected  java.awt.GridBagLayout gridBagLayout3
           
protected  java.awt.GridBagLayout gridBagLayout4
           
protected  java.awt.GridBagLayout gridBagLayout5
           
protected  java.awt.GridBagLayout gridBagLayout6
           
protected  java.awt.GridBagLayout gridBagLayout8
           
protected  java.awt.GridBagLayout gridBagLayout9
           
protected  SitesInGriddedRegion griddedRegionSites
           
protected  java.awt.GridLayout gridLayout1
           
protected  javax.swing.JPanel gridRegionSitePanel
           
protected static int H
           
protected  GenerateHazusControlPanelForSingleMultipleIMRs hazusControl
           
protected  IMLorProbSelectorGuiBean imlProbGuiBean
           
protected  double imlProbValue
           
protected  AttenuationRelationshipGuiBean imrGuiBean
           
protected  javax.swing.JPanel imrPanel
           
protected  IM_EventSetCEA_ControlPanel imSetScenarioControl
           
protected  javax.swing.JPanel imtPanel
           
protected  boolean isStandalone
           
protected  javax.swing.JPanel mainPanel
           
protected  javax.swing.JSplitPane mainSplitPane
           
protected  MapGuiBean mapGuiBean
           
protected  java.lang.String mapParametersInfo
           
protected  javax.swing.JTabbedPane parameterTabbedPanel
           
protected  javax.swing.JPanel prob_IMLPanel
           
protected  boolean probAtIML
           
protected  PuenteHillsScenarioControlPanelUsingEqkRuptureCreation puenteHillsControlUsingEqkRupture
           
protected  RegionsOfInterestControlPanel regionsOfInterest
           
protected  SanAndreasScenarioControlPanel sanAndreasControlUsingEqkRupture
           
protected  java.lang.String serverRegionFilePath
           
protected  java.lang.String serverXYZDataSetFilePath
           
protected  ScenarioShakeMapCalculator shakeMapCalc
           
protected  OrderedSiteDataGUIBean siteDataGUIBean
           
protected  SitesInGriddedRectangularRegionGuiBean sitesGuiBean
           
protected  int step
           
protected  javax.swing.Timer timer
           
protected static int W
           
protected  GeoDataSet xyzDataSet
           
 
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(java.lang.String appShortName)
           
 
Method Summary
protected  void addButton_actionPerformed(java.awt.event.ActionEvent e)
           
protected  void addButton()
          when the generate Map button is pressed
protected  void controlComboBox_actionPerformed(java.awt.event.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
 java.lang.Object generateShakeMap(java.util.ArrayList attenRel, java.util.ArrayList attenRelWts, java.lang.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()
           
 java.lang.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  java.lang.String getMapLabel()
           
 java.lang.String getMapParametersInfoAsHTML()
           
 java.util.ArrayList getSelectedAttenuationRelationships()
           
 java.util.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 ScenarioShakeMapApp launch(DefaultExceptoinHandler handler)
           
static void main(java.lang.String[] args)
           
 void makeMapForHazus(java.lang.Object datasetForSA_03, java.lang.Object datasetForSA_1, java.lang.Object datasetForPGA, java.lang.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(java.lang.String controlName)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
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.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
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

APP_NAME

public static final java.lang.String APP_NAME
See Also:
Constant Field Values

APP_SHORT_NAME

public static final java.lang.String APP_SHORT_NAME
See Also:
Constant Field Values

appShortName

protected java.lang.String appShortName
this is the short name for the application (not static because other apps extend this).


C

protected static final java.lang.String C
Name of the class

See Also:
Constant Field Values

D

protected static final boolean D
See Also:
Constant Field Values

W

protected static final int W
See Also:
Constant Field Values

H

protected static final int H
See Also:
Constant Field Values

defaultInsets

protected java.awt.Insets defaultInsets

serverRegionFilePath

protected java.lang.String serverRegionFilePath

serverXYZDataSetFilePath

protected java.lang.String serverXYZDataSetFilePath

xyzDataSet

protected GeoDataSet xyzDataSet

griddedRegionSites

protected SitesInGriddedRegion griddedRegionSites

probAtIML

protected boolean probAtIML

imlProbValue

protected double imlProbValue

eqkRupture

protected EqkRupture eqkRupture

attenRel

protected java.util.ArrayList attenRel

attenRelWts

protected java.util.ArrayList attenRelWts

shakeMapCalc

protected ScenarioShakeMapCalculator shakeMapCalc

timer

protected javax.swing.Timer timer

mapParametersInfo

protected java.lang.String mapParametersInfo

calculationFromServer

protected boolean calculationFromServer

CONTROL_PANELS

protected static final java.lang.String CONTROL_PANELS
See Also:
Constant Field Values

regionsOfInterest

protected RegionsOfInterestControlPanel regionsOfInterest

puenteHillsControlUsingEqkRupture

protected PuenteHillsScenarioControlPanelUsingEqkRuptureCreation puenteHillsControlUsingEqkRupture

sanAndreasControlUsingEqkRupture

protected SanAndreasScenarioControlPanel sanAndreasControlUsingEqkRupture

imSetScenarioControl

protected IM_EventSetCEA_ControlPanel imSetScenarioControl

hazusControl

protected GenerateHazusControlPanelForSingleMultipleIMRs hazusControl

calcParamsControl

protected CalculationSettingsControlPanel calcParamsControl

erfGuiBean

protected EqkRupSelectorGuiBean erfGuiBean

imrGuiBean

protected AttenuationRelationshipGuiBean imrGuiBean

sitesGuiBean

protected SitesInGriddedRectangularRegionGuiBean sitesGuiBean

siteDataGUIBean

protected OrderedSiteDataGUIBean siteDataGUIBean

imlProbGuiBean

protected IMLorProbSelectorGuiBean imlProbGuiBean

mapGuiBean

protected MapGuiBean mapGuiBean

isStandalone

protected boolean isStandalone

mainPanel

protected javax.swing.JPanel mainPanel

border1

protected javax.swing.border.Border border1

mainSplitPane

protected javax.swing.JSplitPane mainSplitPane

buttonPanel

protected javax.swing.JPanel buttonPanel

eqkRupPanel

protected javax.swing.JPanel eqkRupPanel

gridBagLayout3

protected java.awt.GridBagLayout gridBagLayout3

gridBagLayout2

protected java.awt.GridBagLayout gridBagLayout2

gmtPanel

protected javax.swing.JPanel gmtPanel

parameterTabbedPanel

protected javax.swing.JTabbedPane parameterTabbedPanel

imrPanel

protected javax.swing.JPanel imrPanel

imtPanel

protected javax.swing.JPanel imtPanel

prob_IMLPanel

protected javax.swing.JPanel prob_IMLPanel

borderLayout2

protected java.awt.BorderLayout borderLayout2

gridBagLayout9

protected java.awt.GridBagLayout gridBagLayout9

gridBagLayout8

protected java.awt.GridBagLayout gridBagLayout8

addButton

protected javax.swing.JButton addButton

gridRegionSitePanel

protected javax.swing.JPanel gridRegionSitePanel

gridLayout1

protected java.awt.GridLayout gridLayout1

gridBagLayout1

protected java.awt.GridBagLayout gridBagLayout1

gridBagLayout5

protected java.awt.GridBagLayout gridBagLayout5

controlComboBox

protected javax.swing.JComboBox controlComboBox

gridBagLayout6

protected java.awt.GridBagLayout gridBagLayout6

borderLayout1

protected java.awt.BorderLayout borderLayout1

calcProgress

protected CalcProgressBar calcProgress

step

protected int step

gridBagLayout4

protected java.awt.GridBagLayout gridBagLayout4
Constructor Detail

ScenarioShakeMapApp

public ScenarioShakeMapApp(java.lang.String appShortName)
Method Detail

init

public void init()

getAppVersion

public static ApplicationVersion getAppVersion()
Returns the Application version

Returns:
ApplicationVersion

jbInit

protected void jbInit()
               throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

launch

public static ScenarioShakeMapApp launch(DefaultExceptoinHandler handler)

initGriddedRegionGuiBean

protected void initGriddedRegionGuiBean()
Initialise the Gridded Region sites gui bean


initSiteDataGuiBean

protected void initSiteDataGuiBean()

initIMRGuiBean

protected void initIMRGuiBean()
Initialize the IMR Gui Bean


initERFSelector_GuiBean

protected void initERFSelector_GuiBean()
Initialize the ERF Gui Bean


initImlProb_GuiBean

protected void initImlProb_GuiBean()
Initialise the IMT_Prob Selector Gui Bean


initMapGuiBean

protected void initMapGuiBean()
Sets the GMT Params


parameterChange

public 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. This function then determines what to do with the information ie. show some paramaters, set some as invisible, basically control the paramater lists.

Specified by:
parameterChange in interface ParameterChangeListener
Parameters:
event -

run

public void run()
Specified by:
run in interface java.lang.Runnable

setGriddedRegionSiteParams

public void setGriddedRegionSiteParams()
sets the Site Params from the AttenuationRelationships in the GriddedRegion Gui Bean.

Specified by:
setGriddedRegionSiteParams in interface AttenuationRelationshipSiteParamsRegionAPI

getGriddedRegionSites

protected void getGriddedRegionSites()
Updates the Sites Values for each site in the region chosen by the user


getIMLorProb

protected void getIMLorProb()
gets the IML or Prob selected option and its value from the respective guiBean


doCalculationOnServer

public boolean doCalculationOnServer()
If the calculation have to be done on server then returns true else retun false

Returns:

generateShakeMap

public java.lang.Object generateShakeMap(java.util.ArrayList attenRel,
                                         java.util.ArrayList attenRelWts,
                                         java.lang.String imt)
                                  throws ParameterException
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

Parameters:
attenRel - : Selected AttenuationRelationships
imt - : Selected IMT
Throws:
ParameterException

getEqkRupture

public void getEqkRupture()
Gets the EqkRupture object from the Eqk Rupture GuiBean


setRegionForGMT

protected void setRegionForGMT()
Sets the GMT Region coordinates


getSelectedIntensityMeasure

public Parameter getSelectedIntensityMeasure()
Returns the selected IM in the IMR GuiBean

Returns:

makeMapForHazus

public void makeMapForHazus(java.lang.Object datasetForSA_03,
                            java.lang.Object datasetForSA_1,
                            java.lang.Object datasetForPGA,
                            java.lang.Object datasetForPGV)
Creating the map for the Hazus. This creates the map and info for the SA-1sec, SA-0.3sec, PGA and PGV, all required as part calculation in Hazus. This will only generate the map and all the related information of the map but won't generate the shapefiles until the user has asked it to do so in the map parameters. Note : This method will always generate the Linear plot, whether the user has selected log plot in the map parameters, because Hazus only takes data in linearr space. So this method will always compute maps and its data in the linear space as Hazus does not accepts the log values in the map data.


getGriddedSitesMapTypeAndSelectedAttenRels

public 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. This function also gets the selected AttenuationRelationships in a ArrayList and their corresponding relative wts. This function also gets the mode of map calculation ( on server or on local machine)


addButton_actionPerformed

protected void addButton_actionPerformed(java.awt.event.ActionEvent e)

addButton

protected void addButton()
                  throws ParameterException,
                         java.lang.RuntimeException
when the generate Map button is pressed

Throws:
ParameterException
java.lang.RuntimeException

getMapLabel

protected java.lang.String getMapLabel()
Returns:
the Map label based on the selected Map Type( Prob@IML or IML@Prob)

getCalcAdjustableParams

public ParameterList getCalcAdjustableParams()
Specified by:
getCalcAdjustableParams in interface CalculationSettingsControlPanelAPI
Returns:
the Adjustable parameters for the ScenarioShakeMap calculator

getCalcParamMetadataString

public java.lang.String getCalcParamMetadataString()
Specified by:
getCalcParamMetadataString in interface CalculationSettingsControlPanelAPI
Returns:
the Metadata string for the Calculation Settings Adjustable Params

initControlList

protected void initControlList()
Initialize the items to be added to the control list


showControlPanel

protected void showControlPanel(java.lang.String controlName)

showControlPanel

protected void showControlPanel(ControlPanel control)

controlComboBox_actionPerformed

protected void controlComboBox_actionPerformed(java.awt.event.ActionEvent e)
This function is called when controls pick list is chosen

Parameters:
e -

getSelectedAttenuationRelationships

public java.util.ArrayList getSelectedAttenuationRelationships()
Returns:
the selected Attenuationrelationship model

getSelectedAttenuationRelationshipsWts

public java.util.ArrayList getSelectedAttenuationRelationshipsWts()
Returns:
the selected AttenuationRelationship wts

getMapParametersInfoAsHTML

public java.lang.String getMapParametersInfoAsHTML()
Returns:
the String containing the values selected for different parameters

imrChange

public void imrChange(ScalarIMRChangeEvent event)
Description copied from interface: ScalarIMRChangeListener
Function that must be implemented by all Listeners for AttenuationRelationshipChangeEvents.

Specified by:
imrChange in interface ScalarIMRChangeListener
Parameters:
event - The Event which triggered this function call