public static final String PROFILE = "P";
- public static final Hashtable[] calculate(Vector sequences, int start,
+ public static final Hashtable[] calculate(List<SequenceI> list, int start,
int end)
{
- return calculate(sequences, start, end, false);
+ return calculate(list, start, end, false);
}
- public static final Hashtable[] calculate(Vector sequences, int start,
+ public static final Hashtable[] calculate(List<SequenceI> sequences, int start,
int end, boolean profile)
{
SequenceI[] seqs = new SequenceI[sequences.size()];
int width = 0;
+ synchronized (sequences) {
for (int i = 0; i < sequences.size(); i++)
{
- seqs[i] = (SequenceI) sequences.elementAt(i);
+ seqs[i] = sequences.get(i);
if (seqs[i].getLength() > width)
{
width = seqs[i].getLength();
}
calculate(seqs, start, end, reply, profile);
-
return reply;
}
+ }
public static final void calculate(SequenceI[] sequences, int start,
int end, Hashtable[] result)