Package gda.device.temperature
Class DummyLakeshore340Controller
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.temperature.DummyLakeshore340Controller
- All Implemented Interfaces:
Device,ILakeshoreController,Configurable,Findable,gda.observable.IObservable
This class is designed to emulate Lake shore 340 temperature controller.
Example bean definition in Spring
<bean id="lakeshore_controller" class="gda.device.temperature.DummyLakeshore340Controller">
<property name="local" value="true"/>
<property name="configureAtStartup" value="true"/>
</bean>
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.temperature.ILakeshoreController
MAX_RAMP_RATE, MIN_RAMP_RATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault 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.doublegets channel 0 temperaturedoublegets channel 1 temperaturedoublegets channel 2 temperaturedoublegets channel 3 temperatureintdoubleGets the current demand temperature in K.doublegetTemp()gets current temperaturevoidsetReadbackChannel(int readbackChannel) voidsetTargetTemp(double demandTemperature) Sets the demand temperature .Methods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.temperature.ILakeshoreController
getConnectionState, isConnectedMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummyLakeshore340Controller
public DummyLakeshore340Controller()Constructor
-
-
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 classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
setTargetTemp
Sets the demand temperature . If ramping is enabled then the actual demand temperature will move towards this at the ramping rate.- Specified by:
setTargetTempin interfaceILakeshoreController- Parameters:
demandTemperature- The demanded temperature in K- Throws:
DeviceException
-
getTargetTemp
Gets the current demand temperature in K.- Specified by:
getTargetTempin interfaceILakeshoreController- Returns:
- The current demand temperature from the readback value
- Throws:
DeviceException
-
getTemp
gets current temperature- Specified by:
getTempin interfaceILakeshoreController- Returns:
- temp
- Throws:
DeviceException
-
getChannel0Temp
gets channel 0 temperature- Specified by:
getChannel0Tempin interfaceILakeshoreController- Returns:
- channel 0 temperature
- Throws:
DeviceException
-
getChannel1Temp
gets channel 1 temperature- Specified by:
getChannel1Tempin interfaceILakeshoreController- Returns:
- channel 1 temperature
- Throws:
DeviceException
-
getChannel2Temp
gets channel 2 temperature- Specified by:
getChannel2Tempin interfaceILakeshoreController- Returns:
- channel 2 temperature
- Throws:
DeviceException
-
getChannel3Temp
gets channel 3 temperature- Specified by:
getChannel3Tempin interfaceILakeshoreController- Returns:
- channel 3 temperature
- Throws:
DeviceException
-
getReadbackChannel
public int getReadbackChannel()- Specified by:
getReadbackChannelin interfaceILakeshoreController
-
setReadbackChannel
public void setReadbackChannel(int readbackChannel) - Specified by:
setReadbackChannelin interfaceILakeshoreController
-