Exemplo n.º 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();
    }
  }
Exemplo n.º 2
0
 public void changeSourceStrain(Strain newstrain) {
   // NEED TO CHECK IF ITS LOCKED HERE
   if (newstrain == null) {
     fireData(new RefreshEvent(this, RefreshEvent.Condition.STRAIN_CHANGED));
     return;
   }
   _pSampleDatum._sourceStrainUUID = newstrain.getUUID();
   setChanged(RefreshEvent.Condition.STRAIN_CHANGED);
 }