Package gda.device.temperature
Class DummyTemp
- All Implemented Interfaces:
INeXusInfoWriteable,Device,Scannable,ScannableMotion,Temperature,Configurable,Findable,gda.observable.IObservable,AlarmListener
Simulator device for temperature controllers
-
Field Summary
Fields inherited from class gda.device.temperature.TemperatureBase
bufferedData, busy, count, currentRamp, currentTemp, dataFileWriter, dataWriter, fileSuffix, LONG_POLL_TIME, longPollTime, lowerTemp, POLL_TIME, pollTime, probeNameList, rampList, setPoint, SHORT_POLL_TIME, targetTemp, timeSinceStart, upperTempFields inherited from class gda.device.scannable.ScannableMotionBase
numberTries, toleranceFields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLEFields inherited from interface gda.device.ScannableMotion
FIRSTINPUTLIMITS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRamp(TemperatureRamp ramp) Adds a ramp to the internal list of rampsvoidClears all ramps from the listvoidclose()Close and unconfigure the device.voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voiddoStart()protected voiddoStop()getAttribute(String name) Get the value of the specified attributedoubleRead the temperature of the controlling device either internal bath external probe1 or external probe2.doubleRead the temperature of the Lauda bath.doubleRead the temperature of the external probe 1.doubleRead the temperature of the external probe 2.Get the status signaldoubleGet the current setpoint temperature.doublegetTn()Only to fullfill interfacedoublegetTv()Only to fullfill interfacedoublegetXp()Only to fullfill interfacevoidhold()Stops running ramps or moving to temperature but holds the current temperaturebooleanCheck the current temperature against the target temperaturereadout()voidRe-initialisation of values and states.voidrunRamp()Run the ramp sequence.voidrunRamp(int which) Initiate the programmed temperature ramp.voidrunRamps()Start ramping.voidsendRamp(int which) Would send the commands to set up a ramp to the actual hardware.voidsetHWLowerTemp(double lowLimit) voidsetHWUpperTemp(double upperLimit) Set the upper operating temperature.voidSwitch control variable another source.voidsetTempRamp(double finalTemp, double rate) Program a timed temperature ramp.voidsetTnControl(double time) Set the control parameter Tn for the controller.voidsetTvControl(double time) Set the control paramter Tv for the controllervoidsetXpControl(double temp) Set the proportional band control paramter Xp for the controller.protected voidvoidActually sends the command which starts the device working towards the target temperature.voidMethod for the poller (started in TemperatureBase)Methods inherited from class gda.device.temperature.TemperatureBase
alarm, begin, cancelAlarm, end, getAccuracy, getCurrentPositionArray, getDataDimensions, getFileSuffix, getLowerTemp, getPolltime, getProbeNames, getRampRate, getUpperTemp, isBusy, isRunning, rawAsynchronousMoveTo, rawGetPosition, setAccuracy, setFileSuffix, setLowerTemp, setPolltime, setProbeNames, setRampRate, setRamps, setTargetTemperature, setUpdatePeriod, setUpperTemp, start, startHoldTimer, startPoller, stop, stopPoller, waitForTempMethods inherited from class gda.device.scannable.ScannableMotionBase
a, addPositionValidator, ar, asynchronousMoveTo, checkPositionValid, checkPositionWithinGdaLimits, checkPositionWithinGdaLimits, completeInstantiation, externalToInternal, generateScannableLimitsReport, getAdditionalPositionValidators, getFirstInputLimits, getInputLimits, getInputLimits, getLimitsComponent, getLowerGdaLimits, getNumberTries, getOffset, getScalingFactor, getTolerances, getUpperGdaLimits, internalToExternal, isAt, moveTo, r, rawIsBusy, removePositionValidator, setAdditionalPositionValidators, setLimitsComponent, setLowerGdaLimits, setLowerGdaLimits, setNumberTries, setOffset, setOffsetAndScalingComponent, setScalingFactor, setTolerance, setTolerances, setUpperGdaLimits, setUpperGdaLimits, toFormattedString, writeNeXusInformation, writeNeXusInformationLimitsMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toString, validateScannable, valueUnavailableString, waitWhileBusy, waitWhileBusyMethods inherited from class gda.device.DeviceBase
addIObserver, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfiguredMethods inherited from interface gda.device.Device
getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.device.Scannable
asynchronousMoveTo, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanEnd, atScanLineEnd, atScanLineStart, atScanStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getPosition, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString, waitWhileBusy
-
Constructor Details
-
DummyTemp
public DummyTemp()Constructor for dummy temperature class
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classTemperatureBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classConfigurableBase- Throws:
FactoryException
-
close
public void close()Description copied from interface:DeviceClose and unconfigure the device.- Specified by:
closein interfaceDevice- Overrides:
closein classDeviceBase
-
setHWLowerTemp
- Specified by:
setHWLowerTempin classTemperatureBase- Parameters:
lowLimit-- Throws:
DeviceException
-
setHWUpperTemp
Set the upper operating temperature. It must be in the range -35C and 200C when simulating a Lauda bath.- Specified by:
setHWUpperTempin classTemperatureBase- Parameters:
upperLimit- the upper temperature limit in degrees C- Throws:
DeviceException
-
setProbe
Switch control variable another source.- Specified by:
setProbein interfaceTemperature- Overrides:
setProbein classTemperatureBase- Parameters:
name- the probe name- Throws:
DeviceException
-
setXpControl
public void setXpControl(double temp) Set the proportional band control paramter Xp for the controller.- Parameters:
temp- the Xp (degrees)
-
setTnControl
public void setTnControl(double time) Set the control parameter Tn for the controller.- Parameters:
time- the Time (secs)
-
setTvControl
public void setTvControl(double time) Set the control paramter Tv for the controller- Parameters:
time- the Tv parameter(secs)
-
setTempRamp
Program a timed temperature ramp. This does not initiate the program. Unrealistically short times will generate an error and the parameters will not be set.- Parameters:
finalTemp- is the desired temperature in degrees C acceptable values are between -35C and 200C.rate- rise in temperature per minute- Throws:
DeviceException
-
runRamp
Initiate the programmed temperature ramp.- Parameters:
which- the current ramp- Throws:
DeviceException
-
runRamp
Description copied from class:TemperatureBaseRun the ramp sequence.- Specified by:
runRampin classTemperatureBase- Throws:
DeviceException
-
doStart
- Specified by:
doStartin classTemperatureBase- Throws:
DeviceException
-
hold
Description copied from interface:TemperatureStops running ramps or moving to temperature but holds the current temperature- Throws:
DeviceException
-
runRamps
Start ramping.- Throws:
DeviceException
-
startNextRamp
- Specified by:
startNextRampin classTemperatureBase- Throws:
DeviceException
-
doStop
- Specified by:
doStopin classTemperatureBase- Throws:
DeviceException
-
getCurrentTemperature
Read the temperature of the Lauda bath.- Returns:
- the Lauda water bath temperature
- Throws:
DeviceException
-
getBathTemp
public double getBathTemp()Read the temperature of the controlling device either internal bath external probe1 or external probe2.- Returns:
- the control temperature
-
getExtProbe1
public double getExtProbe1()Read the temperature of the external probe 1. FIXME: Lauda specific ?- Returns:
- the external probe 1 temperature
-
getTargetTemperature
public double getTargetTemperature()Get the current setpoint temperature.- Specified by:
getTargetTemperaturein interfaceTemperature- Overrides:
getTargetTemperaturein classTemperatureBase- Returns:
- the setpoint temperature
-
getStatusSignal
Get the status signal- Returns:
- the status
-
getExtProbe2
public double getExtProbe2()Read the temperature of the external probe 2.- Returns:
- the external probe 2 temperature
-
getXp
public double getXp()Only to fullfill interface- Returns:
- 0.0
-
getTn
public double getTn()Only to fullfill interface- Returns:
- 0.0
-
getTv
public double getTv()Only to fullfill interface- Returns:
- 0.0
-
isAtTargetTemperature
public boolean isAtTargetTemperature()Description copied from interface:TemperatureCheck the current temperature against the target temperature- Specified by:
isAtTargetTemperaturein interfaceTemperature- Overrides:
isAtTargetTemperaturein classTemperatureBase- Returns:
- true if current temperature equals target temperature
-
clearRamps
public void clearRamps()Description copied from class:TemperatureBaseClears all ramps from the list- Specified by:
clearRampsin interfaceTemperature- Overrides:
clearRampsin classTemperatureBase
-
addRamp
Description copied from class:TemperatureBaseAdds a ramp to the internal list of ramps- Specified by:
addRampin interfaceTemperature- Overrides:
addRampin classTemperatureBase- Parameters:
ramp- the TemperatureRamp to add
-
startTowardsTarget
public void startTowardsTarget()Actually sends the command which starts the device working towards the target temperature.- Specified by:
startTowardsTargetin classTemperatureBase
-
temperatureUpdate
public void temperatureUpdate()Method for the poller (started in TemperatureBase)- Specified by:
temperatureUpdatein classTemperatureBase
-
sendRamp
public void sendRamp(int which) Would send the commands to set up a ramp to the actual hardware.- Specified by:
sendRampin classTemperatureBase- Parameters:
which- the ramp number
-
getDataFileName
-
getAttribute
Description copied from class:ScannableMotionBaseGet the value of the specified attribute To distributed some of the extra methods in the ScannableMotion interface- Specified by:
getAttributein interfaceDevice- Overrides:
getAttributein classScannableMotionBase- Parameters:
name- is the name of the attribute- Returns:
- the value of the attribute as an Object type
- See Also:
-
readout
- Overrides:
readoutin classTemperatureBase
-