org.opensha.sha.calc.IM_EventSet.v03.outputImpl
Class HAZ01ASegment

java.lang.Object
  extended by org.opensha.sha.calc.IM_EventSet.v03.outputImpl.HAZ01ASegment

public class HAZ01ASegment
extends Object

This class represents a segment (constant ERF, site, imr, and imt) of a HAZ01A file

Author:
kevin

Constructor Summary
HAZ01ASegment(String erf, int siteID, String imr, String imt)
           
 
Method Summary
 void addRecord(int sourceID, int rupID, double vs30, double dist, double mean, double stdDev, double interStdDev)
           
 Double getDistVal(int i)
           
 String getErf()
           
 String getIMR()
           
 String getIMT()
           
 Double getInterStdDevVal(int i)
           
 String getLine(int lineID, int i)
           
 String getLine(int lineID, int sourceID, int rupID, double vs30, double dist, double mean, double stdDev, double interStdDev)
           
 Double getMeanVal(int i)
           
 Integer getRupID(int i)
           
 int getSiteID()
           
 Integer getSourceID(int i)
           
 Double getStdDevVal(int i)
           
 Double getVs30Val(int i)
           
static ArrayList<HAZ01ASegment> loadHAZ01A(String file)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HAZ01ASegment

public HAZ01ASegment(String erf,
                     int siteID,
                     String imr,
                     String imt)
Method Detail

getErf

public String getErf()

getSiteID

public int getSiteID()

getIMR

public String getIMR()

getIMT

public String getIMT()

getVs30Val

public Double getVs30Val(int i)

getDistVal

public Double getDistVal(int i)

getMeanVal

public Double getMeanVal(int i)

getStdDevVal

public Double getStdDevVal(int i)

getInterStdDevVal

public Double getInterStdDevVal(int i)

getSourceID

public Integer getSourceID(int i)

getRupID

public Integer getRupID(int i)

size

public int size()

addRecord

public void addRecord(int sourceID,
                      int rupID,
                      double vs30,
                      double dist,
                      double mean,
                      double stdDev,
                      double interStdDev)

getLine

public String getLine(int lineID,
                      int i)

getLine

public String getLine(int lineID,
                      int sourceID,
                      int rupID,
                      double vs30,
                      double dist,
                      double mean,
                      double stdDev,
                      double interStdDev)

loadHAZ01A

public static ArrayList<HAZ01ASegment> loadHAZ01A(String file)
                                           throws FileNotFoundException,
                                                  IOException
Throws:
FileNotFoundException
IOException