Package gda.px.sampleChanger
Class SampleChangerStateMonitor
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.px.sampleChanger.SampleChangerStateMonitor
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable
Monitors the sample changer and various scannables, using their status to update the value of three 'overall status'
scannables.
The three 'overall status' scannables can be observed by the GUI, and their values used to disable/enable controls. They are configured in Spring and passed in (to an instance of this class) using setters:
#sampleControlState- indicate the state of script that controls the changing of the sample and the movement of the other related equipment#sampleChangerState- indicates status of the sampleChanger#beamlineBusyState- either Idle or Active used as a global indicator that the beamline is running a script or is busy performing a sequence of actions.
Possible values:
ACTIVE- sample changer is in one of ANNEALING, DISPOSING, LOADING, MOVINGROBOT or UNLOADINGMOVING_STAGE- sample changer is in SAMPLESTAGEIDLE or MOVINGSAMPLESTAGEDISCONNECTED- sample changer is in NOTCONNECTEDCONNECTING- sample changer is in CONNECTINGUNINITIALISED- sample changer is in NOTINITIALISEDERROR- sample changer is in ERRORDRYING- sample changer is in DRYINGACTIVE- none of above but the sample_control script is running OR the hutchutils script is runningIDLE- none of above but and the sample_control script is NOT running AND the hutchutils script is NOT running
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringValue of sample control script state when requesting user to manually centre the samplestatic final Stringstatic final StringFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault 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.voidsetBeamlineBusyState(Scannable beamlineBusyState) voidsetDataCollectionScript(Scannable dataCollectionScript) voidsetHutchutilsScriptState(Scannable hutchutilsScriptState) voidsetSampleChanger(SampleChanger sampleChanger) voidsetSampleChangerState(Scannable sampleChangerState) voidsetSampleControlScriptAction(Scannable sampleControlScriptAction) voidsetSampleControlScriptState(Scannable sampleControlScriptState) voidsetSampleControlState(Scannable sampleControlState) 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
isConfigured, reconfigure
-
Field Details
-
MANUAL_CENTRING
Value of sample control script state when requesting user to manually centre the sample- See Also:
-
ERROR
- See Also:
-
DRYING
- See Also:
-
MOVING_STAGE
- See Also:
-
CONNECTING
- See Also:
-
DISCONNECTED
- See Also:
-
IDLE
- See Also:
-
ACTIVE
- See Also:
-
UNINITIALISED
- See Also:
-
-
Constructor Details
-
SampleChangerStateMonitor
public SampleChangerStateMonitor()
-
-
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
-
setSampleChanger
- Parameters:
sampleChanger- that is monitored for changes in SampleChangerStatus
-
setSampleControlScriptState
- Parameters:
sampleControlScriptState- Scannable with position ACTIVE when running
-
setSampleControlScriptAction
- Parameters:
sampleControlScriptAction- Scannable with position indicate current action
-
setHutchutilsScriptState
- Parameters:
hutchutilsScriptState- Scannable with position ACTIVE when running
-
setDataCollectionScript
- Parameters:
dataCollectionScript- Scannable with position equal to current data collection script or ""
-
setSampleControlState
- Parameters:
sampleControlState- Scannable to hold value
-
setSampleChangerState
- Parameters:
sampleChangerState- EnumPositioner to hold value
-
setBeamlineBusyState
- Parameters:
beamlineBusyState- Scannable with position ACTIVE when running
-