Class PVCheck

java.lang.Object
gda.device.robot.PVCheck
All Implemented Interfaces:
RobotExternalStateCheck, Configurable

public class PVCheck extends Object implements RobotExternalStateCheck, Configurable
Robot state check that checks a PV is set to the correct value and attempts to set it if not
  • Constructor Details

    • PVCheck

      public PVCheck()
  • Method Details

    • check

      Specified by:
      check in interface RobotExternalStateCheck
      Throws:
      RobotExternalStateCheck.InvalidExternalState
    • configure

      public void configure() throws FactoryException
      Description copied from interface: Configurable
      Perform operations that must be done after Spring initialisation i.e. anything that goes beyond setting member variables.
      Specified by:
      configure in interface Configurable
      Throws:
      FactoryException - if there is an error in configuration e.g. required variable not set or cannot connect to device
    • isConfigured

      public boolean isConfigured()
      Description copied from interface: Configurable
      Checks to see if the object is already configured.
      Specified by:
      isConfigured in interface Configurable
      Returns:
      return true if configured false otherwise
    • reconfigure

      public void reconfigure() throws FactoryException
      Description copied from interface: Configurable
      Re-initialisation of values and states.

      Moved from Reconfigurable which has been deleted

      Specified by:
      reconfigure in interface Configurable
      Throws:
      FactoryException
    • isConfigureAtStartup

      public boolean isConfigureAtStartup()
      Description copied from interface: Configurable
      Indicates whether this object should be configured at startup.

      Moved from ConditionallyConfigurable which has been deleted

      Specified by:
      isConfigureAtStartup in interface Configurable
    • setPvName

      public void setPvName(String pv)
    • getPvName

      public String getPvName()
    • setRbvPvName

      public void setRbvPvName(String pv)
    • getRbvPvName

      public String getRbvPvName()
    • setValue

      public void setValue(int value)
    • getValue

      public int getValue()
    • setCorrectIfInvalid

      public void setCorrectIfInvalid(boolean correct)
    • isCorrectIfInvalid

      public boolean isCorrectIfInvalid()