Make serializable and implement getWellOccupancies method

This commit is contained in:
eugenefischer
2022-09-28 00:58:02 -05:00
parent 8781afd74c
commit 9973473cc6

View File

@@ -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.*;
public class SequenceRecord {
public class SequenceRecord implements Serializable {
private final String sequence;
private final SequenceType type;
//keys are well numbers, values are read count in that well
@@ -42,6 +43,8 @@ public class SequenceRecord {
return wells.keySet();
}
public Map<Integer, Integer> getWellOccupancies() { return wells;}
public boolean isInWell(Integer wellNumber) {
return wells.containsKey(wellNumber);
}