package gov.nih.nci.calab.domain.nano.characterization.physical;

import gov.nih.nci.calab.domain.Instrument;
import gov.nih.nci.calab.domain.Measurement;
import gov.nih.nci.calab.domain.nano.characterization.Characterization;
import gov.nih.nci.calab.domain.nano.characterization.CharacterizationProtocol;
import gov.nih.nci.calab.domain.nano.characterization.DerivedBioAssayData;
import gov.nih.nci.calab.domain.nano.particle.Nanoparticle;
import gov.nih.nci.calab.service.util.CananoConstants;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;

public class Purity implements Characterization {

	private static final long serialVersionUID = 1234567890L;

	private Long id;
	private String source;
	private String classification;
	private String description;
	private String identificationName;
	private String name;
	private String createdBy;
	private Date createdDate;
	private Collection<Nanoparticle> nanoparticleCollection;
	private Collection<DerivedBioAssayData> derivedBioAssayDataCollection = new ArrayList<DerivedBioAssayData>();
	private Instrument instrument;
	private CharacterizationProtocol characterizationProtocol;
	
	private Float homogeneityInLigand;
	private String residualSolvents;
	private Measurement freeComponents;
	
	public Purity() {
		super();
		// TODO Auto-generated constructor stub
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getSource() {
		return this.source;
	}

	public void setClassification(String classification) {
		this.classification = classification;
	}

	public String getClassification() {
		return CananoConstants.PHYSICAL_CHARACTERIZATION;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIdentificationName() {
		return identificationName;
	}

	public void setIdentificationName(String identificationName) {
		this.identificationName = identificationName;
	}

	public String getName() {
		return CananoConstants.PHYSICAL_PURITY;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setNanoparticleCollection(Collection<Nanoparticle> particles) {
		this.nanoparticleCollection = particles;
	}

	public Collection<Nanoparticle> getNanoparticleCollection() {
		return this.nanoparticleCollection;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Collection<DerivedBioAssayData> getDerivedBioAssayDataCollection() {
		return derivedBioAssayDataCollection;
	}

	public void setDerivedBioAssayDataCollection(
			Collection<DerivedBioAssayData> derivedBioAssayDataCollection) {
		this.derivedBioAssayDataCollection = derivedBioAssayDataCollection;
	}

	public Instrument getInstrument() {
		return instrument;
	}

	public void setInstrument(Instrument instrument) {
		this.instrument = instrument;
	}

	public CharacterizationProtocol getCharacterizationProtocol() {
		return characterizationProtocol;
	}

	public void setCharacterizationProtocol(
			CharacterizationProtocol characterizationProtocol) {
		this.characterizationProtocol = characterizationProtocol;
	}

	public Measurement getFreeComponents() {
		return freeComponents;
	}

	public void setFreeComponents(Measurement freeComponents) {
		this.freeComponents = freeComponents;
	}

	public Float getHomogeneityInLigand() {
		return homogeneityInLigand;
	}

	public void setHomogeneityInLigand(Float homogeneityInLigand) {
		this.homogeneityInLigand = homogeneityInLigand;
	}

	public String getResidualSolvents() {
		return residualSolvents;
	}

	public void setResidualSolvents(String residualSolvents) {
		this.residualSolvents = residualSolvents;
	}

}

@@ -1165,117 +1165,8 @@
 ;%0A%09%0A
-%09private Float homogeneityInLigand;%0A%09private String residualSolvents;%0A%09private Measurement freeComponents;%0A%09%0A
 %09pub
@@ -3358,554 +3358,6 @@
 %09%7D%0A%0A
-%09public Measurement getFreeComponents() %7B%0A%09%09return freeComponents;%0A%09%7D%0A%0A%09public void setFreeComponents(Measurement freeComponents) %7B%0A%09%09this.freeComponents = freeComponents;%0A%09%7D%0A%0A%09public Float getHomogeneityInLigand() %7B%0A%09%09return homogeneityInLigand;%0A%09%7D%0A%0A%09public void setHomogeneityInLigand(Float homogeneityInLigand) %7B%0A%09%09this.homogeneityInLigand = homogeneityInLigand;%0A%09%7D%0A%0A%09public String getResidualSolvents() %7B%0A%09%09return residualSolvents;%0A%09%7D%0A%0A%09public void setResidualSolvents(String residualSolvents) %7B%0A%09%09this.residualSolvents = residualSolvents;%0A%09%7D%0A%0A
 %7D%0A

Remove freeComponent, residual solvents, and HomogeneityInLigand