Class ScanResetDummyUnitScannable<Q extends javax.measure.Quantity<Q>>

All Implemented Interfaces:
INeXusInfoWriteable, ControllerRecord, Device, Scannable, ScannableMotion, ScannableMotionUnits, Configurable, Findable, gda.observable.IObservable, gda.observable.IObserver

@ServiceInterface(Scannable.class) public class ScanResetDummyUnitScannable<Q extends javax.measure.Quantity<Q>> extends DummyUnitsScannable<Q> implements gda.observable.IObserver
  • Constructor Details

    • ScanResetDummyUnitScannable

      public ScanResetDummyUnitScannable()
  • Method Details

    • configure

      public void configure() throws FactoryException
      Description copied from class: ConfigurableBase
      Default 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:
      configure in interface Configurable
      Overrides:
      configure in class ConfigurableBase
      Throws:
      FactoryException - if there is an error in configuration e.g. required variable not set or cannot connect to device
    • getPosition

      public Double getPosition() throws DeviceException
      Description copied from class: ScannableBase
      Returns the current position of the Scannable. Called by ConcurentScan at the end of the point. Reads an internal (hardware) position from rawGetPosition, converts this to an external (user) position and returns it.
      Specified by:
      getPosition in interface Scannable
      Overrides:
      getPosition in class DummyUnitsScannable<Q extends javax.measure.Quantity<Q>>
      Returns:
      Current position with an element for each input and extra field. null if their are no fields.
      Throws:
      DeviceException
    • moveTo

      public void moveTo(Object position) throws DeviceException
      Description copied from class: ScannableMotionBase
      If the numberTries and tolerance attributes have been set then repeatedly tries to move this Scannable until the position is within the tolerance range.
      Specified by:
      moveTo in interface Scannable
      Overrides:
      moveTo in class ScannableMotionBase
      Parameters:
      position -
      Throws:
      DeviceException
      See Also:
    • asynchronousMoveTo

      public void asynchronousMoveTo(Object externalPosition) throws DeviceException
      Description copied from class: ScannableBase
      Trigger a move/operation and return immediately. Implementations of this method should be non-blocking to allow concurrent motion; the isBusy method will be used to determine when the move has completed. Converts the external (user) position to an internal position and passes this to rawAsynchronousMoveTo.
      Specified by:
      asynchronousMoveTo in interface Scannable
      Overrides:
      asynchronousMoveTo in class DummyUnitsScannable<Q extends javax.measure.Quantity<Q>>
      Parameters:
      externalPosition - Position to move to should have an element for each input field.
      Throws:
      DeviceException
    • setResetValue

      public void setResetValue(double reset)
    • reset

      public void reset() throws DeviceException
      Throws:
      DeviceException
    • update

      public void update(Object source, Object arg)
      Specified by:
      update in interface gda.observable.IObserver