Package gda.device.syringepump
Interface Syringe
- All Superinterfaces:
Configurable,Device,Findable,gda.observable.IObservable,gda.observable.IObserver
- All Known Implementing Classes:
SyringePump
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGet 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()booleanvoidsetVolume(double ml) Set the volume of fluid in the syringe - must be set when syringe is refilled.voidstop()Methods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.observable.IObserver
update
-
Method Details
-
isBusy
- Throws:
DeviceException
-
stop
- Throws:
DeviceException
-
infuse
Infuse or withdraw liquid from/to the syringe- Parameters:
ml- volume to infuse
- positive is infusing (reducing volume remaining in syringe)
- can be negative (withdrawal)- Throws:
DeviceException
-
getVolume
- Throws:
DeviceException
-
getCapacity
double getCapacity()Get capacity of current syringe. Capacity may also need to be configured in the device hardware.- Returns:
- capacity in ml
-
getInfuseRate
- Throws:
DeviceException
-
getWithdrawRate
- Throws:
DeviceException
-
getRemainingTime
Get time to infuse current volume at the current infuse rate- Returns:
- Time in seconds
- Throws:
DeviceException
-
setVolume
Set the volume of fluid in the syringe - must be set when syringe is refilled.- Parameters:
ml- current volume- Throws:
DeviceException- if syringe is busy when called
-
isEnabled
boolean isEnabled()
-