Package gda.device.robot
Class I11Robot
- All Implemented Interfaces:
Device,Robot,Scannable,Configurable,Findable,gda.observable.IObservable,gda.observable.IObserver
I11Robot Class
-
Field Summary
Fields inherited from class gda.device.scannable.ScannableBase
__doc__, DEFAULT_INPUT_NAME, DEFAULT_OUTPUT_FORMAT, extraNames, inputNames, level, outputFormatFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.Scannable
ATTR_NEXUS_CATEGORY, ATTR_NX_CLASS, DEFAULT_INPUT_NAME, VALUE_UNAVAILABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidasynchronousMoveTo(Object position) Trigger a move/operation and return immediately.voidCalled for every Scannable at the end of a group of nested scans (or a single scan if that is the case).voidCalled for every Scannable at the start of a group of nested scans (or a single scan if that is the case)voidclear the sample from the sample stage and put it back onto carousel.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.voidfinish()finish robot action and power it down.returns the current sample position controller instancegetError()polls error code from Robot.returns the next sample position controller instanceReturns the current position of the Scannable.return the robot controller instance.doubledoublepolls sample position number from robot gets the actual sample position number in Robotpolls the sample state from robot gets robot's sample state i.e.returns the sample state controller instancebooleanisBusy()Check if the Scannable is moving/operating.booleanvoidfetches the next sample from the carousel and put it on sample stage.voidnextSample(double n) fetches the n'th sample from the carousel and put it on sample stage.voidrecover()reset robot following interruptionvoidsetBusy(boolean b) voidsetCurrentSampleNumberController(CurrentSamplePosition currentSampleNumberController) gets the current sample position controller instancevoidsetDoorLatch(DoorLatchState doorLatch) voidvoidsetNextSampleNumberController(NextSamplePosition nextSampleNumberController) sets the next sample position controller instancevoidsetRobotController(RobotNX100Controller robotController) sets the robot controller instancevoidsetSampleNumber(double sampleNumber) voidsetSampleStateController(RobotSampleState sampleStateController) sets the sample state controller instancevoidsetStopInProgress(boolean stopInProgress) voidstart()starts the robot controlvoidstop()Stop the current move/operation.toString()voidvoidReturns when operation carried out by moveTo has completedMethods inherited from class gda.device.scannable.ScannableBase
__call__, __call__, __doc__, __getitem__, __len__, __repr__, __str__, atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanLineEnd, atScanLineStart, checkPositionValid, externalToInternal, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, internalToExternal, isAt, moveTo, rawAsynchronousMoveTo, rawGetPosition, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, throwExceptionIfInvalidTarget, toFormattedString, validateScannable, valueUnavailableString, waitWhileBusyMethods 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, 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, deleteIObserversMethods inherited from interface gda.device.Scannable
atCommandFailure, atLevelEnd, atLevelMoveStart, atLevelStart, atPointEnd, atPointStart, atScanLineEnd, atScanLineStart, checkPositionValid, getExtraNames, getInputNames, getLevel, getOutputFormat, getScanMetadataAttribute, getScanMetadataAttributeNames, getScanMetadataAttributes, isAt, moveTo, setExtraNames, setInputNames, setLevel, setOutputFormat, setScanMetadataAttribute, setScanMetadataAttributes, toFormattedString
-
Constructor Details
-
I11Robot
public I11Robot()
-
-
Method Details
-
getDoorLatch
-
setDoorLatch
-
isStopInProgress
public boolean isStopInProgress() -
setStopInProgress
public void setStopInProgress(boolean stopInProgress) -
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
-
asynchronousMoveTo
Description copied from class:ScannableBaseTrigger a move/operation and return immediately. Implementations of this method should be non-blocking to allow concurrent motion; the isBusy method will be used to determine when the move has completed. Converts the external (user) position to an internal position and passes this to rawAsynchronousMoveTo.- Specified by:
asynchronousMoveToin interfaceScannable- Overrides:
asynchronousMoveToin classScannableBase- Parameters:
position- Position to move to should have an element for each input field.- Throws:
DeviceException
-
getPosition
Description copied from class:ScannableBaseReturns the current position of the Scannable. Called by ConcurentScan at the end of the point. Reads an internal (hardware) position from rawGetPosition, converts this to an external (user) position and returns it.- Specified by:
getPositionin interfaceScannable- Overrides:
getPositionin classScannableBase- Returns:
- Current position with an element for each input and extra field. null if their are no fields.
- Throws:
DeviceException
-
isBusy
Description copied from interface:ScannableCheck if the Scannable is moving/operating.- Specified by:
isBusyin interfaceScannable- Returns:
- true - if operation carried out by moveTo has not completed yet
- Throws:
DeviceException
-
setBusy
public void setBusy(boolean b) - Parameters:
b-
-
waitWhileBusy
Description copied from class:ScannableBaseReturns when operation carried out by moveTo has completed If this is to be overriden, isBusy must also be valid. Although the pos and scan command currently use this method to determine if the Scannable is busy, this must not be relied upon.- Specified by:
waitWhileBusyin interfaceScannable- Overrides:
waitWhileBusyin classScannableBase- Throws:
DeviceExceptionInterruptedException
-
atScanStart
Description copied from class:ScannableBaseCalled for every Scannable at the start of a group of nested scans (or a single scan if that is the case) Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
atScanStartin interfaceScannable- Overrides:
atScanStartin classScannableBase- Throws:
DeviceException- See Also:
-
atScanEnd
Description copied from class:ScannableBaseCalled for every Scannable at the end of a group of nested scans (or a single scan if that is the case).Note that this is only called if the Scan finishes normally, or has been requested to finish early. This will not be called if the scan finishes due to an exception of any kind. See
Scannable.atCommandFailure()Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
atScanEndin interfaceScannable- Overrides:
atScanEndin classScannableBase- Throws:
DeviceException- See Also:
-
start
Description copied from interface:Robotstarts the robot control- Specified by:
startin interfaceRobot- Throws:
DeviceException
-
clearSample
Description copied from interface:Robotclear the sample from the sample stage and put it back onto carousel.- Specified by:
clearSamplein interfaceRobot- Throws:
DeviceException
-
getError
polls error code from Robot. gets the error code for engineer- Specified by:
getErrorin interfaceRobot- Returns:
- error code
- Throws:
DeviceException- See Also:
-
finish
finish robot action and power it down. release the hold to enable "start" command again- Specified by:
finishin interfaceRobot- Throws:
DeviceException- See Also:
-
getSamplePosition
polls sample position number from robot gets the actual sample position number in Robot- Specified by:
getSamplePositionin interfaceRobot- Returns:
- the actual sample position number in Robot
- Throws:
DeviceException- See Also:
-
getSampleState
polls the sample state from robot gets robot's sample state i.e. where is the sample in relation to the robot.- Specified by:
getSampleStatein interfaceRobot- Returns:
- robot's sample state ie where is the sample in relation to the robot.
- Throws:
DeviceException- See Also:
-
nextSample
Description copied from interface:Robotfetches the next sample from the carousel and put it on sample stage.- Specified by:
nextSamplein interfaceRobot- Throws:
DeviceException
-
nextSample
Description copied from interface:Robotfetches the n'th sample from the carousel and put it on sample stage.- Specified by:
nextSamplein interfaceRobot- Parameters:
n-- Throws:
DeviceException
-
recover
Description copied from interface:Robotreset robot following interruption- Specified by:
recoverin interfaceRobot- Throws:
DeviceException
-
stop
Description copied from class:ScannableBaseStop the current move/operation. Default behaviour is to do nothing. Inheriting classes have the option to implement this if their specific behaviour requires it.- Specified by:
stopin interfaceScannable- Overrides:
stopin classScannableBase- Throws:
DeviceException- See Also:
-
update
- Specified by:
updatein interfacegda.observable.IObserver
-
toString
- Overrides:
toStringin classScannableBase
-
getRobotController
return the robot controller instance.- Returns:
- the robot controller instance
-
setRobotController
sets the robot controller instance- Parameters:
robotController-
-
getSampleStateController
returns the sample state controller instance- Returns:
- the sample state controller instance
-
setSampleStateController
sets the sample state controller instance- Parameters:
sampleStateController-
-
getNextSampleNumberController
returns the next sample position controller instance- Returns:
- the next sample position controller instance
-
setNextSampleNumberController
sets the next sample position controller instance- Parameters:
nextSampleNumberController-
-
getCurrentSampleNumberController
returns the current sample position controller instance- Returns:
- the current sample position controller instance
-
setCurrentSampleNumberController
gets the current sample position controller instance- Parameters:
currentSampleNumberController-
-
getSampleNumber
public double getSampleNumber() -
setSampleNumber
public void setSampleNumber(double sampleNumber) -
getExternalChecks
-
setExternalChecks
-