Class EpicsBpmController

All Implemented Interfaces:
ControllerRecord, Device, Monitor, Scannable, InitializationListener, Configurable, Findable, gda.observable.IObservable

public class EpicsBpmController extends ScannableBase implements Monitor, InitializationListener, ControllerRecord
EpicsBpmController Class
  • Constructor Details

    • EpicsBpmController

      public EpicsBpmController()
      Constructor
  • 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
    • getElementCount

      public int getElementCount() throws DeviceException
      Description copied from interface: Monitor
      returns the number of elements in this monitor.
      Specified by:
      getElementCount in interface Monitor
      Returns:
      int the element count
      Throws:
      DeviceException
    • getUnit

      public String getUnit() throws DeviceException
      Description copied from interface: Monitor
      gets the physical unit of the monitor.
      Specified by:
      getUnit in interface Monitor
      Returns:
      String the physical unit
      Throws:
      DeviceException
    • asynchronousMoveTo

      public void asynchronousMoveTo(Object position) 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 ScannableBase
      Parameters:
      position - Position to move to should have an element for each input field.
      Throws:
      DeviceException
    • 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
    • isBusy

      public boolean isBusy() throws DeviceException
      Description copied from interface: Scannable
      Check if the Scannable is moving/operating.
      Specified by:
      isBusy in interface Scannable
      Returns:
      true - if operation carried out by moveTo has not completed yet
      Throws:
      DeviceException
    • initializationCompleted

      public void initializationCompleted()
      Description copied from interface: InitializationListener
      Called when all critical channels are connected.
      Specified by:
      initializationCompleted in interface InitializationListener
    • disablePoll

      public void disablePoll()
    • enablePoll

      public void enablePoll()
    • getIntensityTotal

      public double getIntensityTotal() throws DeviceException
      Returns:
      intensity total
      Throws:
      DeviceException
    • getXPosition

      public double getXPosition() throws DeviceException
      Returns:
      x position
      Throws:
      DeviceException
    • getYPosition

      public double getYPosition() throws DeviceException
      Returns:
      y position
      Throws:
      DeviceException
    • isPoll

      public boolean isPoll()
    • setPoll

      public void setPoll(boolean poll)
    • getPvName

      public String getPvName()
    • setPvName

      public void setPvName(String pvName)
    • getIntensityPvName

      public String getIntensityPvName()
    • setIntensityPvName

      public void setIntensityPvName(String intensityPvName)
    • getXposPvName

      public String getXposPvName()
    • setXposPvName

      public void setXposPvName(String xposPvName)
    • getYposPvName

      public String getYposPvName()
    • setYposPvName

      public void setYposPvName(String yposPvName)
    • 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: