Enum Class ReleaseOrientation
- All Implemented Interfaces:
Serializable, Comparable<ReleaseOrientation>, Constable
Enumeration of release orientations for leak and rupture scenarios.
The release orientation affects:
- Jet trajectory and dispersion
- Pool formation for liquid releases
- Impingement on nearby equipment
- Version:
- 1.0
- Author:
- ESOL
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription45 degrees downward.45 degrees upward.Horizontal release - typical for pipe and flange leaks.Vertical downward release - typical for drain leaks.Vertical upward release - typical for vent releases. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAngle()Gets the release angle from horizontal.Gets the description.booleanChecks if release is predominantly horizontal.booleanChecks if release is predominantly vertical.toString()static ReleaseOrientationReturns the enum constant of this class with the specified name.static ReleaseOrientation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HORIZONTAL
Horizontal release - typical for pipe and flange leaks. -
VERTICAL_UP
Vertical upward release - typical for vent releases. -
VERTICAL_DOWN
Vertical downward release - typical for drain leaks. -
ANGLED_UP_45
45 degrees upward. -
ANGLED_DOWN_45
45 degrees downward.
-
-
Field Details
-
angle
private final double angle -
description
-
-
Constructor Details
-
ReleaseOrientation
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getAngle
public double getAngle()Gets the release angle from horizontal.- Returns:
- angle in degrees (-90 to +90)
-
getDescription
-
isHorizontal
public boolean isHorizontal()Checks if release is predominantly horizontal.- Returns:
- true if angle is within ±30° of horizontal
-
isVertical
public boolean isVertical()Checks if release is predominantly vertical.- Returns:
- true if angle is within 30° of vertical
-
toString
- Overrides:
toStringin classEnum<ReleaseOrientation>
-