org.opensha.sha.simulators.eqsim_v04
Class EventRecord

java.lang.Object
  extended by org.opensha.sha.simulators.eqsim_v04.EventRecord

public class EventRecord
extends Object

This gives information about an event on a specific section (separate event records are used when an event involves multiple sections)

Author:
field

Constructor Summary
EventRecord(ArrayList<RectangularElement> rectElementsList)
          No arg constructor
EventRecord(String fileLine, ArrayList<RectangularElement> rectElementsList)
           
 
Method Summary
 void addSlipAndElementData(String fileLine)
          This extracts and saves the slip and element ID info data from a Slip-Map-Record line, but only if the slip is assigned to a specific element (the element ID on the line is >0).
 void addType202_Line(String fileLine)
          This adds the element ID from a type 202 line.
 double getArea()
           
 double getDepthHi()
           
 double getDepthLo()
           
 double getDuration()
           
 int[] getElementIDs()
           
 double[] getElementSlips()
          This gives an array of element slips (meters)
 int getID()
           
 double getLength()
           
 double getMagnitude()
           
 double getMaxDAS()
           
 double getMeanSlip()
           
 double getMinDAS()
           
 double getMoment()
           
 ArrayList<RectangularElement> getRectangularElements()
           
 int getSectionID()
           
 double getTime()
           
 Vertex getVertxForMaxDAS()
          This returns a vertex corresponding to the maximum DAS (although there may be more than one with the same DAS)
 Vertex getVertxForMinDAS()
          This returns a vertex corresponding to the minimum DAS (although there may be more than one with the same DAS)
 boolean hasElementSlipsAndIDs()
           
 void setTime(double time)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventRecord

public EventRecord(ArrayList<RectangularElement> rectElementsList)
No arg constructor


EventRecord

public EventRecord(String fileLine,
                   ArrayList<RectangularElement> rectElementsList)
Method Detail

addSlipAndElementData

public void addSlipAndElementData(String fileLine)
This extracts and saves the slip and element ID info data from a Slip-Map-Record line, but only if the slip is assigned to a specific element (the element ID on the line is >0).

Parameters:
fileLine -

addType202_Line

public void addType202_Line(String fileLine)
This adds the element ID from a type 202 line.

Parameters:
fileLine -

getID

public int getID()

getSectionID

public int getSectionID()

getMagnitude

public double getMagnitude()

getDuration

public double getDuration()

getTime

public double getTime()

setTime

public void setTime(double time)

getElementIDs

public int[] getElementIDs()

getMeanSlip

public double getMeanSlip()
Returns:
mean slip in meters

getArea

public double getArea()
Returns:
area in meters squared

getLength

public double getLength()
Returns:
length in meters

getDepthLo

public double getDepthLo()

getDepthHi

public double getDepthHi()

getElementSlips

public double[] getElementSlips()
This gives an array of element slips (meters)

Returns:

hasElementSlipsAndIDs

public boolean hasElementSlipsAndIDs()

getMoment

public double getMoment()

getMinDAS

public double getMinDAS()
Returns:
min DAS in meters

getMaxDAS

public double getMaxDAS()
Returns:
max DAS in meters

getVertxForMinDAS

public Vertex getVertxForMinDAS()
This returns a vertex corresponding to the minimum DAS (although there may be more than one with the same DAS)

Returns:

getVertxForMaxDAS

public Vertex getVertxForMaxDAS()
This returns a vertex corresponding to the maximum DAS (although there may be more than one with the same DAS)

Returns:

getRectangularElements

public ArrayList<RectangularElement> getRectangularElements()

toString

public String toString()
Overrides:
toString in class Object