Class FacilityConfig
java.lang.Object
neqsim.process.fielddevelopment.facility.FacilityConfig
- All Implemented Interfaces:
Serializable
Immutable configuration for a complete facility.
Created by FacilityBuilder, this class holds all the block configurations and parameters
needed to instantiate a facility.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<BlockConfig> private final FieldConceptprivate final doubleprivate final Stringprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionFacilityConfig(String name, FieldConcept concept, List<BlockConfig> blocks, List<String> redundancyRequirements, double designMargin) -
Method Summary
Modifier and TypeMethodDescriptionintGets the number of blocks in the facility.Gets the list of configured blocks.getBlocksOfType(BlockType type) Gets blocks of a specific type.Gets the underlying field concept.doubleGets the design margin factor.getName()Gets the facility name.Gets the redundancy requirements.Gets a summary description of the facility.intGets the total number of compression stages.booleanChecks if the facility has a specific block type.booleanChecks if this facility has CO2 removal.booleanChecks if this facility has compression.booleanChecks if this facility has dehydration.booleanEstimates if this is a "complex" facility based on block count and types.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
concept
-
blocks
-
redundancyRequirements
-
designMargin
private final double designMargin
-
-
Constructor Details
-
FacilityConfig
FacilityConfig(String name, FieldConcept concept, List<BlockConfig> blocks, List<String> redundancyRequirements, double designMargin)
-
-
Method Details
-
getName
-
getConcept
-
getBlocks
Gets the list of configured blocks.- Returns:
- unmodifiable list of blocks
-
getBlocksOfType
Gets blocks of a specific type.- Parameters:
type- block type to filter by- Returns:
- list of matching blocks
-
hasBlock
Checks if the facility has a specific block type.- Parameters:
type- block type to check- Returns:
- true if facility has this block type
-
getRedundancyRequirements
-
getDesignMargin
public double getDesignMargin()Gets the design margin factor.- Returns:
- design margin (e.g., 1.15 for 15% margin)
-
getBlockCount
public int getBlockCount()Gets the number of blocks in the facility.- Returns:
- block count
-
hasCompression
public boolean hasCompression()Checks if this facility has compression.- Returns:
- true if compression block exists
-
hasCo2Removal
public boolean hasCo2Removal()Checks if this facility has CO2 removal.- Returns:
- true if any CO2 removal block exists
-
hasDehydration
public boolean hasDehydration()Checks if this facility has dehydration.- Returns:
- true if TEG dehydration block exists
-
getTotalCompressionStages
public int getTotalCompressionStages()Gets the total number of compression stages.- Returns:
- total compression stages
-
isComplex
public boolean isComplex()Estimates if this is a "complex" facility based on block count and types.- Returns:
- true if complex
-
getSummary
-
toString
-