Enum Class EquipmentRole
- All Implemented Interfaces:
Serializable, Comparable<EquipmentRole>, Constable
Classifies process equipment by its functional role in the process.
This classification is used by the layout intelligence layer to determine optimal positioning in professional PFD diagrams. Equipment role follows oil & gas industry conventions:
- GAS - Equipment handling predominantly gas phase (compressors, gas coolers)
- LIQUID - Equipment handling predominantly liquid phase (pumps, liquid heaters)
- SEPARATOR - Phase separation equipment (separators, scrubbers, flash drums)
- MIXED - Equipment handling mixed phases (heat exchangers, pipes)
- FEED - Feed/inlet streams
- PRODUCT - Product/outlet streams
- UTILITY - Utility equipment (coolers, heaters with external utility)
- CONTROL - Control equipment (valves, controllers)
- Version:
- 1.0
- Author:
- NeqSim
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionControl equipment - positioned inline with controlled equipment.Feed/inlet streams - positioned at left of diagram.Gas processing equipment - positioned in upper section of PFD.Liquid processing equipment - positioned in lower section of PFD.Mixed phase equipment - positioned based on context.Product/outlet streams - positioned at right of diagram.Separator equipment - anchor point, gas exits top, liquid exits bottom.Unknown equipment role.Utility equipment - positioned at side/periphery. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEquipmentRole(String displayName, String preferredZone, String defaultColor, int rankPriority) Constructor for EquipmentRole. -
Method Summary
Modifier and TypeMethodDescriptionGets the default color in hex format.Gets the display name.Gets the preferred zone for layout.intGets the rank priority for vertical layout (0 = top, higher = bottom).static EquipmentRoleReturns the enum constant of this class with the specified name.static EquipmentRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GAS
Gas processing equipment - positioned in upper section of PFD. -
LIQUID
Liquid processing equipment - positioned in lower section of PFD. -
SEPARATOR
Separator equipment - anchor point, gas exits top, liquid exits bottom. -
MIXED
Mixed phase equipment - positioned based on context. -
FEED
Feed/inlet streams - positioned at left of diagram. -
PRODUCT
Product/outlet streams - positioned at right of diagram. -
UTILITY
Utility equipment - positioned at side/periphery. -
CONTROL
Control equipment - positioned inline with controlled equipment. -
UNKNOWN
Unknown equipment role.
-
-
Field Details
-
displayName
Display name for this role. -
preferredZone
Preferred zone in PFD layout. -
defaultColor
Default color for this role (hex). -
rankPriority
private final int rankPriorityRank priority for vertical layout (0=top, higher=bottom).
-
-
Constructor Details
-
EquipmentRole
private EquipmentRole(String displayName, String preferredZone, String defaultColor, int rankPriority) Constructor for EquipmentRole.- Parameters:
displayName- human-readable namepreferredZone- preferred zone in layoutdefaultColor- default color in hex formatrankPriority- rank priority for vertical layout
-
-
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
-
getPreferredZone
-
getDefaultColor
-
getRankPriority
public int getRankPriority()Gets the rank priority for vertical layout (0 = top, higher = bottom).- Returns:
- rank priority
-