1 /*** Observable.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 6 Copyright (c) 2004 Arizona State University - Cancer Research Institute. All rights reserved. 7 8 MirkE is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2 of the License, or 11 (at your option) any later version. 12 13 MirkE is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with MirkE; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US 21 */ 22 23 /*** 24 * modified 2005.01.17 by smenor - added more details to JavaDoc 25 * 26 */ 27 28 package edu.asu.cri.MirkE.dataStructures; 29 30 /*** 31 * An <code>Observable</code> is a property that can be measured or otherwise observed ('time'; 'concentration'; 'absorbance at 570nm'; etc). 32 */ 33 public class Observable { 34 /*** default constructor 35 */ 36 public Observable() { 37 38 } 39 40 /*** constructor 41 42 @param name 43 */ 44 public Observable(String name) { 45 setName(name); 46 } 47 48 private long id; 49 50 /*** 51 @return id 52 */ 53 public long getId() { 54 return id; 55 } 56 57 /*** 58 @param id 59 */ 60 public void setId(long id) { 61 this.id = id; 62 } 63 64 private String name; 65 66 /*** 67 68 @return name 69 */ 70 public String getName() { 71 return this.name; 72 } 73 74 /*** 75 76 @param name 77 */ 78 public void setName(String name) { 79 this.name = name; 80 } 81 82 /*** 83 @return string 84 */ 85 public String toString() { 86 return name; 87 } 88 }