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