Class DoorLatchState

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

public class DoorLatchState extends DeviceBase implements InitializationListener
Class for the experimental hutch door latch state, used by robot to decide when safety needs to be checked.
  • Constructor Details

    • DoorLatchState

      public DoorLatchState()
      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
    • getState

      public int getState() throws DeviceException
      gets the raw value from sample state from Robot.
      Returns:
      the raw value from sample state from Robot
      Throws:
      DeviceException
    • resetDoorLatch

      public void resetDoorLatch() throws DeviceException
      Throws:
      DeviceException
    • initializationCompleted

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

      public String getPvName()
    • setPvName

      public void setPvName(String pvName)