Package gda.device.insertiondevice
Class IDPhaseController
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.insertiondevice.IDPhaseController
- All Implemented Interfaces:
Device,IInsertionDevicePhaseControl,InitializationListener,Configurable,Findable,gda.observable.IObservable
public class IDPhaseController
extends DeviceBase
implements InitializationListener, IInsertionDevicePhaseControl
-
Field Summary
FieldsFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.device.IInsertionDevicePhaseControl
BOTTOM_INNER_AXIS, BOTTOM_OUTER_AXIS, GAP_AND_PHASE_MODE, ID_MODE, ID_MOVE, ID_MOVE_START, LINEAR_HORIZONTAL_BOTTOM_INNER_MOTOR_POSITION, LINEAR_HORIZONTAL_BOTTOM_OUTER_MOTOR_POSITION, LINEAR_HORIZONTAL_TOP_INNER_MOTOR_POSITION, LINEAR_HORIZONTAL_TOP_OUTER_MOTOR_POSITION, LINEAR_VERTICAL_BOTTOM_INNER_MOTOR_POSITION, LINEAR_VERTICAL_BOTTOM_OUTER_MOTOR_POSITION, LINEAR_VERTICAL_TOP_INNER_MOTOR_POSITION, LINEAR_VERTICAL_TOP_OUTER_MOTOR_POSITION, PV_SEPARATOR, TOP_INNER_AXIS, TOP_OUTER_AXIS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidDefault 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.voidmove to linear horizontal phasevoidCalled when all critical channels are connected.booleanisBusy()voidmoveToPhase(double phaseInDegree) move to phase specified.voidsetBasePVName(String basePVName) voidvertical()move to linear vertical phaseMethods 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
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Field Details
-
busy
public volatile boolean busy
-
-
Constructor Details
-
IDPhaseController
public IDPhaseController()
-
-
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
-
hortizontal
Description copied from interface:IInsertionDevicePhaseControlmove to linear horizontal phase- Specified by:
hortizontalin interfaceIInsertionDevicePhaseControl- Throws:
DeviceException
-
vertical
Description copied from interface:IInsertionDevicePhaseControlmove to linear vertical phase- Specified by:
verticalin interfaceIInsertionDevicePhaseControl- Throws:
DeviceException
-
circular_left
- Throws:
DeviceException
-
circular_right
- Throws:
DeviceException
-
moveToPhase
Description copied from interface:IInsertionDevicePhaseControlmove to phase specified. A phase to motor positions lookup table required to support this method.- Specified by:
moveToPhasein interfaceIInsertionDevicePhaseControl- Parameters:
phaseInDegree-- Throws:
DeviceException
-
initializationCompleted
public void initializationCompleted() throws InterruptedException, DeviceException, gov.aps.jca.TimeoutException, gov.aps.jca.CAExceptionDescription copied from interface:InitializationListenerCalled when all critical channels are connected.- Specified by:
initializationCompletedin interfaceInitializationListener- Throws:
InterruptedExceptionDeviceExceptiongov.aps.jca.TimeoutExceptiongov.aps.jca.CAException
-
isBusy
public boolean isBusy()- Specified by:
isBusyin interfaceIInsertionDevicePhaseControl
-
getBasePVName
-
setBasePVName
-