103 |
01 Jun 06 |
enell |
1 |
/* |
103 |
01 Jun 06 |
enell |
$Id$ |
103 |
01 Jun 06 |
enell |
3 |
|
103 |
01 Jun 06 |
enell |
Copyright (C) 2006 Johan Enell |
103 |
01 Jun 06 |
enell |
5 |
|
103 |
01 Jun 06 |
enell |
This file is part of BASE - BioArray Software Environment. |
103 |
01 Jun 06 |
enell |
Available at http://base.thep.lu.se/ |
103 |
01 Jun 06 |
enell |
8 |
|
103 |
01 Jun 06 |
enell |
BASE is free software; you can redistribute it and/or modify it |
103 |
01 Jun 06 |
enell |
under the terms of the GNU General Public License as published by |
103 |
01 Jun 06 |
enell |
the Free Software Foundation; either version 2 of the License, or |
103 |
01 Jun 06 |
enell |
(at your option) any later version. |
103 |
01 Jun 06 |
enell |
13 |
|
103 |
01 Jun 06 |
enell |
BASE is distributed in the hope that it will be useful, but |
103 |
01 Jun 06 |
enell |
WITHOUT ANY WARRANTY; without even the implied warranty of |
103 |
01 Jun 06 |
enell |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
103 |
01 Jun 06 |
enell |
General Public License for more details. |
103 |
01 Jun 06 |
enell |
18 |
|
103 |
01 Jun 06 |
enell |
You should have received a copy of the GNU General Public License |
103 |
01 Jun 06 |
enell |
along with this program; if not, write to the Free Software |
103 |
01 Jun 06 |
enell |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
103 |
01 Jun 06 |
enell |
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 |
} |