Class MonoMoveWithOffsetScannable

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

public class MonoMoveWithOffsetScannable extends ScannableMotionBase
Scannable to move bragg and also adjust bragg offset for each move.
Since:
26/8/2016
  • Constructor Details

    • MonoMoveWithOffsetScannable

      public MonoMoveWithOffsetScannable(String name, Scannable bragg, Scannable braggOffset)
  • Method Details

    • getTimePerStepInnerLoop

      public double getTimePerStepInnerLoop()
    • setTimePerStepInnerLoop

      public void setTimePerStepInnerLoop(double timePerStepInnerLoop)
    • getMonoOptimiser

      public MonoOptimisation getMonoOptimiser()
    • setMonoOptimiser

      public void setMonoOptimiser(MonoOptimisation monoOptimiser)
    • isBusy

      public boolean isBusy() throws DeviceException
      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
      Throws:
      DeviceException
      See Also:
    • getIncludeOffsetInPosition

      public boolean getIncludeOffsetInPosition()
    • setIncludeOffsetInPosition

      public void setIncludeOffsetInPosition(boolean includeOffsetInPosition)
    • 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
    • getOffsetForEnergy

      public double getOffsetForEnergy(double energy)
      Calculate bragg offset for given value of bragg energy
    • adjustBraggOffsetMotor

      public void adjustBraggOffsetMotor(double energy) throws DeviceException
      Apply the offset for specified energy to offset motor.
      Parameters:
      energy -
      Throws:
      DeviceException
    • 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:
    • getLoopType

      public String getLoopType()
    • setLoopType

      public void setLoopType(String loopType)
    • getNumStepsPerInnerLoop

      public int getNumStepsPerInnerLoop()
    • setNumStepsPerInnerLoop

      public void setNumStepsPerInnerLoop(int numStepsPerInnerLoop)
    • getScanType

      public int getScanType()
    • setScanType

      public void setScanType(int scanType)
    • getOffsetLastMove

      public double getOffsetLastMove()
    • getOffsetGradient

      public double getOffsetGradient()
    • setOffsetGradient

      public void setOffsetGradient(double offsetGradient)
    • getEnergyOffsetStart

      public double getEnergyOffsetStart()
    • setEnergyOffsetStart

      public void setEnergyOffsetStart(double energyOffsetStart)
    • getOffsetMoveThreshold

      public double getOffsetMoveThreshold()
    • setOffsetMoveThreshold

      public void setOffsetMoveThreshold(double offsetMoveThreshold)
    • getAdjustBraggOffset

      public boolean getAdjustBraggOffset()
    • setAdjustBraggOffset

      public void setAdjustBraggOffset(boolean adjustBraggOffset)
    • getOffsetStartValue

      public double getOffsetStartValue()
    • setOffsetStartValue

      public void setOffsetStartValue(double offsetStartValue)
    • getBragg

      public Scannable getBragg()