Enum Class CompressorState

java.lang.Object
java.lang.Enum<CompressorState>
neqsim.process.equipment.compressor.CompressorState
All Implemented Interfaces:
Serializable, Comparable<CompressorState>, Constable

public enum CompressorState extends Enum<CompressorState>
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
  • Enum Constant Details

    • STOPPED

      public static final CompressorState STOPPED
      Compressor is stopped and not rotating. No flow or pressure rise. Ready for startup sequence.
    • STARTING

      public static final CompressorState STARTING
      Compressor is in the startup sequence. Speed is ramping up according to startup profile. Anti-surge valve may be fully open.
    • RUNNING

      public static final CompressorState RUNNING
      Normal operating state. Compressor is running within design envelope. Speed and flow are within acceptable limits.
    • SURGE_PROTECTION

      public static final CompressorState SURGE_PROTECTION
      Surge protection is active. Operating point is near or at surge line. Anti-surge valve is modulating to protect compressor.
    • SPEED_LIMITED

      public static final CompressorState SPEED_LIMITED
      Speed is limited by driver power or mechanical constraints. Compressor cannot achieve requested operating point.
    • SHUTDOWN

      public static final CompressorState SHUTDOWN
      Compressor is in controlled shutdown sequence. Speed is ramping down according to shutdown profile.
    • DEPRESSURIZING

      public static final CompressorState DEPRESSURIZING
      System is depressurizing. Compressor may be coasting down. Used during emergency shutdown or planned depressurization.
    • TRIPPED

      public static final CompressorState TRIPPED
      Emergency shutdown state. Compressor has tripped due to protective action. Requires operator acknowledgment before restart.
    • STANDBY

      public static final CompressorState STANDBY
      Compressor is on standby, ready for quick start. May be pressurized but not rotating.
  • Field Details

    • displayName

      private final String displayName
    • description

      private final String description
  • Constructor Details

    • CompressorState

      private CompressorState(String displayName, String description)
      Constructor for CompressorState.
      Parameters:
      displayName - the human-readable name of the state
      description - a description of what the state means
  • Method Details

    • values

      public static CompressorState[] 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

      public static CompressorState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDisplayName

      public String getDisplayName()
      Get the display name of this state.
      Returns:
      the human-readable name
    • getDescription

      public String getDescription()
      Get the description of this state.
      Returns:
      the description
    • 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

      public String toString()
      Overrides:
      toString in class Enum<CompressorState>