Class EpicsPneumaticCallback

All Implemented Interfaces:
ControllerRecord, Device, EnumPositioner, Scannable, InitializationListener, Configurable, Findable, gda.observable.IObservable
Direct Known Subclasses:
NameMappedEpicsPneumaticCallback

This class maps onto the EPICS PneumaticCallback template.
  • Field Details

    • statuspositions

      protected Vector<String> statuspositions
    • statusPvIndicatesPositionOnly

      public boolean statusPvIndicatesPositionOnly
      If statusPv is simply a list of positions and does not contains state such as IDLE, MOVING etc set this to true
  • Constructor Details

    • EpicsPneumaticCallback

      public EpicsPneumaticCallback()
      constructor
  • Method Details

    • isStatusPvIndicatesPositionOnly

      public boolean isStatusPvIndicatesPositionOnly()
    • setStatusPvIndicatesPositionOnly

      public void setStatusPvIndicatesPositionOnly(boolean statusPvIndicatesPositionOnly)
    • getPvBase

      public String getPvBase()
    • setPvBase

      public void setPvBase(String basePV)
    • setControlPv

      public void setControlPv(String controlPv)
      Sets the control PV used by this object.
      Parameters:
      controlPv - the control PV
    • getControlPv

      public String getControlPv()
    • setStatusPv

      public void setStatusPv(String statusPv)
      Sets the status PV used by this object.
      Parameters:
      statusPv - the status PV
    • getStatusPv

      public String getStatusPv()
    • 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
    • getPosition

      public String getPosition() throws DeviceException
      gets the current status position of this device.
      Specified by:
      getPosition in interface Scannable
      Overrides:
      getPosition in class ScannableBase
      Returns:
      position in String
      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:
    • stop

      public void stop() throws DeviceException
      Description copied from class: ScannableBase
      Stop the current move/operation. Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.
      Specified by:
      stop in interface Scannable
      Overrides:
      stop in class ScannableBase
      Throws:
      DeviceException
      See Also:
    • getPositions

      public String[] getPositions() throws DeviceException
      gets the available positions from this device.
      Specified by:
      getPositions in interface EnumPositioner
      Overrides:
      getPositions in class EnumPositionerBase
      Returns:
      the available positions from this device.
      Throws:
      DeviceException
    • getStatusPositions

      public String[] getStatusPositions() throws DeviceException
      gets the available status positions from this device.
      Returns:
      the available status positions from this device.
      Throws:
      DeviceException
    • initializationCompleted

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

      public boolean isAllPVsSet()
    • setAllPVsSet

      public void setAllPVsSet(boolean allPVsSet)
    • setReadOnly

      public void setReadOnly(boolean readOnly)
    • isReadOnly

      public boolean isReadOnly()
    • 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: