Package uk.ac.gda.vmxi.lims
Class LimsAgentVmxi
java.lang.Object
gda.factory.FindableBase
uk.ac.gda.vmxi.lims.LimsAgentBase
uk.ac.gda.vmxi.lims.LimsAgentVmxi
-
Field Summary
FieldsFields inherited from class uk.ac.gda.vmxi.lims.LimsAgentBase
PLATE_STATUSES_ALLOWED_FOR_LOCAL_STORAGE_INDEX_CHANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetExperiments(String barcode) getExperiments(String barcode, String location) getPendingExperiments(String barcode) getPendingExperiments(String barcode, String location) Retrieve information stored about plate.getPlateContext(String barcode) Retrieve list of scheduled plates in local storagegetPlatesByStatus(PlateStatus status) Retrieve list of plates filtered by location or transit statusgetSleevesByLocation(Integer locationIndex) Tests the configured connection to data sourcesisPlateCompleted(String plateBarcode) isPlateScheduled(String plateBarcode) booleanvoidregisterCollectionGroup(String plateBarcode, String location, Timestamp startTime) registerExperiment(CollectionGroup group, DataCollectionRecord dataRec, Timestamp startTime, Timestamp endTime) Register new data collection, or update a data collection by supplying the dataCollectionIdregisterImageMatchResult(String barcode, String location, ImageMatchResult result) voidrequestPostProcessing(DataCollectionId collection) static voidrunProcessing(Long dataCollectionId) voidsetPlateCompleted(String plateBarcode) voidsetPlateContext(String plateBarcode, PlateContext plateContext) voidsetPlateStatus(String plateBarcode, PlateStatus status, Integer index) voidsetSleeveLocation(Integer sleeveId, Integer location, Timestamp timestamp) voidvoidunqueuePlate(String plateBarcode) Update the database with CollectionGroup attributesMethods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setName
-
Field Details
-
COMMAND_DATA_PROCESSING
- See Also:
-
TRIANGLE_NO_PLATE
- See Also:
-
-
Constructor Details
-
LimsAgentVmxi
public LimsAgentVmxi()
-
-
Method Details
-
runProcessing
-
getExperiments
- Specified by:
getExperimentsin interfaceLims- Throws:
LimsException
-
getExperiments
- Specified by:
getExperimentsin interfaceLims- Throws:
LimsException
-
getPendingExperiments
- Specified by:
getPendingExperimentsin interfaceLims- Throws:
LimsException
-
getPendingExperiments
- Specified by:
getPendingExperimentsin interfaceLims- Throws:
LimsException
-
getNextPlate
- Specified by:
getNextPlatein interfaceLims- Throws:
LimsException
-
getNextTwentyDegreePlate
- Specified by:
getNextTwentyDegreePlatein interfaceLims- Throws:
LimsException
-
getNextFourDegreePlate
- Specified by:
getNextFourDegreePlatein interfaceLims- Throws:
LimsException
-
getPlate
Retrieve information stored about plate. To date, this does not retrieve the status timestamp - use getPlateContext() for that- Specified by:
getPlatein interfaceLims- Throws:
LimsException
-
getPlateContext
- Specified by:
getPlateContextin interfaceLims- Throws:
LimsException
-
getPlatesByLocalStorageScheduled
Retrieve list of scheduled plates in local storage- Returns:
- list of plates
- Throws:
LimsException
-
getPlatesByStatus
Retrieve list of plates filtered by location or transit status- Specified by:
getPlatesByStatusin interfaceLims- Parameters:
status- location or transit status on which to filter- Returns:
- list of plates
- Throws:
LimsException
-
getVisit
- Specified by:
getVisitin interfaceLims- Throws:
LimsException
-
getSleevesByLocation
- Specified by:
getSleevesByLocationin interfaceLims- Throws:
LimsException
-
getSleeves
- Specified by:
getSleevesin interfaceLims- Throws:
LimsException
-
setSleeveLocation
public void setSleeveLocation(Integer sleeveId, Integer location, Timestamp timestamp) throws LimsException - Specified by:
setSleeveLocationin interfaceLims- Throws:
LimsException
-
disconnect
public void disconnect()- Specified by:
disconnectin interfaceLims
-
reconnect
- Specified by:
reconnectin interfaceLims- Throws:
LimsException
-
isConnected
Description copied from interface:LimsTests the configured connection to data sources- Specified by:
isConnectedin interfaceLims- Returns:
- true for successful connection
-
isPlateCompleted
- Specified by:
isPlateCompletedin interfaceLims- Throws:
LimsException
-
isPlateScheduled
- Specified by:
isPlateScheduledin interfaceLims- Throws:
LimsException
-
registerCollectionGroup
public Optional<CollectionGroup> registerCollectionGroup(String plateBarcode, String location, Timestamp startTime) throws LimsException - Specified by:
registerCollectionGroupin interfaceLims- Throws:
LimsException
-
registerExperiment
public Optional<DataCollectionId> registerExperiment(CollectionGroup group, DataCollectionRecord dataRec, Timestamp startTime, Timestamp endTime) throws LimsException Description copied from interface:LimsRegister new data collection, or update a data collection by supplying the dataCollectionId- Specified by:
registerExperimentin interfaceLims- Returns:
- optional containing the new or modified dataColllectionId
- Throws:
LimsException
-
registerImageMatchResult
public Optional<Long> registerImageMatchResult(String barcode, String location, ImageMatchResult result) throws LimsException - Specified by:
registerImageMatchResultin interfaceLims- Throws:
LimsException
-
requestPostProcessing
- Specified by:
requestPostProcessingin interfaceLims- Throws:
LimsException
-
setPlateCompleted
- Specified by:
setPlateCompletedin interfaceLims- Throws:
LimsException
-
setPlateContext
- Specified by:
setPlateContextin interfaceLims- Throws:
LimsException
-
setPlateStatus
public void setPlateStatus(String plateBarcode, PlateStatus status, Integer index) throws LimsException - Specified by:
setPlateStatusin interfaceLims- Throws:
LimsException
-
unqueuePlate
- Specified by:
unqueuePlatein interfaceLims- Throws:
LimsException
-
updateCollectionGroup
Description copied from interface:LimsUpdate the database with CollectionGroup attributes- Specified by:
updateCollectionGroupin interfaceLims- Parameters:
group- the bean of attributes - groupId is mandatory- Returns:
- Optional - non-null if update succeeded
- Throws:
LimsException
-
timeoutPlate
public void timeoutPlate()- Specified by:
timeoutPlatein interfaceLims
-
clearPlateTimeout
public void clearPlateTimeout()- Specified by:
clearPlateTimeoutin interfaceLims
-
isPlateTimedout
public boolean isPlateTimedout()- Specified by:
isPlateTimedoutin interfaceLims
-