Class ActorSampleChangerControllerBase
java.lang.Object
gda.factory.ConfigurableBase
gda.mx.samplechanger.actor.controller.ActorSampleChangerControllerBase
- All Implemented Interfaces:
Configurable,ActorSampleChangerController,gda.observable.IObservable
- Direct Known Subclasses:
DummyActorSampleChangerController,EpicsActorSampleChangerController
public abstract class ActorSampleChangerControllerBase
extends ConfigurableBase
implements ActorSampleChangerController
-
Field Summary
FieldsModifier and TypeFieldDescriptionerror code->message mappings mappings are a workaround for not being able to read message PV in code PV Observer update method (and vice versa!) Command errors are not meaningful to users and have program error equivalents so it probably doesn't matter that this mapping is a little sparseprotected static final Stringstatic final Stringprotected static final com.google.common.collect.ImmutableBiMap<Integer, rigaku.jcameraman.RobotClient.RobotLocation> static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIObserver(gda.observable.IObserver observer) voidcheckNextPin(Integer nextPin) DLS pucks all hold 16 pinsvoidcheckNextPuck(int nextPuck) voiddeleteIObserver(gda.observable.IObserver observer) voidgetControlErrorMessage(Double code) protected static IntegergetLocationCode(String name) protected static StringgetLocationName(Integer code) intgetProgramErrorMessage(Double code) rigaku.jcameraman.RobotClient.RobotLocationvoidlogAndNotifyIObserversOfRobotErrorEvent(RobotErrorType type, double code, String message) voidRe-initialisation of values and states.protected voidsleep(double seconds) Thread.sleep without declared exceptionMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.mx.samplechanger.actor.controller.ActorSampleChangerController
abort, clearSample, closeGripper, dispose, dry, getBarcode, getControlErrorMessage, getCurrentPin, getCurrentPuck, getLocationCode, getLocationName, getNextPin, getNextPuck, getProgramErrorMessage, getProgramName, getPuckName, gotoWait, isConfigured, isProgramRunning, isSampleLoaded, load, openGripper, openGripperWide, reset, setNextPin, setNextPuck, setNextPuckAndPin, setNextSampleID, soak, unload
-
Field Details
-
MISSING_MESSAGE
- See Also:
-
NO_ERROR
- See Also:
-
UNKNOWN_ERROR
- See Also:
-
commandErrorCodeMessages
protected static final com.google.common.collect.ImmutableBiMap<Double,String> commandErrorCodeMessageserror code->message mappings mappings are a workaround for not being able to read message PV in code PV Observer update method (and vice versa!) Command errors are not meaningful to users and have program error equivalents so it probably doesn't matter that this mapping is a little sparse -
programErrorCodeMessages
-
controlErrorCodeMessages
-
LOCATIONS
-
RIGAKU_LOCATIONS
protected static final com.google.common.collect.ImmutableBiMap<Integer,rigaku.jcameraman.RobotClient.RobotLocation> RIGAKU_LOCATIONS
-
-
Constructor Details
-
ActorSampleChangerControllerBase
public ActorSampleChangerControllerBase()
-
-
Method Details
-
sleep
protected void sleep(double seconds) Thread.sleep without declared exception -
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classConfigurableBase- Throws:
FactoryException
-
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
-
getProgramErrorMessage
- Specified by:
getProgramErrorMessagein interfaceActorSampleChangerController
-
getRobotLocation
- Specified by:
getRobotLocationin interfaceActorSampleChangerController- Throws:
DeviceException- See Also:
-
getControlErrorMessage
- Specified by:
getControlErrorMessagein interfaceActorSampleChangerController
-
logAndNotifyIObserversOfRobotErrorEvent
public void logAndNotifyIObserversOfRobotErrorEvent(RobotErrorType type, double code, String message) -
checkNextPuck
public void checkNextPuck(int nextPuck) -
getMaxPucks
public int getMaxPucks() -
checkNextPin
DLS pucks all hold 16 pins -
getLocationName
-
getLocationCode
-