Enum Class CompressorState
- All Implemented Interfaces:
Serializable, Comparable<CompressorState>, Constable
Enumeration representing the operating states of a compressor in dynamic simulations.
This enum provides explicit state tracking for compressor control logic, enabling proper handling of startup sequences, shutdown procedures, and protective actions.
- Version:
- 1.0
- Author:
- esol
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSystem is depressurizing.Normal operating state.Compressor is in controlled shutdown sequence.Speed is limited by driver power or mechanical constraints.Compressor is on standby, ready for quick start.Compressor is in the startup sequence.Compressor is stopped and not rotating.Surge protection is active.Emergency shutdown state. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCompressorState(String displayName, String description) Constructor for CompressorState. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanStart()Check if the compressor can be started from this state.Get the description of this state.Get the display name of this state.booleanCheck if the compressor is in a running state (RUNNING or SURGE_PROTECTION or SPEED_LIMITED).booleanCheck if the compressor is stopped (STOPPED, TRIPPED, or STANDBY).booleanCheck if the compressor is in a transitional state (STARTING, SHUTDOWN, DEPRESSURIZING).booleanCheck if the compressor requires operator acknowledgment before restart.toString()static CompressorStateReturns the enum constant of this class with the specified name.static CompressorState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STOPPED
Compressor is stopped and not rotating. No flow or pressure rise. Ready for startup sequence. -
STARTING
Compressor is in the startup sequence. Speed is ramping up according to startup profile. Anti-surge valve may be fully open. -
RUNNING
Normal operating state. Compressor is running within design envelope. Speed and flow are within acceptable limits. -
SURGE_PROTECTION
Surge protection is active. Operating point is near or at surge line. Anti-surge valve is modulating to protect compressor. -
SPEED_LIMITED
Speed is limited by driver power or mechanical constraints. Compressor cannot achieve requested operating point. -
SHUTDOWN
Compressor is in controlled shutdown sequence. Speed is ramping down according to shutdown profile. -
DEPRESSURIZING
System is depressurizing. Compressor may be coasting down. Used during emergency shutdown or planned depressurization. -
TRIPPED
Emergency shutdown state. Compressor has tripped due to protective action. Requires operator acknowledgment before restart. -
STANDBY
Compressor is on standby, ready for quick start. May be pressurized but not rotating.
-
-
Field Details
-
displayName
-
description
-
-
Constructor Details
-
CompressorState
-
-
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
-
getDescription
-
isOperational
public boolean isOperational()Check if the compressor is in a running state (RUNNING or SURGE_PROTECTION or SPEED_LIMITED).- Returns:
- true if compressor is operational
-
isTransitional
public boolean isTransitional()Check if the compressor is in a transitional state (STARTING, SHUTDOWN, DEPRESSURIZING).- Returns:
- true if compressor is in transition
-
isStopped
public boolean isStopped()Check if the compressor is stopped (STOPPED, TRIPPED, or STANDBY).- Returns:
- true if compressor is not rotating
-
canStart
public boolean canStart()Check if the compressor can be started from this state.- Returns:
- true if startup is allowed
-
requiresAcknowledgment
public boolean requiresAcknowledgment()Check if the compressor requires operator acknowledgment before restart.- Returns:
- true if acknowledgment is required
-
toString
- Overrides:
toStringin classEnum<CompressorState>
-