Package gda.px.services
Class SampleEventService
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.px.services.SampleEventService
- All Implemented Interfaces:
Configurable,Findable,gda.observable.IObservable,gda.observable.IObserver,ISampleEventService
@ServiceInterface(ISampleEventService.class)
public class SampleEventService
extends FindableConfigurableBase
implements ISampleEventService, gda.observable.IObservable
-
Nested Class Summary
Nested classes/interfaces inherited from interface gda.px.services.ISampleEventService
ISampleEventService.EventTypes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIObserver(gda.observable.IObserver observer) 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.voiddeleteIObserver(gda.observable.IObserver observer) voidgetObject(ISampleEventService.EventTypes desiredState) booleangetState(ISampleEventService.EventTypes desiredState) voidsetHandleCollectRequestController(Scriptcontroller handleCollectRequestController) voidsetSampleChanger(SampleChanger sampleChanger) voidsetSampleChangerController(Scriptcontroller sampleChangerController) voidMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Constructor Details
-
SampleEventService
public SampleEventService()
-
-
Method Details
-
setSampleChanger
-
update
- Specified by:
updatein interfacegda.observable.IObserver
-
getState
- Specified by:
getStatein interfaceISampleEventService
-
getObject
- Specified by:
getObjectin interfaceISampleEventService
-
getHandleCollectRequestController
-
setHandleCollectRequestController
-
getSampleChangerController
-
setSampleChangerController
-
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
-
addIObserver
public void addIObserver(gda.observable.IObserver observer) - Specified by:
addIObserverin interfacegda.observable.IObservable
-
deleteIObserver
public void deleteIObserver(gda.observable.IObserver observer) - Specified by:
deleteIObserverin interfacegda.observable.IObservable
-
deleteIObservers
public void deleteIObservers()- Specified by:
deleteIObserversin interfacegda.observable.IObservable
-