Enum Class StudyClass
- All Implemented Interfaces:
Serializable, Comparable<StudyClass>, Constable
Study classification for engineering deliverables.
Defines which deliverables are required for each study class according to oil & gas industry practice. Class A studies (FEED/Detailed Design) require the full set of engineering documents while Class B (Concept/Pre-FEED) requires a reduced set.
| Deliverable | Class A | Class B | Class C |
|---|---|---|---|
| Thermal utility summary | Yes | Yes | No |
| Process flow diagram | Yes | Yes | Yes |
| Alarm/trip schedule | Yes | No | No |
| Spare parts inventory | Yes | No | No |
| Fire scenario assessment | Yes | Yes | No |
| Noise assessment | Yes | No | No |
| Instrument schedule | Yes | Yes | No |
- Version:
- 1.0
- Author:
- esol
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of engineering deliverable types.Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Set<StudyClass.DeliverableType> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStudyClass(String displayName, Set<StudyClass.DeliverableType> requiredDeliverables) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprivate static Set<StudyClass.DeliverableType> Build a set of all deliverable types.Get the display name of this study class.Get the set of required deliverable types for this study class.booleanCheck if a specific deliverable type is required for this study class.private static Set<StudyClass.DeliverableType> toSet(StudyClass.DeliverableType... types) Convenience helper to build an unmodifiable set from varargs.toString()static StudyClassReturns the enum constant of this class with the specified name.static StudyClass[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASS_A
Class A: Full FEED / Detailed Design study. All deliverables required. -
CLASS_B
Class B: Concept / Pre-FEED study. Reduced deliverable set. -
CLASS_C
Class C: Screening study. Minimal deliverable set.
-
-
Field Details
-
displayName
-
requiredDeliverables
-
-
Constructor Details
-
StudyClass
Constructor.- Parameters:
displayName- human-readable namerequiredDeliverables- set of required deliverable types
-
-
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
-
getDisplayName
-
getRequiredDeliverables
Get the set of required deliverable types for this study class.- Returns:
- unmodifiable set of required deliverables
-
requires
Check if a specific deliverable type is required for this study class.- Parameters:
type- the deliverable type to check- Returns:
- true if the deliverable is required
-
allDeliverables
Build a set of all deliverable types.- Returns:
- set containing all deliverable types
-
toSet
Convenience helper to build an unmodifiable set from varargs.- Parameters:
types- deliverable types- Returns:
- set of types
-
toString
- Overrides:
toStringin classEnum<StudyClass>
-