KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > biology > AminoAcid


1 package JSci.biology;
2
3 import JSci.chemistry.Molecule;
4
5 /**
6  * A class representing an Amino-Acid.
7  * @version 1.0
8  * @author Silvere Martin-Michiellot
9  * @author Mark Hale
10  */

11 public class AminoAcid extends Molecule {
12     private String JavaDoc name;
13     private String JavaDoc abbreviation;
14     private String JavaDoc symbol;
15     private String JavaDoc molecularFormula ;
16     private double molecularWeight;
17     private double isoelectricPoint;
18     private String JavaDoc casRegistryNumber;
19     /**
20      * Constructs an AminoAcid.
21      */

22     public AminoAcid(String JavaDoc name, String JavaDoc abbreviation, String JavaDoc symbol, String JavaDoc molecularFormula) {
23         super(molecularFormula);
24         this.name=name;
25         this.abbreviation=abbreviation;
26         this.symbol=symbol;
27         this.molecularFormula=molecularFormula;
28     }
29     /**
30      * Returns the name.
31      */

32     public String JavaDoc getName() {
33         return name;
34     }
35     /**
36      * Returns the abbreviation.
37      */

38     public String JavaDoc getAbbreviation() {
39         return abbreviation;
40     }
41     /**
42      * Returns the symbol.
43      */

44     public String JavaDoc getSymbol() {
45         return symbol;
46     }
47     /**
48      * Returns the molecular formula.
49      */

50     public String JavaDoc getMolecularFormula() {
51         return molecularFormula ;
52     }
53     /**
54      * Returns the molecular weight.
55      */

56     public double getMolecularWeight() {
57         return molecularWeight;
58     }
59     /**
60      * Sets the molecular weight.
61      */

62     protected void setMolecularWeight(double molecularWeight) {
63         this.molecularWeight=molecularWeight;
64     }
65     /**
66      * Returns the isoelectric point.
67      */

68     public double getIsoelectricPoint() {
69         return isoelectricPoint;
70     }
71     /**
72      * Sets the isoelectric point.
73      */

74     protected void setIsoelectricPoint(double isoelectricPoint) {
75         this.isoelectricPoint=isoelectricPoint;
76     }
77     /**
78      * Returns the CAS registry number.
79      */

80     public String JavaDoc getCASRegistryNumber() {
81         return casRegistryNumber;
82     }
83     /**
84      * Sets the CAS registry number.
85      */

86     protected void setCASRegistryNumber(String JavaDoc casRegistryNumber) {
87         this.casRegistryNumber=casRegistryNumber;
88     }
89 }
90
Popular Tags