org.opensha.sra.asset
Enum LossType

java.lang.Object
  extended by java.lang.Enum<LossType>
      extended by org.opensha.sra.asset.LossType
All Implemented Interfaces:
Serializable, Comparable<LossType>

public enum LossType
extends Enum<LossType>

This enum identifies different types of losses. For a building or contents AssetType, the only loss type is repair cost. People have several possible loss types related to injury: Maximum Abbreviated Injury Severity (0, 1, 2, ??? 6); HAZUS injury severity (0, 1, ??? 4); or workers??? comp injury severity (none, PT, PP, TT, or TP). Economic output has one loss type: economic cost of loss of use.

Version:
$Id: LossType.java 7478 2011-02-15 04:56:25Z pmpowers $
Author:
Peter Powers
See Also:
AssetCategory

Enum Constant Summary
ATC_13_1
          Fraction of indoor occupants injured to ATC-13 severity 1.
ATC_13_2
          Fraction of indoor occupants injured to ATC-13 severity 2.
ATC_13_3
          Fraction of indoor occupants injured to ATC-13 severity 3.
DOWN_TIME
          Fraction of a year required to make facility operational.
HAZUS_1
          Fraction of indoor occupants injured to HAZUS severity 1.
HAZUS_2
          Fraction of indoor occupants injured to HAZUS severity 2.
HAZUS_3
          Fraction of indoor occupants injured to HAZUS severity 3.
HAZUS_4
          Fraction of indoor occupants injured to HAZUS severity 4.
REPAIR_COST
          Repair cost as a fraction of replacement cost.
 
Method Summary
 List<AssetCategory> getSupportedAssetTypes()
          Returns the AssetTypes for which this LossType is applicable.
static LossType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LossType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REPAIR_COST

public static final LossType REPAIR_COST
Repair cost as a fraction of replacement cost.


HAZUS_1

public static final LossType HAZUS_1
Fraction of indoor occupants injured to HAZUS severity 1.


HAZUS_2

public static final LossType HAZUS_2
Fraction of indoor occupants injured to HAZUS severity 2.


HAZUS_3

public static final LossType HAZUS_3
Fraction of indoor occupants injured to HAZUS severity 3.


HAZUS_4

public static final LossType HAZUS_4
Fraction of indoor occupants injured to HAZUS severity 4.


ATC_13_1

public static final LossType ATC_13_1
Fraction of indoor occupants injured to ATC-13 severity 1.


ATC_13_2

public static final LossType ATC_13_2
Fraction of indoor occupants injured to ATC-13 severity 2.


ATC_13_3

public static final LossType ATC_13_3
Fraction of indoor occupants injured to ATC-13 severity 3.


DOWN_TIME

public static final LossType DOWN_TIME
Fraction of a year required to make facility operational.

Method Detail

values

public static LossType[] 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 (LossType c : LossType.values())
    System.out.println(c);

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

valueOf

public static LossType 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

getSupportedAssetTypes

public List<AssetCategory> getSupportedAssetTypes()
Returns the AssetTypes for which this LossType is applicable.

Returns:
a Collection of AssetTypes