Enum Class CalculatorLibrary.Preset
- All Implemented Interfaces:
Serializable, Comparable<CalculatorLibrary.Preset>, Constable
- Enclosing class:
CalculatorLibrary
Preset identifiers that can be resolved through
CalculatorLibrary.byName(String).-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSets the output stream temperature to the hydrocarbon dew point of the first input stream at the output stream's pressure.Performs an enthalpy-based energy balance using the input streams and flashes the output stream at its current pressure to match the summed enthalpy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CalculatorLibrary.PresetReturns the enum constant of this class with the specified name.static CalculatorLibrary.Preset[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENERGY_BALANCE
Performs an enthalpy-based energy balance using the input streams and flashes the output stream at its current pressure to match the summed enthalpy. -
DEW_POINT_TARGETING
Sets the output stream temperature to the hydrocarbon dew point of the first input stream at the output stream's pressure.
-
-
Constructor Details
-
Preset
private Preset()
-
-
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
-