Class EpicsControlPointWithStatus

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

public class EpicsControlPointWithStatus extends EpicsControlPoint
Extension to the EpicsControlPoint class which uses a PV for the status of the control point.
  • Constructor Details

    • EpicsControlPointWithStatus

      public EpicsControlPointWithStatus()
  • 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 EpicsControlPoint
      Throws:
      FactoryException - if there is an error in configuration e.g. required variable not set or cannot connect to device
    • getStatusPVName

      public String getStatusPVName()
      Returns:
      the value of the status pv
    • getBusyValue

      public int getBusyValue()
      Returns:
      the value of the status pv meaning that the control point is operating
    • setStatusPVName

      public void setStatusPVName(String statusPVName)
      Sets the value of the status pv when the control point is operating.

      Default is 1.

      Parameters:
      statusPVName -
    • setBusyValue

      public void setBusyValue(int busyValue)
    • 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 EpicsControlPoint
      Returns:
      true - if operation carried out by moveTo has not completed yet
      Throws:
      DeviceException
      See Also: