Package gda.device
Class TemperatureRamp
java.lang.Object
gda.device.TemperatureRamp
A class that defines a temperature ramp.
-
Constructor Summary
ConstructorsConstructorDescriptiondefault constructor for castorTemperatureRamp(int rampNumber) Constructor to create a ramp with default dataTemperatureRamp(int rampNumber, double startTemperature, double endTemperature, double rate, double dwellTime, int coolingSpeed) Constructor to create a temperature ramp -
Method Summary
Modifier and TypeMethodDescriptioncopy()Make an exact copy of an existing temperature rampbooleanGet the cooling speed setting for a cooling rampGet the time to dwell and the ending temperature before proceeding to the next rampGet the ending temperature for a particular rampGet the ramp number 0 to ngetRate()Get the rate of change in temperature for a particular rampGet the starting temperature for a particular rampinthashCode()voidsetCoolingSpeed(Integer coolingSpeed) Set the cooling speed setting for a cooling rampvoidsetDwellTime(Double dwellTime) Set the time to dwell at the ending temperature before proceeding to the next rampvoidsetEndTemperature(Double endTemperature) Set the ending temperature for a particular ramp.voidsetRampNumber(Integer rampNumber) Set the ramp numbervoidset the rate of change in temperature for a particular rampvoidsetStartTemperature(Double startTemperature) Set the starting temperature for a particular ramp.toString()
-
Constructor Details
-
TemperatureRamp
public TemperatureRamp()default constructor for castor -
TemperatureRamp
public TemperatureRamp(int rampNumber) Constructor to create a ramp with default data- Parameters:
rampNumber- the ramp number, starting with 0
-
TemperatureRamp
public TemperatureRamp(int rampNumber, double startTemperature, double endTemperature, double rate, double dwellTime, int coolingSpeed) Constructor to create a temperature ramp- Parameters:
rampNumber- the ramp numberstartTemperature- the start temperature (assuming Celsius)endTemperature- the end temperature (assuming Celsius)rate- the rate (assuming Celsius / s)dwellTime- the dwell time (assuming s)coolingSpeed- the cooling speed (could be Celsius / s)
-
-
Method Details
-
copy
Make an exact copy of an existing temperature ramp- Returns:
- a duplicate temperature ramp
-
getRampNumber
Get the ramp number 0 to n- Returns:
- the ramp number
-
getStartTemperature
Get the starting temperature for a particular ramp- Returns:
- the start temperature
-
getEndTemperature
Get the ending temperature for a particular ramp- Returns:
- the end temperature
-
getRate
Get the rate of change in temperature for a particular ramp- Returns:
- rate of temperature change
-
getDwellTime
Get the time to dwell and the ending temperature before proceeding to the next ramp- Returns:
- the dwell time
-
getCoolingSpeed
Get the cooling speed setting for a cooling ramp- Returns:
- the cooling speed
-
setRampNumber
Set the ramp number- Parameters:
rampNumber- the ramp number 0 to n
-
setStartTemperature
Set the starting temperature for a particular ramp.- Parameters:
startTemperature- the start temperature
-
setEndTemperature
Set the ending temperature for a particular ramp.- Parameters:
endTemperature- the end temperature
-
setRate
set the rate of change in temperature for a particular ramp- Parameters:
rate- ramp rate
-
setDwellTime
Set the time to dwell at the ending temperature before proceeding to the next ramp- Parameters:
dwellTime- the dwell time
-
setCoolingSpeed
Set the cooling speed setting for a cooling ramp- Parameters:
coolingSpeed- the cooling speed
-
toString
-
hashCode
public int hashCode() -
equals
-