Make serializable and implement getWellOccupancies method
This commit is contained in:
@@ -5,9 +5,10 @@ Ideally, I'll be able to construct both the Vertices and the weights matrix from
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
public class SequenceRecord {
|
public class SequenceRecord implements Serializable {
|
||||||
private final String sequence;
|
private final String sequence;
|
||||||
private final SequenceType type;
|
private final SequenceType type;
|
||||||
//keys are well numbers, values are read count in that well
|
//keys are well numbers, values are read count in that well
|
||||||
@@ -42,6 +43,8 @@ public class SequenceRecord {
|
|||||||
return wells.keySet();
|
return wells.keySet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Map<Integer, Integer> getWellOccupancies() { return wells;}
|
||||||
|
|
||||||
public boolean isInWell(Integer wellNumber) {
|
public boolean isInWell(Integer wellNumber) {
|
||||||
return wells.containsKey(wellNumber);
|
return wells.containsKey(wellNumber);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user