org.opensha.sha.gui.servlets
Class CyberShakeHazardDataSelectorServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opensha.sha.gui.servlets.CyberShakeHazardDataSelectorServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class CyberShakeHazardDataSelectorServlet
- extends javax.servlet.http.HttpServlet
Title: CyberShakeHazardDataSelectorServlet
Description: This servlet selects the different Sites completed for
CyberShake and then collects the hazard dataset for different SA values.
- Version:
- 1.0
- Author:
- Nitin Gupta
- See Also:
- Serialized Form
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
DiscretizedFunc |
readDeterministicDataSet(String siteName,
String saPeriod,
String srcIndex,
Integer rupIndex,
ArrayList imlVals)
This method reads the seismogram files for each rupture with all variations
computed in Cybershake and returns the curve data for it. |
DiscretizedFunc |
readHazardDataSet(String siteName,
String saPeriod)
This method reads the Hazard data file for a given Cybershake Site and Sa Period. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GET_CYBERSHAKE_INFO_PROB_CURVE
public static final String GET_CYBERSHAKE_INFO_PROB_CURVE
- See Also:
- Constant Field Values
GET_CYBERSHAKE_INFO_DETER_CURVE
public static final String GET_CYBERSHAKE_INFO_DETER_CURVE
- See Also:
- Constant Field Values
GET_HAZARD_DATA
public static final String GET_HAZARD_DATA
- See Also:
- Constant Field Values
GET_DETERMINISTIC_DATA
public static final String GET_DETERMINISTIC_DATA
- See Also:
- Constant Field Values
CyberShakeHazardDataSelectorServlet
public CyberShakeHazardDataSelectorServlet()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
readHazardDataSet
public DiscretizedFunc readHazardDataSet(String siteName,
String saPeriod)
- This method reads the Hazard data file for a given Cybershake Site and Sa Period.
- Parameters:
siteName - String Cybershake site.saPeriod - String SA period for which hazard data needs to be read.
- Returns:
- ArrayList
readDeterministicDataSet
public DiscretizedFunc readDeterministicDataSet(String siteName,
String saPeriod,
String srcIndex,
Integer rupIndex,
ArrayList imlVals)
- This method reads the seismogram files for each rupture with all variations
computed in Cybershake and returns the curve data for it.
- Parameters:
siteName - String Site NamesaPeriod - String SA PeriodsrcIndex - Double Src IndexrupIndex - Double Rup IndeximlVals - ArrayList iml values for which deterministic curve needs to
be computed.
- Returns:
- ArrayList of data read from seismogram file.