001    package jcolibri.test.test14;
002    
003    import jcolibri.cbrcore.Attribute;
004    import jcolibri.cbrcore.CaseComponent;
005    
006    /**
007     * Bean storing the description for the Glass data base.
008     * @author Lisa Cummins
009     * @version 1.0
010     */
011    public class GlassDescription implements CaseComponent {
012    
013            Double ri;
014        Double na;
015        Double mg;
016        Double al;
017            Double si;
018            Double k;
019            Double ca;
020            Double ba;
021            Double fe;
022            String id;
023    
024            /**
025             * Returns a String representation of this object.
026             * @return a String representation of this object.
027             */
028            public String toString()
029            {       return id+", "+ri+", "+na+", "+mg+", "+al+", "+si+", "+k+", "+ca+", "+ba+", "+fe;
030            }
031            
032            /**
033             * Returns the id attribute of this object.
034             * @return the id attribute of this object.
035             */
036            public Attribute getIdAttribute() 
037            {       return new Attribute("id", this.getClass());
038            }
039    
040            /**
041             * Returns the id.
042             * @return the id.
043             */
044            public String getId() 
045            {       return id;
046            }
047    
048            /**
049             * Sets the id to be the given id.
050             * @param id The id to set.
051             */
052            public void setId(String id) {
053                    this.id = id;
054            }
055    
056            /**
057             * Returns the Ri value.
058             * @return the Ri value.
059             */
060            public Double getRi() 
061            {       return ri;
062            }
063    
064            /**
065             * Sets the Ri value to be the given value.
066             * @param ri The Ri value to set.
067             */
068            public void setRi(Double ri) 
069            {       this.ri = ri;
070            }
071    
072            /**
073             * Returns the Na value.
074             * @return the Na value.
075             */
076            public Double getNa() 
077            {       return ri;
078            }
079    
080            /**
081             * Sets the Na value to be the given value.
082             * @param na The Na value to set.
083             */
084            public void setNa(Double na) 
085            {       this.na = na;
086            }
087    
088            /**
089             * Returns the Mg value.
090             * @return the Mg value.
091             */
092            public Double getMg() 
093            {       return mg;
094            }
095    
096            /**
097             * Sets the Mg value to be the given value.
098             * @param mg The Mg value to set.
099             */
100            public void setMg(Double mg) 
101            {       this.mg = mg;
102            }
103            
104            /**
105             * Returns the Al value.
106             * @return the Al value.
107             */
108            public Double getAl() 
109            {       return al;
110            }
111    
112            /**
113             * Sets the Al value to be the given value.
114             * @param al The Al value to set.
115             */
116            public void setAl(Double al) 
117            {       this.al = al;
118            }
119    
120            /**
121             * Returns the Si value.
122             * @return the Si value.
123             */
124            public Double getSi() 
125            {       return si;
126            }
127    
128            /**
129             * Sets the Si value to be the given value.
130             * @param si The Si value to set.
131             */
132            public void setSi(Double si) 
133            {       this.si = si;
134            }
135            
136            /**
137             * Returns the K value.
138             * @return the K value.
139             */
140            public Double getK() 
141            {       return k;
142            }
143    
144            /**
145             * Sets the K value to be the given value.
146             * @param k The k value to set.
147             */
148            public void setK(Double k) 
149            {       this.k = k;
150            }
151    
152            /**
153             * Returns the Ca value.
154             * @return the Ca value.
155             */
156            public Double getCa() 
157            {       return ca;
158            }
159    
160            /**
161             * Sets the Ca value to be the given value.
162             * @param ca The Ca value to set.
163             */
164            public void setCa(Double ca) 
165            {       this.ca = ca;
166            }
167    
168            /**
169             * Returns the ba value.
170             * @return the Ba value.
171             */
172            public Double getBa() 
173            {       return ba;
174            }
175    
176            /**
177             * Sets the Ba value to be the given value.
178             * @param ba The Ba value to set.
179             */
180            public void setBa(Double ba) 
181            {       this.ba = ba;
182            }
183    
184            /**
185             * Returns the Fe value.
186             * @return the Fe value.
187             */
188            public Double getFe() 
189            {       return fe;
190            }
191    
192            /**
193             * Sets the Fe value to be the given value.
194             * @param fe The Fe value to set.
195             */
196            public void setFe(Double fe) 
197            {       this.fe = fe;
198            }
199    }