Class DummyNewportVMCController
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.diffractometer.newport.DummyNewportVMCController
- All Implemented Interfaces:
Device,INewportVMCController,Stoppable,Configurable,Findable,gda.observable.IObservable
-
Nested Class Summary
Nested classes/interfaces inherited from interface gda.device.diffractometer.newport.INewportVMCController
INewportVMCController.Mode, INewportVMCController.Status -
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckAnyCommandSafe(String command) Clear command bufferPause after current command finishesResume executing command bufferStop immediately and clear command buffervoidintintgetHost()intvoidgetMode()intintgetPosition(int axisIndex) intintvoidbooleanisBusy()booleanbooleanisReady()voidvoidvoidmoveAxisRelative(int axisIndex, Object position) voidscanContinuous(int axisIndex, Double start, Double width, Double time) voidsetCommandPort(int port) voidsetCommandSocketConnection(SocketConnection socketConnection) voidsetDetDistanceIndex(int detDistanceIndex) voidvoidsetKappaIndex(int kappaIndex) voidvoidvoidvoidsetOmegaIndex(int omegaIndex) voidsetPhiIndex(int phiIndex) voidsetStatusPort(int statusPort) voidsetStatusSocketConnection(SocketConnection statusSocketConnection) voidsetTwoThetaIndex(int twoThetaIndex) voidstop()Stops the current operation.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
configure, 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
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.diffractometer.newport.INewportVMCController
configure, getName, setName
-
Constructor Details
-
DummyNewportVMCController
public DummyNewportVMCController()
-
-
Method Details
-
checkAnyCommandSafe
- Specified by:
checkAnyCommandSafein interfaceINewportVMCController- Throws:
DeviceException
-
executeSafeRoute
- Specified by:
executeSafeRoutein interfaceINewportVMCController- Throws:
DeviceException
-
getCommandPort
public int getCommandPort()- Specified by:
getCommandPortin interfaceINewportVMCController
-
getCommandSocketConnection
- Specified by:
getCommandSocketConnectionin interfaceINewportVMCController
-
getDetDistanceIndex
public int getDetDistanceIndex()- Specified by:
getDetDistanceIndexin interfaceINewportVMCController
-
getHost
- Specified by:
getHostin interfaceINewportVMCController
-
getKappaIndex
public int getKappaIndex()- Specified by:
getKappaIndexin interfaceINewportVMCController
-
getLastError
- Specified by:
getLastErrorin interfaceINewportVMCController
-
getLastExecutedCommand
- Specified by:
getLastExecutedCommandin interfaceINewportVMCController
-
getMechanicalPositions
- Specified by:
getMechanicalPositionsin interfaceINewportVMCController- Throws:
DeviceException
-
getMode
- Specified by:
getModein interfaceINewportVMCController
-
getOmegaIndex
public int getOmegaIndex()- Specified by:
getOmegaIndexin interfaceINewportVMCController
-
getPhiIndex
public int getPhiIndex()- Specified by:
getPhiIndexin interfaceINewportVMCController
-
getBufferCount
- Specified by:
getBufferCountin interfaceINewportVMCController- Returns:
- number of commands remaining be executed in buffer
-
getBufferNext
- Specified by:
getBufferNextin interfaceINewportVMCController- Returns:
- next command to be executed in buffer
-
getBufferList
- Specified by:
getBufferListin interfaceINewportVMCController- Returns:
- semi-colon separated list of unexecuted commands remaining in buffer
-
getPosition
- Specified by:
getPositionin interfaceINewportVMCController
-
getPositionAll
- Specified by:
getPositionAllin interfaceINewportVMCController
-
getSafeRouteFile
- Specified by:
getSafeRouteFilein interfaceINewportVMCController- Throws:
DeviceException
-
getStatus
- Specified by:
getStatusin interfaceINewportVMCController- Throws:
DeviceException
-
getStatusPort
public int getStatusPort()- Specified by:
getStatusPortin interfaceINewportVMCController
-
getStatusSocketConnection
- Specified by:
getStatusSocketConnectionin interfaceINewportVMCController
-
getTwoThetaIndex
public int getTwoThetaIndex()- Specified by:
getTwoThetaIndexin interfaceINewportVMCController
-
initialise
- Specified by:
initialisein interfaceINewportVMCController- Throws:
DeviceException
-
isBusy
- Specified by:
isBusyin interfaceINewportVMCController- Throws:
DeviceException
-
isCommandBufferEmpty
- Specified by:
isCommandBufferEmptyin interfaceINewportVMCController- Throws:
DeviceException
-
isReady
- Specified by:
isReadyin interfaceINewportVMCController- Throws:
DeviceException
-
moveAll
- Specified by:
moveAllin interfaceINewportVMCController- Throws:
DeviceException
-
moveAxis
- Specified by:
moveAxisin interfaceINewportVMCController- Throws:
DeviceException
-
moveAxisRelative
- Specified by:
moveAxisRelativein interfaceINewportVMCController- Throws:
DeviceException
-
scanContinuous
public void scanContinuous(int axisIndex, Double start, Double width, Double time) throws DeviceException - Specified by:
scanContinuousin interfaceINewportVMCController- Throws:
DeviceException
-
setCommandPort
public void setCommandPort(int port) - Specified by:
setCommandPortin interfaceINewportVMCController
-
setCommandSocketConnection
- Specified by:
setCommandSocketConnectionin interfaceINewportVMCController
-
setDetDistanceIndex
public void setDetDistanceIndex(int detDistanceIndex) - Specified by:
setDetDistanceIndexin interfaceINewportVMCController
-
setHost
- Specified by:
setHostin interfaceINewportVMCController
-
setKappaIndex
public void setKappaIndex(int kappaIndex) - Specified by:
setKappaIndexin interfaceINewportVMCController
-
setMode
- Specified by:
setModein interfaceINewportVMCController- Throws:
DeviceException
-
setModeCheckMove
- Specified by:
setModeCheckMovein interfaceINewportVMCController- Throws:
DeviceException
-
setModeCheckOnly
- Specified by:
setModeCheckOnlyin interfaceINewportVMCController- Throws:
DeviceException
-
setOmegaIndex
public void setOmegaIndex(int omegaIndex) - Specified by:
setOmegaIndexin interfaceINewportVMCController
-
setPhiIndex
public void setPhiIndex(int phiIndex) - Specified by:
setPhiIndexin interfaceINewportVMCController
-
setStatusPort
public void setStatusPort(int statusPort) - Specified by:
setStatusPortin interfaceINewportVMCController
-
setStatusSocketConnection
- Specified by:
setStatusSocketConnectionin interfaceINewportVMCController
-
setTwoThetaIndex
public void setTwoThetaIndex(int twoThetaIndex) - Specified by:
setTwoThetaIndexin interfaceINewportVMCController
-
stop
Description copied from interface:StoppableStops the current operation.- Specified by:
stopin interfaceStoppable- Throws:
DeviceException
-
cmdClearBuffer
Description copied from interface:INewportVMCControllerClear command buffer- Specified by:
cmdClearBufferin interfaceINewportVMCController- Returns:
- status
- Throws:
DeviceException
-
cmdPauseOnNext
Description copied from interface:INewportVMCControllerPause after current command finishes- Specified by:
cmdPauseOnNextin interfaceINewportVMCController- Returns:
- status
- Throws:
DeviceException
-
cmdResume
Description copied from interface:INewportVMCControllerResume executing command buffer- Specified by:
cmdResumein interfaceINewportVMCController- Returns:
- status
- Throws:
DeviceException
-
cmdStopAll
Description copied from interface:INewportVMCControllerStop immediately and clear command buffer- Specified by:
cmdStopAllin interfaceINewportVMCController- Returns:
- status
- Throws:
DeviceException
-