Last change
on this file since 1559 was
1559,
checked in by rkrimmel, 10 years ago
|
Further adjustments of the smithWatermanRepeated algorithm
|
File size:
707 bytes
|
Line | |
---|
1 | package de.ugoe.cs.autoquest.tasktrees.alignment.algorithms; |
---|
2 | |
---|
3 | import java.io.Serializable; |
---|
4 | import java.util.ArrayList; |
---|
5 | |
---|
6 | public class NumberSequence implements Serializable { |
---|
7 | private int[] sequence; |
---|
8 | private int signature; |
---|
9 | |
---|
10 | public NumberSequence(int size) { |
---|
11 | |
---|
12 | sequence = new int[size]; |
---|
13 | } |
---|
14 | |
---|
15 | public int[] getSequence() { |
---|
16 | return sequence; |
---|
17 | } |
---|
18 | public void setSequence(int[] sequence) { |
---|
19 | this.sequence = sequence; |
---|
20 | } |
---|
21 | public int getSignature() { |
---|
22 | return signature; |
---|
23 | } |
---|
24 | public void setSignature(int signature) { |
---|
25 | this.signature = signature; |
---|
26 | } |
---|
27 | |
---|
28 | public void printSequence() |
---|
29 | { |
---|
30 | for (int i = 0; i < sequence.length; i++) { |
---|
31 | System.out.format("%5d", sequence[i]); |
---|
32 | } |
---|
33 | System.out.println(); |
---|
34 | } |
---|
35 | |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.