org.opensha.sha.calc.IM_EventSet.v03.gui
Class GUICalcAPI_Impl

java.lang.Object
  extended by org.opensha.sha.calc.IM_EventSet.v03.gui.GUICalcAPI_Impl
All Implemented Interfaces:
IM_EventSetCalc_v3_0_API

public class GUICalcAPI_Impl
extends Object
implements IM_EventSetCalc_v3_0_API


Constructor Summary
GUICalcAPI_Impl(ArrayList<Location> locs, ArrayList<ArrayList<SiteDataValue<?>>> userSitesData, File outputDir, OrderedSiteDataProviderList providers)
           
 
Method Summary
 int getNumSites()
          Returns the number of sites for the calculation
 File getOutputDir()
          Returns the output directory for all results
 OrderedSiteDataProviderList getSiteDataProviders()
          Returns the ordered site data provider list, or null to not use site data providers
 Location getSiteLocation(int i)
          Returns the Location of the ith site.
 ArrayList<Site> getSites()
           
 ArrayList<ArrayList<SiteDataValue<?>>> getSitesData()
          This initializes the site data values for each site.
 ArrayList<SiteDataValue<?>> getUserSiteDataValues(int i)
          Returns the user specified (in the input file) site data values for the site or null to try to use site data providers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUICalcAPI_Impl

public GUICalcAPI_Impl(ArrayList<Location> locs,
                       ArrayList<ArrayList<SiteDataValue<?>>> userSitesData,
                       File outputDir,
                       OrderedSiteDataProviderList providers)
Method Detail

getNumSites

public int getNumSites()
Description copied from interface: IM_EventSetCalc_v3_0_API
Returns the number of sites for the calculation

Specified by:
getNumSites in interface IM_EventSetCalc_v3_0_API
Returns:

getOutputDir

public File getOutputDir()
Description copied from interface: IM_EventSetCalc_v3_0_API
Returns the output directory for all results

Specified by:
getOutputDir in interface IM_EventSetCalc_v3_0_API
Returns:

getSiteDataProviders

public OrderedSiteDataProviderList getSiteDataProviders()
Description copied from interface: IM_EventSetCalc_v3_0_API
Returns the ordered site data provider list, or null to not use site data providers

Specified by:
getSiteDataProviders in interface IM_EventSetCalc_v3_0_API
Returns:

getSiteLocation

public Location getSiteLocation(int i)
Description copied from interface: IM_EventSetCalc_v3_0_API
Returns the Location of the ith site.

Specified by:
getSiteLocation in interface IM_EventSetCalc_v3_0_API
Returns:

getSites

public ArrayList<Site> getSites()
Specified by:
getSites in interface IM_EventSetCalc_v3_0_API

getSitesData

public ArrayList<ArrayList<SiteDataValue<?>>> getSitesData()
Description copied from interface: IM_EventSetCalc_v3_0_API
This initializes the site data values for each site. If there is user specified data for the specific site, that is given top priority. If there are also site data providers available, those will be used (but given lower priority than any user values).

Specified by:
getSitesData in interface IM_EventSetCalc_v3_0_API
Returns:

getUserSiteDataValues

public ArrayList<SiteDataValue<?>> getUserSiteDataValues(int i)
Description copied from interface: IM_EventSetCalc_v3_0_API
Returns the user specified (in the input file) site data values for the site or null to try to use site data providers

Specified by:
getUserSiteDataValues in interface IM_EventSetCalc_v3_0_API
Returns: