Class MapperBasedEnumPositionerBase<T>

All Implemented Interfaces:
Device, EnumPositioner, Scannable, Configurable, Findable, gda.observable.IObservable, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
IntegerMapperBasedEnumPositioner, StringMapperBasedEnumPositioner

public abstract class MapperBasedEnumPositionerBase<T> extends EnumPositionerBase implements org.springframework.beans.factory.InitializingBean
A class that acts as an EnumPositioner. It monitors a scannable that gives the current value of the 'hardware' in internal form. The class uses EnumValueMapper to map the external to internal forms moveTo accepts the position in external form. If a control scannable is provided then the moveTo calls moveTo on the control scannable with position set to the value in internal form If setCmdTemplate is provided then moveTo evaluates the command : String.format(getSetCmdTemplate(),newExternalValue, getInternalValue(newExternalValue)) Only one of control or setCmdTemplate can be set