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 java.lang.Object

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

Author:
kevin

Constructor Summary
HAZ01ASegment(java.lang.String erf, int siteID, java.lang.String imr, java.lang.String imt)
           
 
Method Summary
 void addRecord(int sourceID, int rupID, double vs30, double dist, double mean, double stdDev, double interStdDev)
           
 java.lang.Double getDistVal(int i)
           
 java.lang.String getErf()
           
 java.lang.String getIMR()
           
 java.lang.String getIMT()
           
 java.lang.Double getInterStdDevVal(int i)
           
 java.lang.String getLine(int lineID, int i)
           
 java.lang.String getLine(int lineID, int sourceID, int rupID, double vs30, double dist, double mean, double stdDev, double interStdDev)
           
 java.lang.Double getMeanVal(int i)
           
 java.lang.Integer getRupID(int i)
           
 int getSiteID()
           
 java.lang.Integer getSourceID(int i)
           
 java.lang.Double getStdDevVal(int i)
           
 java.lang.Double getVs30Val(int i)
           
static java.util.ArrayList<HAZ01ASegment> loadHAZ01A(java.lang.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(java.lang.String erf,
                     int siteID,
                     java.lang.String imr,
                     java.lang.String imt)
Method Detail

getErf

public java.lang.String getErf()

getSiteID

public int getSiteID()

getIMR

public java.lang.String getIMR()

getIMT

public java.lang.String getIMT()

getVs30Val

public java.lang.Double getVs30Val(int i)

getDistVal

public java.lang.Double getDistVal(int i)

getMeanVal

public java.lang.Double getMeanVal(int i)

getStdDevVal

public java.lang.Double getStdDevVal(int i)

getInterStdDevVal

public java.lang.Double getInterStdDevVal(int i)

getSourceID

public java.lang.Integer getSourceID(int i)

getRupID

public java.lang.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 java.lang.String getLine(int lineID,
                                int i)

getLine

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

loadHAZ01A

public static java.util.ArrayList<HAZ01ASegment> loadHAZ01A(java.lang.String file)
                                                     throws java.io.FileNotFoundException,
                                                            java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException