/** * Given an experiment, we see for each condition if a new growth medium is associated to the cell * line, and if new media are found, these are added to the medium binding list. * * @param experiment */ public void addNewMedia(Experiment experiment) { for (PlateCondition plateCondition : experiment.getPlateConditionList()) { CellLine cellLine = plateCondition.getCellLine(); String medium = cellLine.getGrowthMedium(); if (!mediumBindingList.contains(medium)) { mediumBindingList.add(medium); } } }
/** * Given an experiment, we see for each condition if a new serum is associated to the cell line, * and if new sera are found, these are added to the serum binding list. * * @param experiment */ public void addNewSera(Experiment experiment) { for (PlateCondition plateCondition : experiment.getPlateConditionList()) { CellLine cellLine = plateCondition.getCellLine(); String serum = cellLine.getSerum(); if (!serumBindingList.contains(serum)) { serumBindingList.add(serum); } } }