Class Heater
- All Implemented Interfaces:
Serializable, Runnable, AutoSizeable, CapacityConstrainedEquipment, HeaterInterface, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface
- Direct Known Subclasses:
Cooler, HeatExchanger, MultiStreamHeatExchanger, MultiStreamHeatExchanger2, NeqHeater, SteamHeater
Heater class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag indicating if heater has been auto-sized.private final Map<String, CapacityConstraint> Storage for capacity constraints.(package private) doubleprotected doubleprivate doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected double(package private) static org.apache.logging.log4j.LoggerLogger object for class.private doubleMaximum outlet temperature limit in Kelvin.protected HeatExchangerMechanicalDesignprivate static final doubleMinimum default design duty in Watts when current duty is zero.private doubleMinimum outlet temperature limit in Kelvin. 0.0 means no limit.private doubleprotected doubleprivate Stringprivate static final longSerialization version UID.private boolean(package private) boolean(package private) boolean(package private) SystemInterfaceprivate StringUnit for temperature limits (for display/reporting purposes).protected doubleprivate Stringprivate UtilityStreamSpecificationFields inherited from class TwoPortEquipment
inStream, outStreamFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for Heater.Heater(String name, StreamInterface inStream) Constructor for Heater. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapacityConstraint(CapacityConstraint constraint) Adds a new capacity constraint to this equipment.voidautoSize()Automatically size using default safety factor (1.2 = 20% margin).voidautoSize(double safetyFactor) Automatically size the equipment based on connected stream conditions.voidAutomatically size using company-specific design standards.voidClears all capacity constraints from this equipment.voiddisplayResult.Gets the constraint with the highest utilization (the bottleneck).Gets all capacity constraints defined for this equipment.doublegetCapacityDuty.doublegetCapacityMax.doublegetDuty()getDuty.doublegetDuty.doubleGetter for the fieldenergyInput.doublegetEntropyProduction(String unit) getEntropyProduction.doublegetExergyChange(String unit, double surroundingTemperature) Get exergy change production of the process equipment.doubleGets the maximum design duty for this heater/cooler.doublegetMaxDesignDuty(String unit) Gets the maximum design duty in the specified unit.doubleGets the maximum outlet temperature limit.doubleGets the maximum outlet temperature limit in the specified unit.doubleGets the maximum utilization across all constraints.Get amechanicalDesignfor the equipment.doubleGets the minimum outlet temperature limit.doubleGets the minimum outlet temperature limit in the specified unit.doubleGetter for the fieldpressureDrop.Get a detailed sizing report after auto-sizing.Get sizing report as JSON for programmatic access.Returns the utility-side specification used by the mechanical design calculation.booleanChecks if a maximum outlet temperature limit has been set.booleanChecks if a minimum outlet temperature limit has been set.protected voidInitializes default capacity constraints for the heater.voidInitialize ainitMechanicalDesignfor the equipment.booleanCheck if equipment has been auto-sized.booleanChecks if any capacity constraint is violated (exceeds 100% utilization).booleanChecks if any HARD constraint limit is exceeded.booleanisSetEnergyInput.booleanCheck if process equipment needs recalculating.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.voidrunTransient(double dt, UUID id) runTransientvoidsetdT(double dT) setdT.voidsetDuty(double energyInput) setDuty.voidsetEnergyInput(double energyInput) Setter for the fieldenergyInput.voidsetMaxDesignDuty(double maxDuty) Sets the maximum design duty (heating or cooling capacity) for capacity constraint checking.voidsetMaxDesignDuty(double maxDuty, String unit) Sets the maximum design duty with unit specification.voidsetMaxOutletTemperature(double maxTemp) Sets the maximum outlet temperature limit in Kelvin.voidsetMaxOutletTemperature(double maxTemp, String unit) Sets the maximum outlet temperature limit with unit specification.voidsetMinOutletTemperature(double minTemp) Sets the minimum outlet temperature limit in Kelvin.voidsetMinOutletTemperature(double minTemp, String unit) Sets the minimum outlet temperature limit with unit specification.voidsetOutletPressure(double pressure) Set the outlet pressure of the heater.voidsetOutletPressure(double pressure, String unit) Set outlet pressure of twoport with unit specification.voidsetOutletTemperature(double temperature) Set the outlet temperature of the heater.voidsetOutletTemperature(double temperature, String unit) Set outlet temperature of twoport with unit specification.voidsetOutStream(StreamInterface outStream) Deprecated.voidsetOutTemperature(double temperature) Deprecated.voidsetOutTP(double temperature, double pressure) Set the outlet temperature and pressure of the heater.voidsetPressureDrop(double pressureDrop) Setter for the fieldpressureDrop.voidsetSetEnergyInput(boolean setEnergyInput) Setter for the fieldsetEnergyInput.voidsetUtilityApproachTemperature(double approach, String unit) Convenience method to set the minimum approach temperature between process and utility.voidsetUtilityHeatCapacityRate(double heatCapacityRate) Convenience method to set the assumed utility-side heat capacity rate.voidsetUtilityOverallHeatTransferCoefficient(double u) Convenience method to set the assumed overall heat-transfer coefficient for sizing.voidsetUtilityReturnTemperature(double temperature, String unit) Convenience method to set the utility return temperature.voidsetUtilitySpecification(UtilityStreamSpecification specification) Replace the current utility-side specification.voidsetUtilitySupplyTemperature(double temperature, String unit) Convenience method to set the utility supply temperature.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 TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getMassBalance, 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, isCapacityAnalysisEnabled, isFailed, isSetEnergyStream, reportResults, restoreFromFailure, run_step, runConditionAnalysis, setCapacityAnalysisEnabled, 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, setName, setTagNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CapacityConstrainedEquipment
disableAllConstraints, enableAllConstraints, getAvailableMargin, getAvailableMarginPercent, getMaxUtilizationPercent, getUtilizationSummary, isCapacityAnalysisEnabled, isNearCapacityLimit, setCapacityAnalysisEnabledMethods inherited from interface NamedInterface
getName, getTagName, setName, 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, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime, solvedMethods inherited from interface TwoPortInterface
getInStream, getOutStream, setOutPressure, setOutPressure, setOutTemperature
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
setTemperature
boolean setTemperature -
setOutPressure
boolean setOutPressure -
system
SystemInterface system -
temperatureOut
protected double temperatureOut -
dT
protected double dT -
pressureOut
protected double pressureOut -
setEnergyInput
private boolean setEnergyInput -
energyInput
private double energyInput -
pressureDrop
private double pressureDrop -
temperatureUnit
-
pressureUnit
-
coolingMediumTemperature
double coolingMediumTemperature -
maxOutletTemperatureLimit
private double maxOutletTemperatureLimitMaximum outlet temperature limit in Kelvin. Double.MAX_VALUE means no limit. -
minOutletTemperatureLimit
private double minOutletTemperatureLimitMinimum outlet temperature limit in Kelvin. 0.0 means no limit. -
temperatureLimitUnit
Unit for temperature limits (for display/reporting purposes). -
lastTemperature
protected double lastTemperature -
lastPressure
protected double lastPressure -
lastFlowRate
protected double lastFlowRate -
lastOutPressure
protected double lastOutPressure -
lastOutTemperature
protected double lastOutTemperature -
lastDuty
protected double lastDuty -
lastPressureDrop
protected double lastPressureDrop -
mechanicalDesign
-
utilitySpecification
-
autoSized
private boolean autoSizedFlag indicating if heater has been auto-sized. -
MIN_DEFAULT_DESIGN_DUTY
private static final double MIN_DEFAULT_DESIGN_DUTYMinimum default design duty in Watts when current duty is zero.- See Also:
-
capacityConstraints
Storage for capacity constraints.
-
-
Constructor Details
-
Heater
-
Heater
Constructor for Heater.
- Parameters:
name- aStringobjectinStream- aStreamInterfaceobject
-
-
Method Details
-
getMechanicalDesign
Get a
mechanicalDesignfor the equipment.- Specified by:
getMechanicalDesignin interfaceProcessEquipmentInterface- Overrides:
getMechanicalDesignin classProcessEquipmentBaseClass- Returns:
- a
MechanicalDesignobject
-
initMechanicalDesign
public void initMechanicalDesign()Initialize a
initMechanicalDesignfor the equipment.- Specified by:
initMechanicalDesignin interfaceProcessEquipmentInterface- Overrides:
initMechanicalDesignin classProcessEquipmentBaseClass
-
getCapacityDuty
public double getCapacityDuty()getCapacityDuty.
- Specified by:
getCapacityDutyin interfaceProcessEquipmentInterface- Returns:
- a double
-
getCapacityMax
public double getCapacityMax()getCapacityMax.
- Specified by:
getCapacityMaxin interfaceProcessEquipmentInterface- Returns:
- a double
-
getUtilitySpecification
Returns the utility-side specification used by the mechanical design calculation.- Returns:
- the utility specification instance for this heater/cooler
-
setUtilitySpecification
Replace the current utility-side specification.- Parameters:
specification- new utility specification instance
-
setUtilitySupplyTemperature
Convenience method to set the utility supply temperature.- Parameters:
temperature- utility temperature valueunit- unit of the provided value (e.g. "K" or "C")
-
setUtilityReturnTemperature
Convenience method to set the utility return temperature.- Parameters:
temperature- utility temperature valueunit- unit of the provided value (e.g. "K" or "C")
-
setUtilityApproachTemperature
Convenience method to set the minimum approach temperature between process and utility.- Parameters:
approach- minimum temperature differenceunit- unit of the provided value (e.g. "K" or "C")
-
setUtilityHeatCapacityRate
public void setUtilityHeatCapacityRate(double heatCapacityRate) Convenience method to set the assumed utility-side heat capacity rate.- Parameters:
heatCapacityRate- utility heat capacity rate in W/K
-
setUtilityOverallHeatTransferCoefficient
public void setUtilityOverallHeatTransferCoefficient(double u) Convenience method to set the assumed overall heat-transfer coefficient for sizing.- Parameters:
u- overall heat-transfer coefficient in W/(m^2*K)
-
setdT
public void setdT(double dT) setdT.
- Specified by:
setdTin interfaceHeaterInterface- Parameters:
dT- a double
-
setOutletPressure
public void setOutletPressure(double pressure) Set the outlet pressure of the heater.
- Specified by:
setOutletPressurein interfaceTwoPortInterface- Overrides:
setOutletPressurein classTwoPortEquipment- Parameters:
pressure- Pressure in bara
-
setOutletPressure
Set outlet pressure of twoport with unit specification.- Specified by:
setOutletPressurein interfaceHeaterInterface- Specified by:
setOutletPressurein interfaceTwoPortInterface- Overrides:
setOutletPressurein classTwoPortEquipment- Parameters:
pressure- value to setunit- pressure unit (e.g., "bara", "barg", "Pa", "psi")
-
setOutletTemperature
public void setOutletTemperature(double temperature) Set the outlet temperature of the heater.
- Specified by:
setOutletTemperaturein interfaceTwoPortInterface- Overrides:
setOutletTemperaturein classTwoPortEquipment- Parameters:
temperature- Temperature in Kelvin
-
setOutTemperature
Deprecated.usesetOutletTemperature(double)insteadSet the outlet temperature of the heater.
- Specified by:
setOutTemperaturein interfaceTwoPortInterface- Parameters:
temperature- Temperature in Kelvin
-
setOutletTemperature
Set outlet temperature of twoport with unit specification.- Specified by:
setOutletTemperaturein interfaceHeaterInterface- Specified by:
setOutletTemperaturein interfaceTwoPortInterface- Overrides:
setOutletTemperaturein classTwoPortEquipment- Parameters:
temperature- value to setunit- temperature unit (e.g., "K", "C", "R", "F")
-
setOutTP
public void setOutTP(double temperature, double pressure) Set the outlet temperature and pressure of the heater.
- Specified by:
setOutTPin interfaceHeaterInterface- Parameters:
temperature- Temperature in Kelvinpressure- Pressure in bara
-
needRecalculation
public boolean needRecalculation()Check if process equipment needs recalculating.
- Specified by:
needRecalculationin interfaceProcessEquipmentInterface- Returns:
- true or false
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Specified by:
runin interfaceSimulationInterface- Parameters:
id- UUID
-
runTransient
runTransient
This method calculates thermodynamic and unit operations using difference equations if available and calculateSteadyState is true. Use setCalculateSteadyState to set the parameter. Sets calc identifier UUID.- Specified by:
runTransientin interfaceSimulationInterface- Parameters:
dt- Delta time [s]id- Calculation identifier
-
displayResult
public void displayResult()displayResult.
- Specified by:
displayResultin interfaceProcessEquipmentInterface- Overrides:
displayResultin classProcessEquipmentBaseClass
-
getEnergyInput
public double getEnergyInput()Getter for the field
energyInput.- Returns:
- a double
-
getDuty
public double getDuty()getDuty.
- Returns:
- a double
-
getDuty
-
setEnergyInput
public void setEnergyInput(double energyInput) Setter for the field
energyInput.- Parameters:
energyInput- a double
-
setDuty
public void setDuty(double energyInput) setDuty.
- Parameters:
energyInput- a double
-
setMaxDesignDuty
public void setMaxDesignDuty(double maxDuty) Sets the maximum design duty (heating or cooling capacity) for capacity constraint checking.The duty is specified in Watts (W). Positive values indicate heating capacity, negative values indicate cooling capacity. For constraint checking, the absolute value is used.
- Parameters:
maxDuty- maximum design duty in Watts [W]
-
setMaxDesignDuty
Sets the maximum design duty with unit specification.- Parameters:
maxDuty- maximum design duty valueunit- unit of the duty value (e.g., "W", "kW", "MW")
-
getMaxDesignDuty
public double getMaxDesignDuty()Gets the maximum design duty for this heater/cooler.- Returns:
- maximum design duty in Watts [W]
-
getMaxDesignDuty
Gets the maximum design duty in the specified unit.- Parameters:
unit- unit for the returned value (e.g., "W", "kW", "MW")- Returns:
- maximum design duty in the specified unit
-
setMaxOutletTemperature
public void setMaxOutletTemperature(double maxTemp) Sets the maximum outlet temperature limit in Kelvin.When set, this creates a capacity constraint that tracks whether the outlet temperature exceeds this limit. Useful for coolers where a maximum cooling temperature is desired.
- Parameters:
maxTemp- maximum outlet temperature in Kelvin [K]
-
setMaxOutletTemperature
Sets the maximum outlet temperature limit with unit specification.- Parameters:
maxTemp- maximum outlet temperature valueunit- unit of the temperature value (e.g., "K", "C")
-
getMaxOutletTemperature
public double getMaxOutletTemperature()Gets the maximum outlet temperature limit.- Returns:
- maximum outlet temperature in Kelvin [K], or Double.MAX_VALUE if not set
-
getMaxOutletTemperature
Gets the maximum outlet temperature limit in the specified unit.- Parameters:
unit- unit for the returned value (e.g., "K", "C")- Returns:
- maximum outlet temperature in the specified unit
-
setMinOutletTemperature
public void setMinOutletTemperature(double minTemp) Sets the minimum outlet temperature limit in Kelvin.When set, this creates a capacity constraint that tracks whether the outlet temperature falls below this limit. Useful for heaters where a minimum heating temperature is desired.
- Parameters:
minTemp- minimum outlet temperature in Kelvin [K]
-
setMinOutletTemperature
Sets the minimum outlet temperature limit with unit specification.- Parameters:
minTemp- minimum outlet temperature valueunit- unit of the temperature value (e.g., "K", "C")
-
getMinOutletTemperature
public double getMinOutletTemperature()Gets the minimum outlet temperature limit.- Returns:
- minimum outlet temperature in Kelvin [K], or 0.0 if not set
-
getMinOutletTemperature
Gets the minimum outlet temperature limit in the specified unit.- Parameters:
unit- unit for the returned value (e.g., "K", "C")- Returns:
- minimum outlet temperature in the specified unit
-
hasMaxOutletTemperatureLimit
public boolean hasMaxOutletTemperatureLimit()Checks if a maximum outlet temperature limit has been set.- Returns:
- true if a maximum outlet temperature limit is configured
-
hasMinOutletTemperatureLimit
public boolean hasMinOutletTemperatureLimit()Checks if a minimum outlet temperature limit has been set.- Returns:
- true if a minimum outlet temperature limit is configured
-
isSetEnergyInput
public boolean isSetEnergyInput()isSetEnergyInput.
- Returns:
- a boolean
-
setSetEnergyInput
public void setSetEnergyInput(boolean setEnergyInput) Setter for the field
setEnergyInput.- Parameters:
setEnergyInput- a boolean
-
getPressureDrop
public double getPressureDrop()Getter for the field
pressureDrop.- Returns:
- the pressureDrop
-
setPressureDrop
public void setPressureDrop(double pressureDrop) Setter for the field
pressureDrop.- Parameters:
pressureDrop- the pressureDrop to set
-
setOutStream
Deprecated.Setter for the field
outStream.- Parameters:
outStream- the outStream to set
-
getEntropyProduction
getEntropyProduction.
- Specified by:
getEntropyProductionin interfaceProcessEquipmentInterface- Overrides:
getEntropyProductionin classProcessEquipmentBaseClass- Parameters:
unit- aStringobject- Returns:
- a double
-
getExergyChange
Get exergy change production of the process equipment.- Specified by:
getExergyChangein interfaceProcessEquipmentInterface- Overrides:
getExergyChangein classProcessEquipmentBaseClass- Parameters:
unit- Supported units are J and kJsurroundingTemperature- The surrounding temperature in Kelvin- Returns:
- change in exergy in specified unit
-
toJson
Serializes the Process Equipment along with its state to a JSON string.
- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classTwoPortEquipment- Returns:
- json string.
-
toJson
Serializes the Process Equipment with configurable level of detail.- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classTwoPortEquipment- 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- Parameters:
safetyFactor- multiplier for design capacity, typically 1.1-1.3 (10-30% over design)
-
autoSize
public void autoSize()Automatically size using default safety factor (1.2 = 20% margin).- Specified by:
autoSizein interfaceAutoSizeable
-
autoSize
Automatically size using company-specific design standards.This method applies design rules from the specified company's technical requirements (TR) documents. The standards are loaded from the NeqSim design database.
- Specified by:
autoSizein interfaceAutoSizeable- Parameters:
company- company name (e.g., "Equinor", "Shell", "TotalEnergies")trDocument- TR document reference (e.g., "TR2000", "DEP-31.38.01.11")
-
isAutoSized
public boolean isAutoSized()Check if equipment has been auto-sized.- Specified by:
isAutoSizedin interfaceAutoSizeable- 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- Returns:
- formatted sizing report string
-
getSizingReportJson
Get sizing report as JSON for programmatic access.- Specified by:
getSizingReportJsonin interfaceAutoSizeable- Returns:
- JSON string with sizing data
-
initializeCapacityConstraints
protected void initializeCapacityConstraints()Initializes default capacity constraints for the heater. -
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- 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- 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- 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- 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- 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- Parameters:
constraint- the constraint to add
-
removeCapacityConstraint
Removes a capacity constraint by name.- Specified by:
removeCapacityConstraintin interfaceCapacityConstrainedEquipment- 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
-
setOutletTemperature(double)instead