Class ActiveHutchApprover

java.lang.Object
uk.ac.gda.component.beamline.common.ActiveHutchApprover
All Implemented Interfaces:
ActionApprover, Serializable

public class ActiveHutchApprover extends Object implements ActionApprover
See Also:
  • Field Details

    • beamlineName

      public static final String beamlineName
    • EHSTATUS_DEVICE

      public static final String EHSTATUS_DEVICE
  • Constructor Details

    • ActiveHutchApprover

      public ActiveHutchApprover()
    • ActiveHutchApprover

      public ActiveHutchApprover(String hutch)
  • Method Details

    • actionApproved

      public boolean actionApproved() throws DeviceException
      Description copied from interface: ActionApprover
      Performs the test that the object encapsulates and returns the result of that test.
      Specified by:
      actionApproved in interface ActionApprover
      Returns:
      true if operation would be OK to perform
      Throws:
      DeviceException - - thrown if an error occurred while inquiring into device objects' status
    • getDenialReason

      public String getDenialReason()
      Description copied from interface: ActionApprover
      Returns an explanation of why the last call to actionApproved returned false.
      Specified by:
      getDenialReason in interface ActionApprover
      Returns:
      string
    • getHutch

      public String getHutch()
    • setHutch

      public void setHutch(String hutch)