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

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