plugins/base1/se.lu.onk/trunk/Normalization/src/lowess/Reporter.java

Code
Comments
Other
Rev Date Author Line
114 16 Jun 06 enell 1 /*
114 16 Jun 06 enell 2   $Id$
114 16 Jun 06 enell 3
114 16 Jun 06 enell 4   Copyright (C) 2006 Johan Enell
114 16 Jun 06 enell 5
114 16 Jun 06 enell 6   This file is part of BASE - BioArray Software Environment.
114 16 Jun 06 enell 7   Available at http://base.thep.lu.se/
114 16 Jun 06 enell 8
114 16 Jun 06 enell 9   BASE is free software; you can redistribute it and/or modify it
114 16 Jun 06 enell 10   under the terms of the GNU General Public License as published by
114 16 Jun 06 enell 11   the Free Software Foundation; either version 2 of the License, or
114 16 Jun 06 enell 12   (at your option) any later version.
114 16 Jun 06 enell 13
114 16 Jun 06 enell 14   BASE is distributed in the hope that it will be useful, but
114 16 Jun 06 enell 15   WITHOUT ANY WARRANTY; without even the implied warranty of
114 16 Jun 06 enell 16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
114 16 Jun 06 enell 17   General Public License for more details.
114 16 Jun 06 enell 18
114 16 Jun 06 enell 19   You should have received a copy of the GNU General Public License
114 16 Jun 06 enell 20   along with this program; if not, write to the Free Software
114 16 Jun 06 enell 21   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
114 16 Jun 06 enell 22   02111-1307, USA.
114 16 Jun 06 enell 23 */
114 16 Jun 06 enell 24 package lowess;
114 16 Jun 06 enell 25
114 16 Jun 06 enell 26 public class Reporter
114 16 Jun 06 enell 27 {
114 16 Jun 06 enell 28
114 16 Jun 06 enell 29   private final int position;
114 16 Jun 06 enell 30   private final int reporter;
114 16 Jun 06 enell 31   private final String reporterId;
114 16 Jun 06 enell 32
114 16 Jun 06 enell 33   public Reporter(int position, int reporter, String reporterId)
114 16 Jun 06 enell 34   {
114 16 Jun 06 enell 35     this.position = position;
114 16 Jun 06 enell 36     this.reporter = reporter;
114 16 Jun 06 enell 37     this.reporterId = reporterId;
114 16 Jun 06 enell 38   }
114 16 Jun 06 enell 39
114 16 Jun 06 enell 40   public final int getPosition()
114 16 Jun 06 enell 41   {
114 16 Jun 06 enell 42     return position;
114 16 Jun 06 enell 43   }
114 16 Jun 06 enell 44
114 16 Jun 06 enell 45   public final int getReporter()
114 16 Jun 06 enell 46   {
114 16 Jun 06 enell 47     return reporter;
114 16 Jun 06 enell 48   }
114 16 Jun 06 enell 49
114 16 Jun 06 enell 50   public final String getReporterId()
114 16 Jun 06 enell 51   {
114 16 Jun 06 enell 52     return reporterId;
114 16 Jun 06 enell 53   }
114 16 Jun 06 enell 54
114 16 Jun 06 enell 55   @Override
114 16 Jun 06 enell 56   public String toString()
114 16 Jun 06 enell 57   {
114 16 Jun 06 enell 58     return getPosition() + "\t" + getReporter();
114 16 Jun 06 enell 59   }
114 16 Jun 06 enell 60   
114 16 Jun 06 enell 61   
114 16 Jun 06 enell 62 }