Class TwoJawSlitGap

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

The gap of a two jaw slit.

Based on TwoJawSlitPosition.

  • Constructor Details

    • TwoJawSlitGap

      public TwoJawSlitGap()
  • Method Details

    • getLimits

      protected double[] getLimits(javax.measure.Quantity<javax.measure.quantity.Length> firstJawMin, javax.measure.Quantity<javax.measure.quantity.Length> firstJawMax, javax.measure.Quantity<javax.measure.quantity.Length> secondJawMin, javax.measure.Quantity<javax.measure.quantity.Length> secondJawMax)
      Overrides:
      getLimits in class TwoJawSlitPosition
    • 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 TwoJawSlitPosition
      Returns:
      the value represented by this Scannable
      Throws:
      DeviceException
      See Also:
    • setXmlparametersfilename

      public void setXmlparametersfilename(String xmlparametersfilename)
      This string is the name of the xml parameters file which is used to store the beam centre used by these slits. If this value is set to a non-null value then the behaviour of this scannable is changed to move the gap based on the beam centre in this xml file rather than use the current beam centre. This is useful for motors which drift or frequently fail.
      Parameters:
      xmlparametersfilename - The xmlparametersfilename to set.
    • getXmlparametersfilename

      public String getXmlparametersfilename()
      Returns:
      Returns the xmlparametersfilename.
    • calculateTargets

      protected javax.measure.Quantity<javax.measure.quantity.Length>[] calculateTargets(Object position) throws DeviceException
      Description copied from class: TwoJawSlitPosition
      given a position, where should the motors be moved to?
      Overrides:
      calculateTargets in class TwoJawSlitPosition
      Parameters:
      position -
      Returns:
      Quantity[2]
      Throws:
      DeviceException