org.opensha.sha.cybershake.db
Class CybershakeIM

java.lang.Object
  extended by org.opensha.sha.cybershake.db.CybershakeIM
All Implemented Interfaces:
Comparable<CybershakeIM>

public class CybershakeIM
extends Object
implements Comparable<CybershakeIM>


Nested Class Summary
static class CybershakeIM.CyberShakeComponent
           
static class CybershakeIM.IMType
           
 
Constructor Summary
CybershakeIM(int id, CybershakeIM.IMType measure, double val, String units, CybershakeIM.CyberShakeComponent component)
           
 
Method Summary
 int compareTo(CybershakeIM im)
           
 boolean equals(Object im)
           
static
<E extends Enum<E>>
E
fromDBField(String dbName, Class<E> clazz)
           
static CybershakeIM fromResultSet(ResultSet rs)
           
static
<E extends Enum<E>>
E
fromShortName(String shortName, Class<E> clazz)
           
 CybershakeIM.CyberShakeComponent getComponent()
           
 int getID()
           
 CybershakeIM.IMType getMeasure()
           
static
<E extends Enum<E>>
List<String>
getShortNames(Class<E> clazz)
           
 String getUnits()
           
 double getVal()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CybershakeIM

public CybershakeIM(int id,
                    CybershakeIM.IMType measure,
                    double val,
                    String units,
                    CybershakeIM.CyberShakeComponent component)
Method Detail

fromDBField

public static <E extends Enum<E>> E fromDBField(String dbName,
                                                Class<E> clazz)

fromShortName

public static <E extends Enum<E>> E fromShortName(String shortName,
                                                  Class<E> clazz)

getShortNames

public static <E extends Enum<E>> List<String> getShortNames(Class<E> clazz)

getID

public int getID()

getMeasure

public CybershakeIM.IMType getMeasure()

getComponent

public CybershakeIM.CyberShakeComponent getComponent()

getVal

public double getVal()

getUnits

public String getUnits()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object im)
Overrides:
equals in class Object

compareTo

public int compareTo(CybershakeIM im)
Specified by:
compareTo in interface Comparable<CybershakeIM>

fromResultSet

public static CybershakeIM fromResultSet(ResultSet rs)
                                  throws SQLException
Throws:
SQLException