Package gda.device.syringepump
Class SyringePump
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.syringepump.SyringePump
- All Implemented Interfaces:
Device,Syringe,Configurable,Findable,gda.observable.IObservable,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.doubleGet capacity of current syringe.doubledoubleGet time to infuse current volume at the current infuse ratedoubledoublevoidinfuse(double ml) Infuse or withdraw liquid from/to the syringebooleanisBusy()booleanvoidsetController(SyringePumpController controller) voidsetVolume(double ml) Set the volume of fluid in the syringe - must be set when syringe is refilled.voidstop()toString()voidMethods 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, 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
-
SyringePump
public SyringePump()
-
-
Method Details
-
isBusy
- Specified by:
isBusyin interfaceSyringe- Throws:
DeviceException
-
setController
-
getController
-
stop
- Specified by:
stopin interfaceSyringe- Throws:
DeviceException
-
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
-
infuse
Description copied from interface:SyringeInfuse or withdraw liquid from/to the syringe- Specified by:
infusein interfaceSyringe- Parameters:
ml- volume to infuse
- positive is infusing (reducing volume remaining in syringe)
- can be negative (withdrawal)- Throws:
DeviceException
-
getVolume
- Specified by:
getVolumein interfaceSyringe- Throws:
DeviceException
-
getCapacity
public double getCapacity()Description copied from interface:SyringeGet capacity of current syringe. Capacity may also need to be configured in the device hardware.- Specified by:
getCapacityin interfaceSyringe- Returns:
- capacity in ml
-
getRemainingTime
Description copied from interface:SyringeGet time to infuse current volume at the current infuse rate- Specified by:
getRemainingTimein interfaceSyringe- Returns:
- Time in seconds
- Throws:
DeviceException
-
toString
-
setVolume
Description copied from interface:SyringeSet the volume of fluid in the syringe - must be set when syringe is refilled.- Specified by:
setVolumein interfaceSyringe- Parameters:
ml- current volume- Throws:
DeviceException- if syringe is busy when called
-
isEnabled
public boolean isEnabled() -
update
- Specified by:
updatein interfacegda.observable.IObserver
-
getInfuseRate
- Specified by:
getInfuseRatein interfaceSyringe- Throws:
DeviceException
-
getWithdrawRate
- Specified by:
getWithdrawRatein interfaceSyringe- Throws:
DeviceException
-