org.opensha.gem.GEM1.util
Enum GridSourceParams

java.lang.Object
  extended by java.lang.Enum<GridSourceParams>
      extended by org.opensha.gem.GEM1.util.GridSourceParams
All Implemented Interfaces:
Serializable, Comparable<GridSourceParams>

public enum GridSourceParams
extends Enum<GridSourceParams>


Enum Constant Summary
DELTA_STRIKE
          Delta strike.
MAG_AREA_REL
          Magnitude area scaling relationship.
MAG_CUT_OFF
          Cut off magnitude.
MAG_CUT_OFF_TOP_RUP_DEPTH
          Cut off magnitude for depth to top of rupture distribution.
MAG_LENGTH_REL
          Magnitude length scaling relationship.
MAX_STRIKE
          Maximum strike angle.
MIN_STRIKE
          Minimum strike angle.
RUP_ASPECT_RATIO
          Rupture aspect ratio.
RUP_CENTER_DEPTH
          Rupture center depth.
RUP_GRID_SPACING
          Rupture grid spacing.
TOP_RUP_DEPTH_GREATER_MAG_CUT_OFF
          Top of rupture depth for events with magnitude greater than the cut-off magnitude.
TOP_RUP_DEPTH_LESS_MAG_CUT_OFF
          Top of rupture depth for events with magnitude less than the cut-off magnitude.
 
Method Summary
static GridSourceParams getTypeForName(String name)
          This gets the GemSourceType associated with the given string
static boolean isValidType(String name)
          This check whether given string is a valid Gem source type
 String toString()
           
static GridSourceParams valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GridSourceParams[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MAG_AREA_REL

public static final GridSourceParams MAG_AREA_REL
Magnitude area scaling relationship. It is used for non-vertical faults. Non-vertical faults are treated as 3D faults to take into account the hanging wall effect.


MAG_LENGTH_REL

public static final GridSourceParams MAG_LENGTH_REL
Magnitude length scaling relationship. It is used for vertical faults, because they are treated as 2D faults.


MAG_CUT_OFF

public static final GridSourceParams MAG_CUT_OFF
Cut off magnitude. Below this value the source is treated as a point source.


RUP_ASPECT_RATIO

public static final GridSourceParams RUP_ASPECT_RATIO
Rupture aspect ratio.


RUP_CENTER_DEPTH

public static final GridSourceParams RUP_CENTER_DEPTH
Rupture center depth.


MAG_CUT_OFF_TOP_RUP_DEPTH

public static final GridSourceParams MAG_CUT_OFF_TOP_RUP_DEPTH
Cut off magnitude for depth to top of rupture distribution.


TOP_RUP_DEPTH_LESS_MAG_CUT_OFF

public static final GridSourceParams TOP_RUP_DEPTH_LESS_MAG_CUT_OFF
Top of rupture depth for events with magnitude less than the cut-off magnitude.


TOP_RUP_DEPTH_GREATER_MAG_CUT_OFF

public static final GridSourceParams TOP_RUP_DEPTH_GREATER_MAG_CUT_OFF
Top of rupture depth for events with magnitude greater than the cut-off magnitude.


RUP_GRID_SPACING

public static final GridSourceParams RUP_GRID_SPACING
Rupture grid spacing.


MIN_STRIKE

public static final GridSourceParams MIN_STRIKE
Minimum strike angle.


MAX_STRIKE

public static final GridSourceParams MAX_STRIKE
Maximum strike angle.


DELTA_STRIKE

public static final GridSourceParams DELTA_STRIKE
Delta strike.

Method Detail

values

public static GridSourceParams[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GridSourceParams c : GridSourceParams.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GridSourceParams valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getTypeForName

public static GridSourceParams getTypeForName(String name)
This gets the GemSourceType associated with the given string

Parameters:
name -
Returns:

isValidType

public static boolean isValidType(String name)
This check whether given string is a valid Gem source type

Parameters:
name -
Returns:

toString

public String toString()
Overrides:
toString in class Enum<GridSourceParams>