Package gda.device.robot
Class PVCheck
java.lang.Object
gda.device.robot.PVCheck
- All Implemented Interfaces:
RobotExternalStateCheck,Configurable
Robot state check that checks a PV is set to the correct value and attempts to set it if not
-
Nested Class Summary
Nested classes/interfaces inherited from interface gda.device.robot.RobotExternalStateCheck
RobotExternalStateCheck.InvalidExternalState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()voidPerform operations that must be done after Spring initialisation i.e.intgetValue()booleanIndicates whether this object should be configured at startup.booleanChecks to see if the object is already configured.booleanvoidRe-initialisation of values and states.voidsetCorrectIfInvalid(boolean correct) voidvoidsetRbvPvName(String pv) voidsetValue(int value)
-
Constructor Details
-
PVCheck
public PVCheck()
-
-
Method Details
-
check
- Specified by:
checkin interfaceRobotExternalStateCheck- Throws:
RobotExternalStateCheck.InvalidExternalState
-
configure
Description copied from interface:ConfigurablePerform operations that must be done after Spring initialisation i.e. anything that goes beyond setting member variables.- Specified by:
configurein interfaceConfigurable- 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:ConfigurableChecks to see if the object is already configured.- Specified by:
isConfiguredin interfaceConfigurable- Returns:
- return
trueif configuredfalseotherwise
-
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Throws:
FactoryException
-
isConfigureAtStartup
public boolean isConfigureAtStartup()Description copied from interface:ConfigurableIndicates whether this object should be configured at startup.Moved from ConditionallyConfigurable which has been deleted
- Specified by:
isConfigureAtStartupin interfaceConfigurable
-
setPvName
-
getPvName
-
setRbvPvName
-
getRbvPvName
-
setValue
public void setValue(int value) -
getValue
public int getValue() -
setCorrectIfInvalid
public void setCorrectIfInvalid(boolean correct) -
isCorrectIfInvalid
public boolean isCorrectIfInvalid()
-