Add fields for simulating read depth. Also a priority queue for lookback auctions

This commit is contained in:
eugenefischer
2022-09-26 00:42:55 -05:00
parent 489369f533
commit 184278b72e

View File

@@ -1,3 +1,5 @@
import org.jheaps.AddressableHeap;
import java.io.Serializable; import java.io.Serializable;
public class Vertex implements Serializable, Comparable<Vertex> { public class Vertex implements Serializable, Comparable<Vertex> {
@@ -5,6 +7,9 @@ public class Vertex implements Serializable, Comparable<Vertex> {
private Integer vertexLabel; private Integer vertexLabel;
private Integer sequence; private Integer sequence;
private Integer occupancy; private Integer occupancy;
private Integer readCount;
private Double potential;
private AddressableHeap queue;
public Vertex(Integer vertexLabel) { public Vertex(Integer vertexLabel) {
this.vertexLabel = vertexLabel; this.vertexLabel = vertexLabel;
@@ -20,6 +25,14 @@ public class Vertex implements Serializable, Comparable<Vertex> {
this.occupancy = occupancy; this.occupancy = occupancy;
} }
public Vertex(SequenceType type, Integer sequence, Integer occupancy, Integer vertexLabel, Integer readCount) {
this.type = type;
this.vertexLabel = vertexLabel;
this.sequence = sequence;
this.occupancy = occupancy;
this.readCount = readCount;
}
public SequenceType getType() { public SequenceType getType() {
return type; return type;
@@ -94,4 +107,11 @@ public class Vertex implements Serializable, Comparable<Vertex> {
return this.vertexLabel - other.getVertexLabel(); return this.vertexLabel - other.getVertexLabel();
} }
public Integer getReadCount() {
return readCount;
}
public void setReadCount(Integer readCount) {
this.readCount = readCount;
}
} }