Пример #1
0
  /**
   * Private Constructor for a new Sample generated from scratch, use factory method
   * generatePlasmidSample
   *
   * @param myplasmid the Plasmid ("DNA") within the Sample
   * @param mycell the Strain from which the Plasmid is derived
   * @param mycontainer the Container the Sample is being put in
   * @param myvolume how many uL of liquid are in the new Sample
   * @param author who is creating the Sample
   */
  private PlasmidSample(Plasmid myplasmid, Strain mycell, double myvolume, Person author) {
    super(myplasmid.getName(), myvolume, author);
    _pSampleDatum._plasmidUUID = myplasmid.getUUID();

    if (mycell != null) {
      _pSampleDatum._sourceStrainUUID = mycell.getUUID();
    }
  }
Пример #2
0
 public void changePlasmid(Plasmid newplas) {
   // DO A CHECK OF WHETHER THIS STRAIN IS LOCKED OR NOT
   if (newplas == null) {
     fireData(new RefreshEvent(this, RefreshEvent.Condition.PLASMID_CHANGED));
     return;
   }
   _pSampleDatum._plasmidUUID = newplas.getUUID();
   setChanged(org.clothocore.api.dnd.RefreshEvent.Condition.PLASMID_CHANGED);
 }