Package gda.px.sampleop
Class SampleOperationStateStore
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.px.sampleop.SampleOperationStateStore
- All Implemented Interfaces:
Configurable,Findable,SampleOperationStateProvider
public class SampleOperationStateStore
extends FindableConfigurableBase
implements SampleOperationStateProvider
Where the beamline does not have an autonomous sample changer robot responsible for the complete operation,
we maintain state information so that appropriate action can be taken, especially if an operation is aborted
or an error occurs.
This class maintains information about the current sample changer operation (if there is one), via several
objects:
* SampleStore targetStore - maintains known attributes of the target sample
* Scannable targetState - the state of the sample that is the target of the sample changer operation
* Scannable gripperState - the state of the gripper in the operation currently executed by the changer
-
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.booleanChecks to see if the object is already configured.voidsetGripperStateProvider(EnumPositioner gripperState) voidsetGripStateProvider(EnumPositioner gripState) voidsetTargetStateProvider(EnumPositioner targetStateProvide) voidsetTargetStore(SampleStore targetStore) Methods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, reconfigure, setConfigured
-
Constructor Details
-
SampleOperationStateStore
public SampleOperationStateStore()
-
-
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
-
getGripperState
- Specified by:
getGripperStatein interfaceSampleOperationStateProvider
-
getGripperStateProvider
-
getGripState
- Specified by:
getGripStatein interfaceSampleOperationStateProvider
-
getGripStateProvider
-
getSampleOperationsState
- Specified by:
getSampleOperationsStatein interfaceSampleOperationStateProvider
-
getTargetSample
- Specified by:
getTargetSamplein interfaceSampleOperationStateProvider
-
getTargetStateProvider
-
getTargetStore
-
isConfigured
public boolean isConfigured()Description copied from interface:ConfigurableChecks to see if the object is already configured.- Specified by:
isConfiguredin interfaceConfigurable- Overrides:
isConfiguredin classConfigurableBase- Returns:
- return
trueif configuredfalseotherwise
-
setGripperStateProvider
-
setGripStateProvider
-
setTargetStateProvider
-
setTargetStore
-