org.opensha.nshmp.sha.data
Class DataGenerator_IRC

java.lang.Object
  extended by org.opensha.nshmp.sha.data.DataGenerator_NEHRP
      extended by org.opensha.nshmp.sha.data.DataGenerator_IRC
All Implemented Interfaces:
DataGeneratorAPI_NEHRP

public class DataGenerator_IRC
extends DataGenerator_NEHRP

Title: DataGenerator_IRC

Description: This class acts as the modal for the application. It computes data needed by the application.

Version:
1.0
Author:
Ned Field, Nitin Gupta and E.V.Leyendecker

Field Summary
 
Fields inherited from class org.opensha.nshmp.sha.data.DataGenerator_NEHRP
dataEdition, dataInfo, faVal, fvVal, geographicRegion, lat, lon, mapSpectrumSaSdFunction, mapSpectrumSaTFunction, metadataForPlots, saFunction, sdSpectrumSaSdFunction, sdSpectrumSaTFunction, selectedSpectraType, siteClass, smSpectrumSaSdFunction, smSpectrumSaTFunction, zipCode
 
Constructor Summary
DataGenerator_IRC()
           
 
Method Summary
 void calculateSsS1()
          Gets the data for SsS1 in case Territory.
 void calculateSsS1(java.util.ArrayList<Location> locations, java.lang.String outFile)
          Gets the data for SsS1 for each location in the list of locations.
 void calculateSsS1(double lat, double lon)
          Gets the data for SsS1 in case region specified is not a Territory and user specifies Lat-Lon for the location.
 void calculateSsS1(java.lang.String zipCode)
          Gets the data for SsS1 in case region specified is not a Territory and user specifies zip code for the location.
 
Methods inherited from class org.opensha.nshmp.sha.data.DataGenerator_NEHRP
addDataInfo, calculatedSDSsS1, calculateMapSpectrum, calculateMapSpectrum, calculateSDSpectrum, calculateSDSpectrum, calculateSDSsS1, calculateSMSpectrum, calculateSMSpectrum, calculateSMsSm1SDsSD1, calculateSMSsS1, calculateSMSsS1, clearData, createMetadataForPlots, getCalculatedSDSsS1Function, getCalculateSDSsS1Function, getCalculateSMSsS1Function, getCalculateSMSsS1Function, getCalculateSsS1Function, getCalculateSsS1Function, getCalculateSsS1Function, getDataInfo, getFunctionsForMapSpectrum, getFunctionsForSDSpectrum, getFunctionsForSMSpectrum, getFunctionsToPlotForSA, getSa, getSaFunction, getSelectedSiteClass, getSs, setEdition, setFa, setFv, setNoLocation, setRegion, setSiteClass, setSpectraType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataGenerator_IRC

public DataGenerator_IRC()
Method Detail

calculateSsS1

public void calculateSsS1()
                   throws java.rmi.RemoteException
Gets the data for SsS1 in case Territory. Territory is when user is not allowed to enter any zip code or Lat-Lon for the location or if it is GAUM and TAUTILLA.

Specified by:
calculateSsS1 in interface DataGeneratorAPI_NEHRP
Overrides:
calculateSsS1 in class DataGenerator_NEHRP
Throws:
java.rmi.RemoteException

calculateSsS1

public void calculateSsS1(double lat,
                          double lon)
                   throws java.rmi.RemoteException
Gets the data for SsS1 in case region specified is not a Territory and user specifies Lat-Lon for the location.

Specified by:
calculateSsS1 in interface DataGeneratorAPI_NEHRP
Overrides:
calculateSsS1 in class DataGenerator_NEHRP
Throws:
java.rmi.RemoteException

calculateSsS1

public void calculateSsS1(java.util.ArrayList<Location> locations,
                          java.lang.String outFile)
Description copied from interface: DataGeneratorAPI_NEHRP
Gets the data for SsS1 for each location in the list of locations. If any given location is not valid for the current region, an error message is displayed and the output displays "Out of Region" information. Output is directed to the specified outFile Excel file.

Specified by:
calculateSsS1 in interface DataGeneratorAPI_NEHRP
Overrides:
calculateSsS1 in class DataGenerator_NEHRP
Parameters:
locations - A list of locations to calculate SsS1 at.
outFile - The Excel file to output the information.

calculateSsS1

public void calculateSsS1(java.lang.String zipCode)
                   throws ZipCodeErrorException,
                          java.rmi.RemoteException
Gets the data for SsS1 in case region specified is not a Territory and user specifies zip code for the location.

Specified by:
calculateSsS1 in interface DataGeneratorAPI_NEHRP
Overrides:
calculateSsS1 in class DataGenerator_NEHRP
Throws:
ZipCodeErrorException
java.rmi.RemoteException