Package gda.px.sampleChanger
Class DummySampleChanger
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.px.sampleChanger.SampleChangerBase
gda.px.sampleChanger.DummySampleChanger
- All Implemented Interfaces:
Device,Stoppable,Configurable,Findable,gda.observable.IObservable,BlockedPositions,SampleChanger
- Direct Known Subclasses:
DummyJActorSampleChanger
Dummy class for the SampleChanger interface
-
Field Summary
Fields inherited from class gda.px.sampleChanger.SampleChangerBase
actionApproverName, centreRequired, holder, holderType, isEnabled, numberOfHolders, readingBarcodes, sample, samplesPerHolder, state, typeFields 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 TypeMethodDescriptionFor SampleChangers which are set to read barcodes, returns as a string the barcode of the sample mounted during the last load operation.booleanisPositionBlocked(int holder, int sample) voidload(int holder, int sample) Load a sample.voidsetAttribute(String attributeName, Object value) Set any attribute the implementing classes may providevoidunload()Unloads the current sample without loading a new one.Methods inherited from class gda.px.sampleChanger.SampleChangerBase
getActionApproverName, getHolder, getHolderType, getNumberOfHolders, getReadingBarcodes, getSample, getSamplesInHolder, getStatus, getTypeString, isCentreRequired, isEnabled, isHolderInRange, isSampleInRange, isSampleLoaded, isSampleLoaded, setActionApproverName, setCentreRequired, setEnabled, setHolderType, setLoadedSample, setNumberOfHolders, setReadingBarcodes, setSamplesInEveryHolder, setSamplesInHolder, setState, setTestState, setType, stop, testLoadSafe, waitForIdleMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
configure, 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
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummySampleChanger
public DummySampleChanger()Constructor.
-
-
Method Details
-
load
public void load(int holder, int sample) Description copied from interface:SampleChangerLoad a sample.- Parameters:
holder- the holder number (≥1)sample- the sample number (≥1)
-
unload
Description copied from interface:SampleChangerUnloads the current sample without loading a new one.- Throws:
DeviceException
-
setAttribute
Description copied from interface:DeviceSet any attribute the implementing classes may provide- Specified by:
setAttributein interfaceDevice- Overrides:
setAttributein classDeviceBase- Parameters:
attributeName- is the name of the attributevalue- is the value of the attribute- Throws:
DeviceException- if an attribute cannot be set
-
getBarcode
Description copied from interface:SampleChangerFor SampleChangers which are set to read barcodes, returns as a string the barcode of the sample mounted during the last load operation.- Returns:
- the barcode of the currently mounted sample
- Throws:
DeviceException
-
isPositionBlocked
public boolean isPositionBlocked(int holder, int sample) -
getBlockedPositions
-