JSci.biology.AminoAcid Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsci Show documentation
Show all versions of jsci Show documentation
JSci is a set of open source Java packages. The aim is to encapsulate scientific methods/principles in the most natural way possible. As such they should greatly aid the development of scientific based software.
It offers: abstract math interfaces, linear algebra (support for various matrix and vector types), statistics (including probability distributions), wavelets, newtonian mechanics, chart/graph components (AWT and Swing), MathML DOM implementation, ...
Note: some packages, like javax.comm, for the astro and instruments package aren't listed as dependencies (not available).
The newest version!
package JSci.biology;
import JSci.chemistry.Molecule;
/**
* A class representing an Amino-Acid.
* @version 1.0
* @author Silvere Martin-Michiellot
* @author Mark Hale
*/
public class AminoAcid extends Molecule {
private String name;
private String abbreviation;
private String symbol;
private String molecularFormula ;
private double molecularWeight;
private double isoelectricPoint;
private String casRegistryNumber;
/**
* Constructs an AminoAcid.
*/
public AminoAcid(String name, String abbreviation, String symbol, String molecularFormula) {
super(molecularFormula);
this.name=name;
this.abbreviation=abbreviation;
this.symbol=symbol;
this.molecularFormula=molecularFormula;
}
/**
* Returns the name.
*/
public String getName() {
return name;
}
/**
* Returns the abbreviation.
*/
public String getAbbreviation() {
return abbreviation;
}
/**
* Returns the symbol.
*/
public String getSymbol() {
return symbol;
}
/**
* Returns the molecular formula.
*/
public String getMolecularFormula() {
return molecularFormula ;
}
/**
* Returns the molecular weight.
*/
public double getMolecularWeight() {
return molecularWeight;
}
/**
* Sets the molecular weight.
*/
protected void setMolecularWeight(double molecularWeight) {
this.molecularWeight=molecularWeight;
}
/**
* Returns the isoelectric point.
*/
public double getIsoelectricPoint() {
return isoelectricPoint;
}
/**
* Sets the isoelectric point.
*/
protected void setIsoelectricPoint(double isoelectricPoint) {
this.isoelectricPoint=isoelectricPoint;
}
/**
* Returns the CAS registry number.
*/
public String getCASRegistryNumber() {
return casRegistryNumber;
}
/**
* Sets the CAS registry number.
*/
protected void setCASRegistryNumber(String casRegistryNumber) {
this.casRegistryNumber=casRegistryNumber;
}
}