001: package JSci.biology;
002:
003: import JSci.chemistry.Molecule;
004:
005: /**
006: * A class representing an Amino-Acid.
007: * @version 1.0
008: * @author Silvere Martin-Michiellot
009: * @author Mark Hale
010: */
011: public class AminoAcid extends Molecule {
012: private String name;
013: private String abbreviation;
014: private String symbol;
015: private String molecularFormula;
016: private double molecularWeight;
017: private double isoelectricPoint;
018: private String casRegistryNumber;
019:
020: /**
021: * Constructs an AminoAcid.
022: */
023: public AminoAcid(String name, String abbreviation, String symbol,
024: String molecularFormula) {
025: super (molecularFormula);
026: this .name = name;
027: this .abbreviation = abbreviation;
028: this .symbol = symbol;
029: this .molecularFormula = molecularFormula;
030: }
031:
032: /**
033: * Returns the name.
034: */
035: public String getName() {
036: return name;
037: }
038:
039: /**
040: * Returns the abbreviation.
041: */
042: public String getAbbreviation() {
043: return abbreviation;
044: }
045:
046: /**
047: * Returns the symbol.
048: */
049: public String getSymbol() {
050: return symbol;
051: }
052:
053: /**
054: * Returns the molecular formula.
055: */
056: public String getMolecularFormula() {
057: return molecularFormula;
058: }
059:
060: /**
061: * Returns the molecular weight.
062: */
063: public double getMolecularWeight() {
064: return molecularWeight;
065: }
066:
067: /**
068: * Sets the molecular weight.
069: */
070: protected void setMolecularWeight(double molecularWeight) {
071: this .molecularWeight = molecularWeight;
072: }
073:
074: /**
075: * Returns the isoelectric point.
076: */
077: public double getIsoelectricPoint() {
078: return isoelectricPoint;
079: }
080:
081: /**
082: * Sets the isoelectric point.
083: */
084: protected void setIsoelectricPoint(double isoelectricPoint) {
085: this .isoelectricPoint = isoelectricPoint;
086: }
087:
088: /**
089: * Returns the CAS registry number.
090: */
091: public String getCASRegistryNumber() {
092: return casRegistryNumber;
093: }
094:
095: /**
096: * Sets the CAS registry number.
097: */
098: protected void setCASRegistryNumber(String casRegistryNumber) {
099: this.casRegistryNumber = casRegistryNumber;
100: }
101: }
|