Class HeatExchanger
- All Implemented Interfaces:
Serializable, Runnable, AutoSizeable, CapacityConstrainedEquipment, HeaterInterface, HeatExchangerInterface, ProcessEquipmentInterface, TwoPortInterface, StateVectorProvider, SimulationInterface, NamedInterface
HeatExchanger class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for constructing HeatExchanger instances with a fluent API. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleDesign duty in Watts for capacity constraint.private doubleDesign UA value in W/K for capacity constraint.(package private) doubleprotected double(package private) double(package private) booleanprivate Stringdoubleprivate doubleprivate booleanInternal auto-sized flag for heat exchanger.private booleanFlag for HX-specific capacity analysis.private Map<String, CapacityConstraint> Capacity constraints map.(package private) StreamInterface[]private doubleMaximum shell-side pressure drop in bar.private doubleMaximum tube-side pressure drop in bar.private doubleMinimum approach temperature in K.(package private) double(package private) StreamInterface[](package private) intprivate static final longSerialization version UID.(package private) boolean(package private) SystemInterfaceprotected doubledoubleprivate doubleprivate booleanFields inherited from class Heater
coolingMediumTemperature, lastDuty, lastFlowRate, lastOutPressure, lastOutTemperature, lastPressure, lastPressureDrop, lastTemperature, logger, mechanicalDesign, pressureOut, setOutPressureFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionHeatExchanger(String name) Constructor for HeatExchanger.HeatExchanger(String name, StreamInterface inStream1) Constructor for HeatExchanger.HeatExchanger(String name, StreamInterface inStream1, StreamInterface inStream2) Constructor for HeatExchanger. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapacityConstraint(CapacityConstraint constraint) Adds a new capacity constraint to this equipment.voidaddInStream(StreamInterface inStream) Add inlet stream.voidautoSize(double safetyFactor) Automatically size the equipment based on connected stream conditions.static HeatExchanger.BuilderCreates a new Builder for constructing a HeatExchanger with a fluent API.doublecalcThermalEffectivenes(double NTU, double Cr) calcThermalEffectivenes.voidClears all capacity constraints from this equipment.voiddisplayResult.doubleCalculates the current approach temperature.Gets the constraint with the highest utilization (the bottleneck).Gets all capacity constraints defined for this equipment.doubleGetter for the fielddeltaT.doubleGets the design duty.doubleGets the design UA value.doublegetDuty()getDuty.doublegetEntropyProduction(String unit) getEntropyProduction.Getter for the fieldflowArrangement.doubleGetter for the fieldguessOutTemperature.doubleGetter for the fieldhotColdDutyBalance.getInStream(int i) Getter for the fieldinStream.doublegetInTemperature(int i) Get temperature of instream i.doublegetMassBalance(String unit) getMassBalance.doubleGets the maximum utilization across all constraints.Get amechanicalDesignfor the equipment.doubleGets the minimum approach temperature.getOutStream(int i) getOutStream.doublegetOutTemperature(int i) Get temperature of outstream i.Get a detailed sizing report after auto-sizing.Get the current state as a standardized vector.doubleGetter for the fieldthermalEffectiveness.doublegetUAvalue.private voidInitialize heat exchanger specific capacity constraints.voidInitialize ainitMechanicalDesignfor the equipment.booleanCheck if equipment has been auto-sized.booleanChecks if capacity analysis is enabled for this equipment.booleanChecks if any capacity constraint is violated (exceeds 100% utilization).booleanChecks if any HARD constraint limit is exceeded.booleanremoveCapacityConstraint(String constraintName) Removes a capacity constraint by name.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidrunConditionAnalysis.voidrunConditionAnalysis(ProcessEquipmentInterface refExchanger) runConditionAnalysis.voidrunDeltaT.voidrunSpecifiedStream.protected voidsetAutoSized(boolean autoSized) Sets the autoSized flag.voidsetCapacityAnalysisEnabled(boolean enabled) Enables or disables capacity analysis for this equipment.voidsetDeltaT(double deltaT) Setter for the fielddeltaT.voidsetDesignDuty(double duty) Sets the design duty for capacity calculations.voidsetDesignUAValue(double uaValue) Sets the design UA value for capacity calculations.voidsetdT(double dT) setdT.voidsetFeedStream(int number, StreamInterface inStream) setFeedStream.voidsetFlowArrangement(String flowArrangement) Setter for the fieldflowArrangement.voidsetGuessOutTemperature(double guessOutTemperature) Setter for the fieldguessOutTemperature.voidsetGuessOutTemperature(double guessOutTemperature, String unit) Setter for the fieldguessOutTemperature.voidsetHotColdDutyBalance(double hotColdDutyBalance) Setter for the fieldhotColdDutyBalance.voidsetMaxShellPressureDrop(double pressureDrop) Sets the maximum shell-side pressure drop.voidsetMaxTubePressureDrop(double pressureDrop) Sets the maximum tube-side pressure drop.voidsetMinApproachTemperature(double temperature) Sets the minimum approach temperature.voidSetter for the fieldname.voidsetOutStream(int streamNumber, StreamInterface outStream) Setter for the fieldoutStream.voidsetOutTemperature(double temperature) Set the outlet temperature of the heater.voidsetThermalEffectiveness(double thermalEffectiveness) Setter for the fieldthermalEffectiveness.voidsetUAvalue(double UAvalue) setUAvalue.voidsetUseDeltaT(boolean useDeltaT) Setter for the fielduseDeltaT.toJson()Serializes the Process Equipment along with its state to a JSON string.toJson(ReportConfig cfg) Serializes the Process Equipment with configurable level of detail.Methods inherited from class Heater
autoSize, autoSize, getCapacityDuty, getCapacityMax, getDuty, getEnergyInput, getExergyChange, getMaxDesignDuty, getMaxDesignDuty, getMaxOutletTemperature, getMaxOutletTemperature, getMinOutletTemperature, getMinOutletTemperature, getPressureDrop, getSizingReportJson, getUtilitySpecification, hasMaxOutletTemperatureLimit, hasMinOutletTemperatureLimit, initializeCapacityConstraints, isSetEnergyInput, needRecalculation, runTransient, setDuty, setEnergyInput, setMaxDesignDuty, setMaxDesignDuty, setMaxOutletTemperature, setMaxOutletTemperature, setMinOutletTemperature, setMinOutletTemperature, setOutletPressure, setOutletPressure, setOutletTemperature, setOutletTemperature, setOutStream, setOutTP, setPressureDrop, setSetEnergyInput, setUtilityApproachTemperature, setUtilityHeatCapacityRate, setUtilityOverallHeatTransferCoefficient, setUtilityReturnTemperature, setUtilitySpecification, setUtilitySupplyTemperatureMethods inherited from class TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getOutletPressure, getOutletStream, getOutletTemperature, setInletPressure, setInletStream, setInletTemperature, setOutletStream, validateSetupMethods inherited from class ProcessEquipmentBaseClass
copy, equals, getConditionAnalysisMessage, getController, getEffectiveCapacityFactor, getEnergyStream, getFailureMode, getMassBalance, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, hashCode, isActive, isActive, isFailed, isSetEnergyStream, reportResults, restoreFromFailure, run_step, setController, setEnergyStream, setEnergyStream, setFailureMode, setFlowValveController, setMinimumFlow, setPressure, setRegulatorOutSignal, setSpecification, setTemperature, simulateDegradedOperation, simulateTrip, solvedMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagName, setTagNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CapacityConstrainedEquipment
disableAllConstraints, enableAllConstraints, getAvailableMargin, getAvailableMarginPercent, getMaxUtilizationPercent, getUtilizationSummary, isNearCapacityLimitMethods inherited from interface HeaterInterface
setOutletPressure, setOutletTemperature, setOutTPMethods inherited from interface NamedInterface
getName, getTagName, setTagNameMethods inherited from interface ProcessEquipmentInterface
getExergyChange, getFluid, getOperatingEnvelopeViolation, getRestCapacity, getSimulationValidationErrors, isSimulationValid, isWithinOperatingEnvelopeMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime, solvedMethods inherited from interface StateVectorProvider
getStateDimension, getStateNamesMethods inherited from interface TwoPortInterface
getInStream, getOutStream, setOutPressure, setOutPressure, setOutTemperature
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
setTemperature
boolean setTemperature -
outStream
StreamInterface[] outStream -
inStream
StreamInterface[] inStream -
system
SystemInterface system -
NTU
double NTU -
temperatureOut
protected double temperatureOut -
dT
protected double dT -
dH
double dH -
UAvalue
private double UAvalue -
duty
double duty -
hotColdDutyBalance
private double hotColdDutyBalance -
firstTime
boolean firstTime -
guessOutTemperature
public double guessOutTemperature -
guessOutTemperatureUnit
-
outStreamSpecificationNumber
int outStreamSpecificationNumber -
thermalEffectiveness
public double thermalEffectiveness -
flowArrangement
-
useDeltaT
private boolean useDeltaT -
deltaT
private double deltaT -
designDuty
private double designDutyDesign duty in Watts for capacity constraint. -
designUAValue
private double designUAValueDesign UA value in W/K for capacity constraint. -
minApproachTemperature
private double minApproachTemperatureMinimum approach temperature in K. -
maxShellPressureDrop
private double maxShellPressureDropMaximum shell-side pressure drop in bar. -
maxTubePressureDrop
private double maxTubePressureDropMaximum tube-side pressure drop in bar. -
hxCapacityConstraints
Capacity constraints map. -
hxCapacityAnalysisEnabled
private boolean hxCapacityAnalysisEnabledFlag for HX-specific capacity analysis. -
hxAutoSized
private boolean hxAutoSizedInternal auto-sized flag for heat exchanger.
-
-
Constructor Details
-
HeatExchanger
Constructor for HeatExchanger.- Parameters:
name- name of heat exchanger
-
HeatExchanger
Constructor for HeatExchanger.- Parameters:
name- name of heat exchangerinStream1- input stream
-
HeatExchanger
Constructor for HeatExchanger.- Parameters:
name- name of heat exchangerinStream1- input stream 1inStream2- input stream 2
-
-
Method Details
-
addInStream
Add inlet stream.
- Parameters:
inStream- aStreamInterfaceobject
-
setFeedStream
setFeedStream. Will also set name of outstreams.
- Parameters:
number- a intinStream- aStreamInterfaceobject
-
getMechanicalDesign
Get a
mechanicalDesignfor the equipment.- Specified by:
getMechanicalDesignin interfaceProcessEquipmentInterface- Overrides:
getMechanicalDesignin classHeater- Returns:
- a
MechanicalDesignobject
-
initMechanicalDesign
public void initMechanicalDesign()Initialize a
initMechanicalDesignfor the equipment.- Specified by:
initMechanicalDesignin interfaceProcessEquipmentInterface- Overrides:
initMechanicalDesignin classHeater
-
setName
Setter for the field
name.- Specified by:
setNamein interfaceNamedInterface- Overrides:
setNamein classNamedBaseClass- Parameters:
name- aStringobject
-
setdT
public void setdT(double dT) setdT.
- Specified by:
setdTin interfaceHeaterInterface- Overrides:
setdTin classHeater- Parameters:
dT- a double
-
getOutStream
getOutStream.
- Specified by:
getOutStreamin interfaceHeatExchangerInterface- Parameters:
i- a int- Returns:
- a
StreamInterfaceobject
-
getInStream
Getter for the field
inStream.- Parameters:
i- a int- Returns:
- a
StreamInterfaceobject
-
setOutTemperature
public void setOutTemperature(double temperature) Set the outlet temperature of the heater.
- Specified by:
setOutTemperaturein interfaceTwoPortInterface- Overrides:
setOutTemperaturein classHeater- Parameters:
temperature- Temperature in Kelvin
-
getOutTemperature
public double getOutTemperature(int i) Get temperature of outstream i.
- Parameters:
i- a int- Returns:
- a double
-
getInTemperature
public double getInTemperature(int i) Get temperature of instream i.
- Parameters:
i- a int- Returns:
- a double
-
setOutStream
Setter for the field
outStream.- Parameters:
streamNumber- a intoutStream- the outStream to set
-
runSpecifiedStream
-
runDeltaT
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Specified by:
runin interfaceSimulationInterface- Overrides:
runin classHeater- Parameters:
id- UUID
-
getDuty
-
displayResult
public void displayResult()displayResult.
- Specified by:
displayResultin interfaceProcessEquipmentInterface- Overrides:
displayResultin classHeater
-
getUAvalue
public double getUAvalue()getUAvalue.
- Returns:
- the UAvalue
-
setUAvalue
public void setUAvalue(double UAvalue) setUAvalue.
- Parameters:
UAvalue- the UAvalue to set
-
getGuessOutTemperature
public double getGuessOutTemperature()Getter for the field
guessOutTemperature.- Returns:
- a double
-
setGuessOutTemperature
public void setGuessOutTemperature(double guessOutTemperature) Setter for the field
guessOutTemperature.- Parameters:
guessOutTemperature- a double
-
setGuessOutTemperature
Setter for the field
guessOutTemperature.- Parameters:
guessOutTemperature- a doubleunit- a String
-
getEntropyProduction
getEntropyProduction.
- Specified by:
getEntropyProductionin interfaceProcessEquipmentInterface- Overrides:
getEntropyProductionin classHeater- Parameters:
unit- aStringobject- Returns:
- a double
-
getMassBalance
getMassBalance.
- Specified by:
getMassBalancein interfaceProcessEquipmentInterface- Overrides:
getMassBalancein classTwoPortEquipment- Parameters:
unit- aStringobject- Returns:
- a double
-
runConditionAnalysis
runConditionAnalysis.
- Specified by:
runConditionAnalysisin interfaceProcessEquipmentInterface- Overrides:
runConditionAnalysisin classProcessEquipmentBaseClass- Parameters:
refExchanger- aProcessEquipmentInterfaceobject
-
runConditionAnalysis
public void runConditionAnalysis()runConditionAnalysis.
-
getThermalEffectiveness
public double getThermalEffectiveness()Getter for the field
thermalEffectiveness.- Returns:
- a double
-
setThermalEffectiveness
public void setThermalEffectiveness(double thermalEffectiveness) Setter for the field
thermalEffectiveness.- Parameters:
thermalEffectiveness- a double
-
getFlowArrangement
-
setFlowArrangement
Setter for the field
flowArrangement.- Parameters:
flowArrangement- name of flow arrangement
-
calcThermalEffectivenes
public double calcThermalEffectivenes(double NTU, double Cr) calcThermalEffectivenes.
- Parameters:
NTU- a doubleCr- a double- Returns:
- a double
-
getHotColdDutyBalance
public double getHotColdDutyBalance()Getter for the field
hotColdDutyBalance.- Returns:
- a double
-
setHotColdDutyBalance
public void setHotColdDutyBalance(double hotColdDutyBalance) Setter for the field
hotColdDutyBalance.- Parameters:
hotColdDutyBalance- a double
-
toJson
Serializes the Process Equipment along with its state to a JSON string.
- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classHeater- Returns:
- json string.
-
toJson
Serializes the Process Equipment with configurable level of detail.- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classHeater- Parameters:
cfg- report configuration- Returns:
- json string
-
autoSize
public void autoSize(double safetyFactor) Automatically size the equipment based on connected stream conditions.This method calculates dimensions and design parameters using the inlet stream properties and applies the specified safety factor. The equipment must have a valid inlet stream connected before calling this method.
- Specified by:
autoSizein interfaceAutoSizeable- Overrides:
autoSizein classHeater- Parameters:
safetyFactor- multiplier for design capacity, typically 1.1-1.3 (10-30% over design)
-
setAutoSized
protected void setAutoSized(boolean autoSized) Sets the autoSized flag. Protected to allow subclass access.- Parameters:
autoSized- true if equipment has been auto-sized
-
isAutoSized
public boolean isAutoSized()Check if equipment has been auto-sized.- Specified by:
isAutoSizedin interfaceAutoSizeable- Overrides:
isAutoSizedin classHeater- Returns:
- true if autoSize() has been called successfully
-
getSizingReport
Get a detailed sizing report after auto-sizing.The report includes:
- Design basis (flow rates, pressures, temperatures)
- Calculated dimensions
- Design parameters (K-factor, Cv, velocity, etc.)
- Safety margins
- Specified by:
getSizingReportin interfaceAutoSizeable- Overrides:
getSizingReportin classHeater- Returns:
- formatted sizing report string
-
setUseDeltaT
public void setUseDeltaT(boolean useDeltaT) Setter for the field
useDeltaT.- Parameters:
useDeltaT- a boolean
-
getDeltaT
public double getDeltaT()Getter for the field
deltaT.- Returns:
- a double
-
setDeltaT
public void setDeltaT(double deltaT) Setter for the field
deltaT.- Parameters:
deltaT- a double
-
getStateVector
Get the current state as a standardized vector.The state vector should include all observable variables relevant for control and monitoring. Values should be in physical units with appropriate bounds.
Returns state vector containing:
- hot_inlet_temp - Hot side inlet temperature [K]
- hot_outlet_temp - Hot side outlet temperature [K]
- cold_inlet_temp - Cold side inlet temperature [K]
- cold_outlet_temp - Cold side outlet temperature [K]
- duty - Heat duty [kW]
- ua_value - UA value [W/K]
- effectiveness - Thermal effectiveness [fraction]
- lmtd - Log mean temperature difference [K]
- hot_flow - Hot side mass flow [kg/s]
- cold_flow - Cold side mass flow [kg/s]
- Specified by:
getStateVectorin interfaceStateVectorProvider- Returns:
- current state vector
-
builder
Creates a new Builder for constructing a HeatExchanger with a fluent API.Example usage:
HeatExchanger hx = HeatExchanger.builder("E-100").hotStream(hotFeed).coldStream(coldFeed) .UAvalue(5000.0).flowArrangement("counterflow").build();- Parameters:
name- the name of the heat exchanger- Returns:
- a new Builder instance
-
setDesignDuty
public void setDesignDuty(double duty) Sets the design duty for capacity calculations.- Parameters:
duty- design duty in Watts
-
getDesignDuty
public double getDesignDuty()Gets the design duty.- Returns:
- design duty in Watts
-
setDesignUAValue
public void setDesignUAValue(double uaValue) Sets the design UA value for capacity calculations.- Parameters:
uaValue- design UA value in W/K
-
getDesignUAValue
public double getDesignUAValue()Gets the design UA value.- Returns:
- design UA value in W/K
-
setMinApproachTemperature
public void setMinApproachTemperature(double temperature) Sets the minimum approach temperature.- Parameters:
temperature- minimum approach temperature in K
-
getMinApproachTemperature
public double getMinApproachTemperature()Gets the minimum approach temperature.- Returns:
- minimum approach temperature in K
-
setMaxShellPressureDrop
public void setMaxShellPressureDrop(double pressureDrop) Sets the maximum shell-side pressure drop.- Parameters:
pressureDrop- maximum pressure drop in bar
-
setMaxTubePressureDrop
public void setMaxTubePressureDrop(double pressureDrop) Sets the maximum tube-side pressure drop.- Parameters:
pressureDrop- maximum pressure drop in bar
-
getApproachTemperature
public double getApproachTemperature()Calculates the current approach temperature.- Returns:
- current approach temperature in K
-
initializeHxCapacityConstraints
private void initializeHxCapacityConstraints()Initialize heat exchanger specific capacity constraints. -
isCapacityAnalysisEnabled
public boolean isCapacityAnalysisEnabled()Checks if capacity analysis is enabled for this equipment.When disabled, this equipment is excluded from bottleneck detection, capacity utilization summaries, and optimization routines. The equipment still tracks its constraints but doesn't contribute to system-level analysis.
- Specified by:
isCapacityAnalysisEnabledin interfaceCapacityConstrainedEquipment- Overrides:
isCapacityAnalysisEnabledin classProcessEquipmentBaseClass- Returns:
- true if capacity analysis is enabled (default is true)
-
setCapacityAnalysisEnabled
public void setCapacityAnalysisEnabled(boolean enabled) Enables or disables capacity analysis for this equipment.When disabled, this equipment is excluded from:
- System bottleneck detection (
ProcessSystem.findBottleneck()) - Capacity utilization summaries (
ProcessSystem.getCapacityUtilizationSummary()) - Equipment near capacity lists (
ProcessSystem.getEquipmentNearCapacityLimit()) - Optimization constraint checking
The equipment still calculates and tracks its constraints internally.
- Specified by:
setCapacityAnalysisEnabledin interfaceCapacityConstrainedEquipment- Overrides:
setCapacityAnalysisEnabledin classProcessEquipmentBaseClass- Parameters:
enabled- true to include in capacity analysis, false to exclude
- System bottleneck detection (
-
getCapacityConstraints
Gets all capacity constraints defined for this equipment.The map keys are constraint names (e.g., "speed", "gasLoadFactor") and values are the corresponding CapacityConstraint objects containing design values, current values, and utilization calculations.
- Specified by:
getCapacityConstraintsin interfaceCapacityConstrainedEquipment- Overrides:
getCapacityConstraintsin classHeater- Returns:
- unmodifiable map of constraint name to CapacityConstraint
-
getBottleneckConstraint
Gets the constraint with the highest utilization (the bottleneck).This method identifies which constraint is closest to or exceeding its design limit. Use this to determine what is limiting equipment capacity.
- Specified by:
getBottleneckConstraintin interfaceCapacityConstrainedEquipment- Overrides:
getBottleneckConstraintin classHeater- Returns:
- the bottleneck constraint, or null if no constraints are defined
-
isCapacityExceeded
public boolean isCapacityExceeded()Checks if any capacity constraint is violated (exceeds 100% utilization).A violated constraint means the equipment is operating beyond its design capacity. For HARD constraints, this may indicate equipment trip or failure. For SOFT constraints, this indicates reduced efficiency or accelerated wear.
- Specified by:
isCapacityExceededin interfaceCapacityConstrainedEquipment- Overrides:
isCapacityExceededin classHeater- Returns:
- true if any constraint utilization exceeds 1.0 (100%)
-
isHardLimitExceeded
public boolean isHardLimitExceeded()Checks if any HARD constraint limit is exceeded.HARD limits represent absolute equipment limits (e.g., maximum speed) that cannot be exceeded without equipment trip or damage. This is more severe than general capacity exceedance.
- Specified by:
isHardLimitExceededin interfaceCapacityConstrainedEquipment- Overrides:
isHardLimitExceededin classHeater- Returns:
- true if any HARD constraint's max value is exceeded
-
getMaxUtilization
public double getMaxUtilization()Gets the maximum utilization across all constraints.This gives a single number representing how close the equipment is to its limiting constraint. Values above 1.0 indicate the equipment is over capacity.
- Specified by:
getMaxUtilizationin interfaceCapacityConstrainedEquipment- Overrides:
getMaxUtilizationin classHeater- Returns:
- maximum utilization as fraction (1.0 = 100% of design capacity)
-
addCapacityConstraint
Adds a new capacity constraint to this equipment.This allows dynamic addition of constraints at runtime. Constraints can be added during equipment configuration or based on operating conditions.
- Specified by:
addCapacityConstraintin interfaceCapacityConstrainedEquipment- Overrides:
addCapacityConstraintin classHeater- Parameters:
constraint- the constraint to add
-
removeCapacityConstraint
Removes a capacity constraint by name.- Specified by:
removeCapacityConstraintin interfaceCapacityConstrainedEquipment- Overrides:
removeCapacityConstraintin classHeater- Parameters:
constraintName- the name of the constraint to remove- Returns:
- true if the constraint was found and removed
-
clearCapacityConstraints
public void clearCapacityConstraints()Clears all capacity constraints from this equipment.- Specified by:
clearCapacityConstraintsin interfaceCapacityConstrainedEquipment- Overrides:
clearCapacityConstraintsin classHeater
-