org.opensha.nshmp.sha.io
Class DataRecord

java.lang.Object
  extended by org.opensha.nshmp.sha.io.DataRecord
Direct Known Subclasses:
HazardCurves_Record, NEHRP_Record, UHS_Record

public abstract class DataRecord
extends java.lang.Object

Title: DataRecord

Description: Creates the record type.

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

Field Summary
protected  float latitude
           
protected  float longitude
           
protected  short numValues
           
protected  int recordNumber
           
protected  float[] values
           
 
Constructor Summary
DataRecord()
           
 
Method Summary
 float getLatitude()
          Returns the Latitude of the record
 float getLongitude()
          Returns the Longitude of the record
 short getNumPeriods()
          Returns the number of periods
 float[] getPeriods()
          Returns the Periods
abstract  void getRecord(java.lang.String fileName, long recordNum)
          Reads the Record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recordNumber

protected int recordNumber

latitude

protected float latitude

longitude

protected float longitude

numValues

protected short numValues

values

protected float[] values
Constructor Detail

DataRecord

public DataRecord()
Method Detail

getRecord

public abstract void getRecord(java.lang.String fileName,
                               long recordNum)
Reads the Record

Parameters:
fileName - String
recordNum - long

getLatitude

public float getLatitude()
Returns the Latitude of the record

Returns:
float

getLongitude

public float getLongitude()
Returns the Longitude of the record

Returns:
float

getNumPeriods

public short getNumPeriods()
Returns the number of periods

Returns:
short

getPeriods

public float[] getPeriods()
Returns the Periods

Returns:
float[]