Package gda.function
Class RelativeMotionFunction<T extends javax.measure.Quantity<T>,R extends javax.measure.Quantity<R>>
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.function.RelativeMotionFunction<T,R>
- All Implemented Interfaces:
Configurable,Findable,Function<javax.measure.Quantity<T>,javax.measure.Quantity<R>>
public class RelativeMotionFunction<T extends javax.measure.Quantity<T>,R extends javax.measure.Quantity<R>>
extends FindableConfigurableBase
implements Function<javax.measure.Quantity<T>,javax.measure.Quantity<R>>
Function to couple the relative motion of two scannables, not their absolute positions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.measure.Quantity<R> voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voidsetCouplingFunction(Function<javax.measure.Quantity<T>, javax.measure.Quantity<R>> couplingFunction) voidsetPrimaryScannable(ScannableMotionUnits primaryScannable) voidsetSecondaryScannable(ScannableMotionUnits secondaryScannable) Methods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Constructor Details
-
RelativeMotionFunction
public RelativeMotionFunction()
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
apply
-
setPrimaryScannable
-
setSecondaryScannable
-
setCouplingFunction
-