Package gda.device.motor
Class MotorPositionTweakControl
java.lang.Object
gda.factory.FindableBase
gda.device.motor.MotorPositionTweakControl
- All Implemented Interfaces:
ControllerRecord,ITweakable,Findable
implement motor position tweak control like those available in EPICS motor record.
This class support both
DummyMotor and EpicsMotor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpost property set method to ensure required bean properties are set.voiddestroy()clean up the resources - used for bean life cycle end call.booleanvoidforward()increase value of this object by a fixed amount given inITweakable.getIncrement()Gets the name of the controller record, e.g.doublereturns the increment amount of this objectinthashCode()voidreverse()decrease value of this object by a fixed amount given inITweakable.getIncrement()voidsetIncrement(double value) set the increment amount for this objectvoidMethods inherited from class gda.factory.FindableBase
getName, setName
-
Constructor Details
-
MotorPositionTweakControl
public MotorPositionTweakControl()
-
-
Method Details
-
setMotor
-
forward
Description copied from interface:ITweakableincrease value of this object by a fixed amount given inITweakable.getIncrement()- Specified by:
forwardin interfaceITweakable- Throws:
MotorException
-
reverse
Description copied from interface:ITweakabledecrease value of this object by a fixed amount given inITweakable.getIncrement()- Specified by:
reversein interfaceITweakable- Throws:
MotorException
-
setIncrement
public void setIncrement(double value) Description copied from interface:ITweakableset the increment amount for this object- Specified by:
setIncrementin interfaceITweakable
-
getIncrement
public double getIncrement()Description copied from interface:ITweakablereturns the increment amount of this object- Specified by:
getIncrementin interfaceITweakable- Returns:
- the increment amount
-
aftePropertiesSet
@PostConstruct public void aftePropertiesSet()post property set method to ensure required bean properties are set. -
destroy
@PreDestroy public void destroy()clean up the resources - used for bean life cycle end call. -
getPvRoot
-
hashCode
public int hashCode()- Overrides:
hashCodein classFindableBase
-
equals
- Overrides:
equalsin classFindableBase
-
getControllerRecordName
Description copied from interface:ControllerRecordGets 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 thecontroller_recordfield for theNXpositionerfor the scannable.- Specified by:
getControllerRecordNamein interfaceControllerRecord- Returns:
- controller record name
- See Also:
-