View Javadoc

1   /*** PlateWellDataPoint.java - part of the MirkE (say murky) application for colormetric analysis emphesizing 
2   kinetics.
3   
4   Created by: Scott Menor on 21 July, 2004.
5   Last modified by: Scott Menor on 6 November, 2004
6   
7   Copyright (c) 2004 Arizona State University - Cancer Research Institute. All rights reserved.
8   
9   MirkE is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13  
14  MirkE is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  GNU General Public License for more details.
18  
19  You should have received a copy of the GNU General Public License
20  along with MirkE; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  US
22  */
23  
24  package edu.asu.cri.MirkE.dataStructures;
25  
26  /***
27  
28  TODO - absorb DataPoint into an abstract class and make this a subclass of it
29  */
30  public class PlateWellDataPoint {
31  	private long id;
32  	
33  	/***
34  	
35  	 @return id
36  	 */
37  	public long getId() {
38  		return id;
39  	}
40  	
41  	/***
42  		@param id
43  	 */
44  	public void setId(long id) {
45  		this.id = id;
46  	}
47  	
48  	private String observableName;
49  	
50  	/***
51  		@param observableName
52  		*/
53  	public void setObservableName(String observableName) {
54  		this.observableName = observableName;
55  	}
56  	
57  	/***
58       * @return observableName
59  	 */
60  	public String getObservableName() {
61  		return this.observableName;
62  	}
63  	
64  	private String observedUnits;
65  	
66  	/*** 
67  		@param observedUnits
68  		*/
69  	public void setObservedUnits(String observedUnits) {
70  		this.observedUnits = observedUnits;
71  	}
72  	
73  	/***
74  		@return observedUnits
75  	 */
76  	public String getObservedUnits() {
77  		return observedUnits;
78  	}
79  	
80  	private double observedValue;
81  	/*** 
82  		@param observedValue
83  		*/
84  	public void setObservedValue(double observedValue) {
85  		this.observedValue = observedValue;
86  	}
87  	
88  	/***
89  		@return observedUnits
90  	 */
91  	public double getObservedValue() {
92  		return observedValue;
93  	}
94  	
95  	private String plateRow;
96  	
97  	/***
98  		@param plateRow
99  	 */
100 	public void setPlateRow(String plateRow) {
101 		this.plateRow = plateRow;
102 	}
103 	
104 	/***
105 		@return plateRow
106 		*/
107 	public String getPlateRow() {
108 		return plateRow;
109 	}
110 	
111 	private String plateColumn;
112 	
113 	/***
114 		@param plateColumn
115 	 */
116 	public void setPlateColumn(String plateColumn) {
117 		this.plateColumn = plateColumn;
118 	}
119 	
120 	/***
121 		@return plateColumn
122 	 */
123 	public String getPlateColumn() {
124 		return plateColumn;
125 	}
126 	
127 	private java.sql.Timestamp timestamp;
128 	
129 	/***
130      * @return timestamp
131 	 */
132 	public java.sql.Timestamp getTimestamp() {
133 		return this.timestamp;
134 	}
135 	
136 	/***
137      * @param timestamp
138 	 */
139 	public void setTimestamp(java.sql.Timestamp timestamp) {
140 		this.timestamp = timestamp;
141 	}
142 	
143 	private String plateIdentifier;
144 	
145 	/***
146 		@param plateIdentifier	
147 	 
148 	 */
149 	public void setPlateIdentifier(String plateIdentifier) {
150 		this.plateIdentifier = plateIdentifier;
151 	}
152 	
153 	/***
154 		
155 	 @return plateIdentifier
156 	 */
157 	public String getPlateIdentifier() {
158 		return plateIdentifier;
159 	}	
160 	
161 	/***
162 		
163 	 @return string
164 	 */
165 	public String toString() {
166 			
167 		return "" + timestamp + " " + plateRow + " " + plateColumn + " " + observableName + " " + observedUnits + " " + observedValue;
168 	}
169 	
170 	/***
171 		
172 	 @return hashCode
173 	 */
174 /*	public int hashCode() {
175 		if (observableToMeasuredValueMap != null) {
176 			return observableToMeasuredValueMap.hashCode();
177 		}
178 		
179 		return 0;
180 	}*/
181 	
182 	/***
183 		@return isEqual 
184 	 */
185 /*	public boolean equals(Object object) {
186 		if (this == object)  return true;
187 		if (!(object instanceof DataPoint)) return false;
188 		
189 		final DataPoint dataPoint = (DataPoint)object;
190 		
191 		if (!getObservableToMeasuredValueMap().equals(dataPoint.getObservableToMeasuredValueMap())) return false;
192 		
193 		return true;
194 	}*/
195 }