Refactor cdr3 matching to use new Vertex class

This commit is contained in:
2022-02-26 09:49:16 -06:00
parent 75b2aa9553
commit 1ea68045ce
4 changed files with 81 additions and 75 deletions

View File

@@ -6,6 +6,9 @@ public class Vertex implements Serializable {
private Integer sequence;
private Integer occupancy;
public Vertex(Integer vertexLabel) {
this.vertexLabel = vertexLabel;
}
public Vertex(String vertexLabel) {
this.vertexLabel = Integer.parseInt((vertexLabel));
}
@@ -18,33 +21,33 @@ public class Vertex implements Serializable {
}
public String getType() {
return type.name();
public SequenceType getType() {
return type;
}
public void setType(String type) {
this.type = SequenceType.valueOf(type);
}
public String getVertexLabel() {
return vertexLabel.toString();
public Integer getVertexLabel() {
return vertexLabel;
}
public void setVertexLabel(String label) {
this.vertexLabel = Integer.parseInt(label);
}
public String getSequence() {
public Integer getSequence() {
return sequence.toString();
return sequence;
}
public void setSequence(String sequence) {
this.sequence = Integer.parseInt(sequence);
}
public String getOccupancy() {
return occupancy.toString();
public Integer getOccupancy() {
return occupancy;
}
public void setOccupancy(String occupancy) {