Class MotorPositionTweakControl

java.lang.Object
gda.factory.FindableBase
gda.device.motor.MotorPositionTweakControl
All Implemented Interfaces:
ControllerRecord, ITweakable, Findable

public class MotorPositionTweakControl extends FindableBase implements ITweakable, ControllerRecord
implement motor position tweak control like those available in EPICS motor record. This class support both DummyMotor and EpicsMotor.
  • Constructor Details

    • MotorPositionTweakControl

      public MotorPositionTweakControl()
  • Method Details

    • setMotor

      public void setMotor(Motor motor)
    • forward

      public void forward() throws MotorException
      Description copied from interface: ITweakable
      increase value of this object by a fixed amount given in ITweakable.getIncrement()
      Specified by:
      forward in interface ITweakable
      Throws:
      MotorException
    • reverse

      public void reverse() throws MotorException
      Description copied from interface: ITweakable
      decrease value of this object by a fixed amount given in ITweakable.getIncrement()
      Specified by:
      reverse in interface ITweakable
      Throws:
      MotorException
    • setIncrement

      public void setIncrement(double value)
      Description copied from interface: ITweakable
      set the increment amount for this object
      Specified by:
      setIncrement in interface ITweakable
    • getIncrement

      public double getIncrement()
      Description copied from interface: ITweakable
      returns the increment amount of this object
      Specified by:
      getIncrement in interface ITweakable
      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

      public String getPvRoot()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class FindableBase
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class FindableBase
    • getControllerRecordName

      public String getControllerRecordName()
      Description copied from interface: ControllerRecord
      Gets 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 the controller_record field for the NXpositioner for the scannable.
      Specified by:
      getControllerRecordName in interface ControllerRecord
      Returns:
      controller record name
      See Also: