Package gda.device.robot
Class RobotNX100Controller
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.robot.RobotNX100Controller
- All Implemented Interfaces:
Device,InitializationListener,Configurable,Findable,gda.observable.IObservable
RobotNX100Controller Class
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic enumJobs that robot performsstatic enumStates that a sample can be in -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum number of samplesstatic final intMinimum number of samplesFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear error stringvoidDefault 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.getError()get the error codegetJob()voidhold()stop or hole robot arm, need to be released before continue.voidCalled when all critical channels are connected.lookupErrorCode(String errorCode) voidReads the lookup table file and put them into a multi-Valued Map for looking up value for the specified energy and scannable name.voidrelease()release hold on robot armvoidservoOff()power off the robotvoidservoOn()power on the robot.voidsetErrorCodeFilename(String errorCodeFilename) voidsets the Job to do without apply it to robot controllervoidvoidstart()starts the robot motion after set Job.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
-
MAX_NUMBER_OF_SAMPLES
public static final int MAX_NUMBER_OF_SAMPLESMaximum number of samples- See Also:
-
MIN_NUMBER_OF_SAMPLES
public static final int MIN_NUMBER_OF_SAMPLESMinimum number of samples- See Also:
-
-
Constructor Details
-
RobotNX100Controller
public RobotNX100Controller()Constructor
-
-
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
-
getPvName
-
setPvName
-
readTheFile
public void readTheFile()Reads the lookup table file and put them into a multi-Valued Map for looking up value for the specified energy and scannable name. -
lookupErrorCode
- Parameters:
errorCode-- Returns:
- String
-
getErrorMap
- Returns:
- HashMap
-
setJob
sets the Job to do without apply it to robot controller- Parameters:
job-- Throws:
DeviceException
-
getJob
- Throws:
DeviceException
-
start
starts the robot motion after set Job.- Throws:
DeviceException
-
hold
stop or hole robot arm, need to be released before continue.- Throws:
DeviceException
-
release
release hold on robot arm- Throws:
DeviceException
-
servoOn
power on the robot.- Throws:
DeviceException
-
servoOff
power off the robot- Throws:
DeviceException
-
getError
get the error code- Returns:
- error code
- Throws:
DeviceException
-
clearError
clear error string- Throws:
DeviceException
-
initializationCompleted
public void initializationCompleted()Description copied from interface:InitializationListenerCalled when all critical channels are connected.- Specified by:
initializationCompletedin interfaceInitializationListener
-
setErrorCodeFilename
- Parameters:
errorCodeFilename-
-
getErrorCodeFilename
- Returns:
- String
-