Class DummySampleChanger

All Implemented Interfaces:
Device, Stoppable, Configurable, Findable, gda.observable.IObservable, BlockedPositions, SampleChanger
Direct Known Subclasses:
DummyJActorSampleChanger

@ServiceInterface(SampleChanger.class) public class DummySampleChanger extends SampleChangerBase
Dummy class for the SampleChanger interface
  • Constructor Details

    • DummySampleChanger

      public DummySampleChanger()
      Constructor.
  • Method Details

    • load

      public void load(int holder, int sample)
      Description copied from interface: SampleChanger
      Load a sample.
      Parameters:
      holder - the holder number (≥1)
      sample - the sample number (≥1)
    • unload

      public void unload() throws DeviceException
      Description copied from interface: SampleChanger
      Unloads the current sample without loading a new one.
      Throws:
      DeviceException
    • setAttribute

      public void setAttribute(String attributeName, Object value) throws DeviceException
      Description copied from interface: Device
      Set any attribute the implementing classes may provide
      Specified by:
      setAttribute in interface Device
      Overrides:
      setAttribute in class DeviceBase
      Parameters:
      attributeName - is the name of the attribute
      value - is the value of the attribute
      Throws:
      DeviceException - if an attribute cannot be set
    • getBarcode

      public String getBarcode() throws DeviceException
      Description copied from interface: SampleChanger
      For 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

      public Set<Sample> getBlockedPositions()