Class AbstractPlateController
java.lang.Object
gda.observable.ObservableComponent
uk.ac.gda.devices.insitu.controller.AbstractPlateController
- All Implemented Interfaces:
Device,Configurable,Findable,gda.observable.IObservable,Serializable,PlateController
public abstract class AbstractPlateController
extends gda.observable.ObservableComponent
implements PlateController
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic org.slf4j.Loggerprotected gda.observable.ObservableComponentstatic final Stringstatic final PlateTypeFields inherited from interface uk.ac.gda.devices.insitu.controller.PlateController
POS_COLLECT, POS_NUM_POSITIONS, POS_ORIGIN, POS_SAFE, POS_SAVED, POS_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PlatePositionprotected Wellprotected WellcalculateWell(PlatePosition posn) voidprotected static intfindIndexOf(String target, String[] domain) org.apache.commons.configuration.XMLConfigurationstatic org.apache.commons.configuration.XMLConfigurationabstract PlatePositionintgetPlatePosition(int index) booleanvoidloadPlate(int index) voidloadPlateManual(int index) voidstatic WellparseWellEntry(PlateType ptype, String entry) abstract voidabstract voidprepareApproach(int attempts) protected PlateControllerStatevoidCalibrate the controller using the currently reported positionorg.apache.commons.configuration.XMLConfigurationrestorePosition(int posIndex) static voidrunCommand(String cmd) protected PlateControllerStatesaveCurrentPosition(double gonx, double gonz, double platey, double platez) savePosition(int posIndex) voidsavePosition(PlatePosition pos, int posIndex) voidvoidsetApproachApprover(ActionApprover approver) voidvoidsetCurrentPlateIndex(int index) voidvoidsetPlateInventory(PlateInventory inventory) voidsetPositions(String[] positions) voidtest()toString()protected PlatePositionMethods inherited from class gda.observable.ObservableComponent
addIObserver, deleteIObserver, deleteIObservers, getNumberOfObservers, getObservers, isBeingObserved, notifyIObserversMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, 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 uk.ac.gda.devices.insitu.controller.PlateController
calibratePosition, isCalibrated, moveToAbsolute, moveToCollectPosition, moveToSafePosition, moveToWell, resetControllerState, unloadPlate, unloadPlateManual
-
Field Details
-
logger
public static org.slf4j.Logger logger -
CFG_KEY_CURRENTWELL
- See Also:
-
CFG_KEY_WELL
- See Also:
-
CFG_KEY_PLATE_CLASS
- See Also:
-
CFG_KEY_PLATE_STATE
- See Also:
-
CFG_KEY_PLATE_TYPEID
- See Also:
-
CFG_KEY_PLATE_INDEX
- See Also:
-
CFG_KEY_ORIGIN_X
- See Also:
-
CFG_KEY_ORIGIN_Y
- See Also:
-
CFG_KEY_USER_X
- See Also:
-
CFG_KEY_USER_Y
- See Also:
-
CFG_KEY_USER_Z
- See Also:
-
CFG_SUFFIX_ORIGIN_X
- See Also:
-
CFG_SUFFIX_ORIGIN_Y
- See Also:
-
ALPHA_LABELS
- See Also:
-
ORIGIN
- See Also:
-
UNLOADED
-
EMPTY_INDEX
public static final int EMPTY_INDEX- See Also:
-
oc
protected gda.observable.ObservableComponent oc
-
-
Constructor Details
-
AbstractPlateController
public AbstractPlateController()
-
-
Method Details
-
findIndexOf
-
getConfiguration
public static org.apache.commons.configuration.XMLConfiguration getConfiguration() throws org.apache.commons.configuration.ConfigurationException, IOException- Throws:
org.apache.commons.configuration.ConfigurationExceptionIOException
-
parseWellEntry
-
runCommand
-
calculatePosition
-
calculateWell
- Throws:
Exception
-
calculateWell
- Throws:
Exception
-
clearDropSelection
public void clearDropSelection() -
getApproachApprover
-
getConfig
public org.apache.commons.configuration.XMLConfiguration getConfig() throws org.apache.commons.configuration.ConfigurationException, IOException- Throws:
org.apache.commons.configuration.ConfigurationExceptionIOException
-
getControllerPosition
-
getControllerState
- Specified by:
getControllerStatein interfacePlateController
-
getCurrentPlate
- Specified by:
getCurrentPlatein interfacePlateController
-
getCurrentPlateIndex
public int getCurrentPlateIndex()- Specified by:
getCurrentPlateIndexin interfacePlateController
-
getCurrentPlateType
- Specified by:
getCurrentPlateTypein interfacePlateController
-
getCurrentPosition
- Specified by:
getCurrentPositionin interfacePlateController
-
getOriginPosition
- Specified by:
getOriginPositionin interfacePlateController
-
getPlateInventory
- Specified by:
getPlateInventoryin interfacePlateController
-
getPlatePosition
- Specified by:
getPlatePositionin interfacePlateController
-
readControllerState
-
readOrigin
- Throws:
Exception
-
readPlateIndex
public Integer readPlateIndex() throws org.apache.commons.configuration.ConfigurationException, IOException- Throws:
org.apache.commons.configuration.ConfigurationExceptionIOException
-
readPlateType
-
readUserPosition
- Throws:
Exception
-
getSavedPosition
- Specified by:
getSavedPositionin interfacePlateController
-
getSavedWell
- Specified by:
getSavedWellin interfacePlateController
-
getStatus
- Specified by:
getStatusin interfacePlateController- Throws:
DeviceException
-
hasCurrentPlate
public boolean hasCurrentPlate() -
loadPlate
public void loadPlate(int index) - Specified by:
loadPlatein interfacePlateController
-
loadPlateManual
public void loadPlateManual(int index) - Specified by:
loadPlateManualin interfacePlateController
-
moveTo
- Specified by:
moveToin interfacePlateController
-
postApproach
public abstract void postApproach() -
prepareApproach
public abstract void prepareApproach(int attempts) -
recalibrate
public void recalibrate()Description copied from interface:PlateControllerCalibrate the controller using the currently reported position- Specified by:
recalibratein interfacePlateController
-
resetConfig
public org.apache.commons.configuration.XMLConfiguration resetConfig() throws org.apache.commons.configuration.ConfigurationException, IOException- Throws:
org.apache.commons.configuration.ConfigurationExceptionIOException
-
restorePosition
- Specified by:
restorePositionin interfacePlateController
-
restoreSavedPosition
- Specified by:
restoreSavedPositionin interfacePlateController
-
saveControllerState
protected PlateControllerState saveControllerState(PlateControllerState state) throws org.apache.commons.configuration.ConfigurationException, IOException - Throws:
org.apache.commons.configuration.ConfigurationExceptionIOException
-
saveCurrentPosition
- Specified by:
saveCurrentPositionin interfacePlateController
-
saveCurrentPosition
-
savePosition
-
savePosition
- Specified by:
savePositionin interfacePlateController
-
saveWell
- Specified by:
saveWellin interfacePlateController
-
setApproachApprover
-
setControllerState
- Specified by:
setControllerStatein interfacePlateController
-
setCurrentPlateIndex
public void setCurrentPlateIndex(int index) - Specified by:
setCurrentPlateIndexin interfacePlateController
-
setCurrentPlateUnloaded
public void setCurrentPlateUnloaded() -
setPositions
- Specified by:
setPositionsin interfacePlateController
-
setPlateInventory
- Specified by:
setPlateInventoryin interfacePlateController
-
toString
-
updateCurrentPosition
-
notifyPlateEventListeners
-
test
public void test()- Specified by:
testin interfacePlateController
-