|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.cisban.rod.data.PlateManager
public class PlateManager
Manages the parsing and saving of everything to do with Plate
s, including
MasterplateSet
s, PlateCV
s, MediumCV
s,
BackgroundMutationCV
s, TreatmentCV
s, etc.
Field Summary | |
---|---|
protected java.util.List<javax.swing.SwingWorker> |
currentTasks
|
Constructor Summary | |
---|---|
PlateManager()
|
Method Summary | |
---|---|
javax.swing.SwingWorker |
addTreatmentsToPlates(java.lang.String plates,
TreatmentCV treatment,
java.util.Date date)
Returns a thread that will add the TreatmentCV to the plates in the String. |
void |
cancelCurrentTasks()
cancels all queued tasks for a swingworker. |
java.util.Map<java.lang.String,java.lang.Exception> |
createMasterplateSet(java.util.List<java.lang.String> barcodes,
java.util.Map<java.lang.Integer,java.util.Set<MasterplatePosition>> numToPos,
java.lang.String description,
MasterplateLibraryCV mpcv,
BackgroundMutationCV bmcv,
DatabaseProgressListener listener,
PlateCV pcv)
|
java.util.Collection<BackgroundMutationCV> |
getBackgroundMutationCVs()
creates a link to the database and retrieves all backgroundMutationCVs. |
java.util.Collection<MasterplateLibraryCV> |
getMasterplateLibraryCVs()
creates a link to the database and retrieves all MasterplatelibraryCVs. |
java.util.Collection<MasterplateSet> |
getMasterplateSets()
creates a link to the database and retrieves all masterplates sets. |
java.util.Collection<MediumCV> |
getMediumCVs()
creates a link to the database and retrieves all mediumCVs. |
java.util.Collection<PlateCV> |
getPlateCVs()
creates a link to the database and retrieves all plateCVs. |
java.util.Collection<Plate> |
getPlates()
creates a link to the database and retrieves all plates. |
java.util.Collection<TreatmentCV> |
getTreatmentCVs()
creates a link to the database and retrieves all treatments. |
boolean |
hasCurrentTask()
checks if there are 1 or more current tasks queued by a swingworker. |
javax.swing.SwingWorker |
loadMasterPlate(MasterplateLibraryCV mpcv,
java.lang.String description,
java.util.List<java.lang.String> barcodes,
java.io.File file,
BackgroundMutationCV bmcv,
PlateCV pcv)
Returns a thread that will load a new masterplate. |
javax.swing.SwingWorker |
modifyMedium(MediumCV medium)
|
javax.swing.SwingWorker |
modifyTreatment(TreatmentCV treatment)
|
javax.swing.SwingWorker |
newMedium(MediumCV medium)
Returns a thread that will add a new medium. |
javax.swing.SwingWorker |
newMutation(BackgroundMutationCV mutationCV)
Returns a thread that will create a new mutation. |
javax.swing.SwingWorker |
newTreatment(TreatmentCV treatment)
Returns a thread that will create a new treatment. |
javax.swing.SwingWorker |
pourPlates(MediumCV mediumCV,
java.util.List<java.lang.String> barcodes,
java.util.Date datePoured,
PlateCV plateCV)
Returns a thread that will pour the plates in the String in the medium specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<javax.swing.SwingWorker> currentTasks
Constructor Detail |
---|
public PlateManager()
Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.Exception> createMasterplateSet(java.util.List<java.lang.String> barcodes, java.util.Map<java.lang.Integer,java.util.Set<MasterplatePosition>> numToPos, java.lang.String description, MasterplateLibraryCV mpcv, BackgroundMutationCV bmcv, DatabaseProgressListener listener, PlateCV pcv)
public javax.swing.SwingWorker modifyMedium(MediumCV medium)
public javax.swing.SwingWorker modifyTreatment(TreatmentCV treatment)
public javax.swing.SwingWorker pourPlates(MediumCV mediumCV, java.util.List<java.lang.String> barcodes, java.util.Date datePoured, PlateCV plateCV)
mediumCV
- the medium to use for the platesbarcodes
- a return-separated list of the barcodes of the platesdatePoured
- the date the plates were poured
public javax.swing.SwingWorker loadMasterPlate(MasterplateLibraryCV mpcv, java.lang.String description, java.util.List<java.lang.String> barcodes, java.io.File file, BackgroundMutationCV bmcv, PlateCV pcv)
mpcv
- the library defining the masterplatedescription
- a description of the masterplatebarcodes
- the return-separated list of barcodesfile
- the file where the mapping information is foundbmcv
- the background mutation of the plate
public javax.swing.SwingWorker newTreatment(TreatmentCV treatment)
treatment
- the new treatment to add.
public javax.swing.SwingWorker newMutation(BackgroundMutationCV mutationCV)
mutationCV
- the new mutation to add.
public javax.swing.SwingWorker newMedium(MediumCV medium)
medium
- the new medium to add
public javax.swing.SwingWorker addTreatmentsToPlates(java.lang.String plates, TreatmentCV treatment, java.util.Date date)
plates
- a string of the return-separated barcodestreatment
- the treatment to be applied to the platesdate
- the date of treatment
public java.util.Collection<TreatmentCV> getTreatmentCVs() throws QueryNotFoundException
QueryNotFoundException
public java.util.Collection<MediumCV> getMediumCVs() throws QueryNotFoundException
QueryNotFoundException
public java.util.Collection<PlateCV> getPlateCVs() throws QueryNotFoundException
QueryNotFoundException
public java.util.Collection<MasterplateSet> getMasterplateSets() throws QueryNotFoundException
QueryNotFoundException
public java.util.Collection<BackgroundMutationCV> getBackgroundMutationCVs() throws QueryNotFoundException
QueryNotFoundException
public java.util.Collection<MasterplateLibraryCV> getMasterplateLibraryCVs() throws QueryNotFoundException
QueryNotFoundException
public java.util.Collection<Plate> getPlates() throws QueryNotFoundException
QueryNotFoundException
public boolean hasCurrentTask()
public void cancelCurrentTasks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |