Class SampleMovementServiceManagerBase
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
uk.ac.gda.services.core.GdaServiceBase
uk.ac.gda.services.samplemovementservice.SampleMovementServiceManagerBase
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable,org.springframework.beans.factory.InitializingBean,GdaService,SampleMovementServiceManager
@ServiceInterface(SampleMovementServiceManager.class)
public class SampleMovementServiceManagerBase
extends GdaServiceBase
implements SampleMovementServiceManager, org.springframework.beans.factory.InitializingBean
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface uk.ac.gda.services.samplemovementservice.SampleMovementServiceManager
PIN_GONIO, PIN_GONIO_WITH_KAPPA, TRAY_GONIO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidDefault 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.getAdapter(Class<? extends GdaService> adapter) intgetService(int selection) booleanbooleanisService(int selection) selectService(int selection) voidsetCurrentServiceIndex(int selection) voidvoidsetServices(Map<Integer, SampleMovementService> services) Methods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
SampleMovementServiceManagerBase
public SampleMovementServiceManagerBase()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
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
-
getAdapter
- Specified by:
getAdapterin interfaceGdaService
-
getCurrentServiceIndex
public int getCurrentServiceIndex()- Specified by:
getCurrentServiceIndexin interfaceSampleMovementServiceManager
-
getService
- Specified by:
getServicein interfaceSampleMovementServiceManager- Throws:
DeviceException
-
getService
- Throws:
DeviceException
-
getServiceAdapter
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin classGdaServiceBase
-
isService
public boolean isService(int selection) - Specified by:
isServicein interfaceSampleMovementServiceManager
-
selectService
- Specified by:
selectServicein interfaceSampleMovementServiceManager- Throws:
DeviceException
-
setCurrentServiceIndex
public void setCurrentServiceIndex(int selection) -
setServiceAdapter
-
setServices
-