Package gda.px.sampleChanger
Class DummyJCameramanSampleChanger
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.px.sampleChanger.JActorSampleChanger
gda.px.sampleChanger.DummyJCameramanSampleChanger
- All Implemented Interfaces:
Device,Stoppable,Configurable,Findable,gda.observable.IObservable,BlockedPositions,IJActorSampleChanger,IJCameramanObserver,SampleChanger
A version of JActorSampleChanger which never operates its robotClient. This is for when Cameraman is used to operate
the sample positioner and the sample image camera, but no Actor is being used. This class is necessary as the Actor
simulation part of Cameraman is not working.
-
Nested Class Summary
Nested classes/interfaces inherited from class gda.px.sampleChanger.JActorSampleChanger
JActorSampleChanger.InterlockMonitor -
Field Summary
Fields inherited from class gda.px.sampleChanger.JActorSampleChanger
cameraClientInitialised, centreRequired, centringAngles, controller, host, readingBarcodesFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.px.sampleChanger.SampleChanger
APPROVERNAME, ATTRIBUTE_IS_SOAKING, EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of the holder of the current loaded sample.booleanintGet the position in its holder of the currently loaded sample.protected voidbooleanReturns true if this sample changer is in use for loading samples.booleanReturns true if a sample is in the sample position on the beamline.voidload(int holder, int sample) Load a sample.voidsetReadingBarcodes(boolean readDuringLoad) Sets whether to read barcodes during each load operationvoidunload()Unloads the current sample without loading a new one.booleanReturns when the sample changer has finished its current operation.Methods inherited from class gda.px.sampleChanger.JActorSampleChanger
_move, _unload, abort, anneal, centrelid, clearSample, commandComplete, configure, disconnect, dispose, dry, firstOperationSinceInterlock, getActionApproverName, getAttribute, getBarcode, getBlockedPositions, getErrorMessage, getHolderAndSample, getHolderType, getHost, getImageBySocket, getLocation, getNumberOfHolders, getNumberOfPlates, getPssPVName, getPuckName, getSamplesInHolder, getSpecialPinPuckNumber, getStatus, getTypeString, gotoWait, isCentreRequired, isPositionBlocked, isSampleDetected, isSampleLoaded, logActorException, move, panicStop, reconfigure, setActionApproverName, setAttribute, setCentreRequired, setEnabled, setHolderType, setHost, setLoadedSample, setNumberOfHolders, setNumberOfPlates, setPssPVName, setSamplesInEveryHolder, setSamplesInHolder, setSoakAfterOperation, setSpecialPinPuckNumber, setState, soak, stop, storeMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, 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, isConfiguredMethods inherited from interface gda.device.Device
close, getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummyJCameramanSampleChanger
public DummyJCameramanSampleChanger()
-
-
Method Details
-
initialise
protected void initialise()- Overrides:
initialisein classJActorSampleChanger
-
isEnabled
public boolean isEnabled()Description copied from interface:SampleChangerReturns true if this sample changer is in use for loading samples.- Specified by:
isEnabledin interfaceSampleChanger- Overrides:
isEnabledin classJActorSampleChanger- Returns:
- boolean
-
getHolder
public int getHolder()Description copied from interface:SampleChangerReturns the number of the holder of the current loaded sample.- Specified by:
getHolderin interfaceSampleChanger- Overrides:
getHolderin classJActorSampleChanger- Returns:
- int
-
getReadingBarcodes
- Specified by:
getReadingBarcodesin interfaceSampleChanger- Overrides:
getReadingBarcodesin classJActorSampleChanger- Returns:
- true if the samplechanger will read barcodes during loading.
- Throws:
DeviceException
-
getSample
public int getSample()Description copied from interface:SampleChangerGet the position in its holder of the currently loaded sample.- Specified by:
getSamplein interfaceSampleChanger- Overrides:
getSamplein classJActorSampleChanger- Returns:
- int
-
isSampleLoaded
Description copied from interface:SampleChangerReturns true if a sample is in the sample position on the beamline.- Specified by:
isSampleLoadedin interfaceSampleChanger- Overrides:
isSampleLoadedin classJActorSampleChanger- Returns:
- boolean
- Throws:
DeviceException
-
load
Description copied from interface:SampleChangerLoad a sample.- Specified by:
loadin interfaceSampleChanger- Overrides:
loadin classJActorSampleChanger- Parameters:
holder- the holder number (≥1)sample- the sample number (≥1)- Throws:
DeviceException
-
setReadingBarcodes
Description copied from interface:SampleChangerSets whether to read barcodes during each load operation- Specified by:
setReadingBarcodesin interfaceSampleChanger- Overrides:
setReadingBarcodesin classJActorSampleChanger- Parameters:
readDuringLoad-- Throws:
DeviceException
-
unload
Description copied from interface:SampleChangerUnloads the current sample without loading a new one.- Specified by:
unloadin interfaceSampleChanger- Overrides:
unloadin classJActorSampleChanger- Throws:
DeviceException
-
waitForIdle
Description copied from interface:SampleChangerReturns when the sample changer has finished its current operation.- Specified by:
waitForIdlein interfaceSampleChanger- Overrides:
waitForIdlein classJActorSampleChanger- Returns:
- true if the current operation was successful
- Throws:
DeviceException
-