Class DummyScannable

All Implemented Interfaces:
INeXusInfoWriteable, ControllerRecord, Device, Scannable, ScannableMotion, Configurable, Findable, gda.observable.IObservable
Direct Known Subclasses:
AbsorptionCoefficient, DataReductionScannable, DoseCalculator, DummyPersistentScannable, DummyScannableMotor, EndstationPhotonEnergyProvider

@ServiceInterface(ScannableMotion.class) public class DummyScannable extends ScannableMotionBase implements ControllerRecord
Dummy object extending ScannableMotion which represents a single number.
  • Field Details

    • currentPosition

      protected double currentPosition
    • increment

      protected double increment
  • Constructor Details

    • DummyScannable

      public DummyScannable()
    • DummyScannable

      public DummyScannable(String name)
    • DummyScannable

      public DummyScannable(String name, double d)
    • DummyScannable

      public DummyScannable(String name, double d, String pvName)
  • Method Details

    • setName

      public void setName(String name)
      Description copied from class: DeviceBase
      Set the name of the device
      Specified by:
      setName in interface Findable
      Overrides:
      setName in class DeviceBase
      Parameters:
      name - The name to set.
    • setIncrement

      public void setIncrement(Double increment)
    • getControllerRecordName

      public String getControllerRecordName()
      Description copied from interface: ControllerRecord
      Gets the name of the controller record, e.g. EPICS process variable name. For example, in NeXus this value can be written as the value of the controller_record field for the NXpositioner for the scannable.
      Specified by:
      getControllerRecordName in interface ControllerRecord
      Returns:
      controller record name
      See Also:
    • setControllerRecordName

      public void setControllerRecordName(String controllerRecordName)
    • rawAsynchronousMoveTo

      public void rawAsynchronousMoveTo(Object position) throws DeviceException
      Description copied from class: ScannableBase
      [Consider abstract] Trigger a move/operation to an internal/hardware position and return immediately.
      Overrides:
      rawAsynchronousMoveTo in class ScannableBase
      Parameters:
      position - Position in its internal/hardware representation. e.g. with units and offsets removed
      Throws:
      DeviceException
      See Also:
    • rawGetPosition

      public Object rawGetPosition() throws DeviceException
      Description copied from class: ScannableBase
      [Consider abstract] Read the position in its internal (user) representation.
      Overrides:
      rawGetPosition in class ScannableBase
      Returns:
      the value represented by this Scannable
      Throws:
      DeviceException
      See Also:
    • isBusy

      public boolean isBusy()
      Description copied from class: ScannableMotionBase
      Check if the Scannable is moving/operating.. Calls onto rawIsBusy for historical reasons, although there is currently no need for this.
      Specified by:
      isBusy in interface Scannable
      Overrides:
      isBusy in class ScannableMotionBase
      Returns:
      true - if operation carried out by moveTo has not completed yet
      See Also:
    • getPosition

      public Object 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 ScannableBase
      Returns:
      Current position with an element for each input and extra field. null if their are no fields.
      Throws:
      DeviceException