Package gda.device.syringepump
Class DummySyringePumpController
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.syringepump.DummySyringePumpController
- All Implemented Interfaces:
Device,SyringePumpController,Configurable,Findable,gda.observable.IObservable,gda.observable.IObserver
public class DummySyringePumpController
extends DeviceBase
implements SyringePumpController, gda.observable.IObserver
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
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.doubledoubledoublegetForce()doublegetName()Get the name of the devicedoubledoubledoublevoidinfuse(double ml) booleanisBusy()booleanvoidsetCapacity(double ml) voidsetDiameter(double millimeters) voidsetEnabled(boolean enable) voidsetForce(double percent) voidsetInfuseRate(double mlps) voidSet the name of the devicevoidsetTargetTime(double seconds) voidsetVolume(double ml) voidsetWithdrawRate(double mlps) voidstop()voidMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, 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.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummySyringePumpController
public DummySyringePumpController()
-
-
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
-
isBusy
- Specified by:
isBusyin interfaceSyringePumpController- Throws:
DeviceException
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceSyringePumpController
-
setEnabled
public void setEnabled(boolean enable) -
stop
- Specified by:
stopin interfaceSyringePumpController- Throws:
DeviceException
-
setForce
- Specified by:
setForcein interfaceSyringePumpController- Throws:
DeviceException
-
getForce
- Specified by:
getForcein interfaceSyringePumpController- Throws:
DeviceException
-
setTargetTime
- Specified by:
setTargetTimein interfaceSyringePumpController- Throws:
DeviceException
-
getTargetTime
- Specified by:
getTargetTimein interfaceSyringePumpController- Throws:
DeviceException
-
setDiameter
- Specified by:
setDiameterin interfaceSyringePumpController- Throws:
DeviceException
-
getDiameter
- Specified by:
getDiameterin interfaceSyringePumpController- Throws:
DeviceException
-
setInfuseRate
- Specified by:
setInfuseRatein interfaceSyringePumpController- Throws:
DeviceException
-
getInfuseRate
- Specified by:
getInfuseRatein interfaceSyringePumpController- Throws:
DeviceException
-
setWithdrawRate
- Specified by:
setWithdrawRatein interfaceSyringePumpController- Throws:
DeviceException
-
getWithdrawRate
- Specified by:
getWithdrawRatein interfaceSyringePumpController- Throws:
DeviceException
-
infuse
- Specified by:
infusein interfaceSyringePumpController- Throws:
DeviceException
-
getCapacity
public double getCapacity()- Specified by:
getCapacityin interfaceSyringePumpController
-
setCapacity
public void setCapacity(double ml) -
getVolume
- Specified by:
getVolumein interfaceSyringePumpController- Throws:
DeviceException
-
setVolume
- Specified by:
setVolumein interfaceSyringePumpController- Throws:
DeviceException
-
getName
Description copied from class:DeviceBaseGet the name of the device- Specified by:
getNamein interfaceFindable- Overrides:
getNamein classDeviceBase- Returns:
- Returns the name.
-
setName
Description copied from class:DeviceBaseSet the name of the device- Specified by:
setNamein interfaceFindable- Overrides:
setNamein classDeviceBase- Parameters:
name- The name to set.
-
update
- Specified by:
updatein interfacegda.observable.IObserver
-