Add fields for simulating read depth. Also a priority queue for lookback auctions
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import org.jheaps.AddressableHeap;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Vertex implements Serializable, Comparable<Vertex> {
|
||||
@@ -5,6 +7,9 @@ public class Vertex implements Serializable, Comparable<Vertex> {
|
||||
private Integer vertexLabel;
|
||||
private Integer sequence;
|
||||
private Integer occupancy;
|
||||
private Integer readCount;
|
||||
private Double potential;
|
||||
private AddressableHeap queue;
|
||||
|
||||
public Vertex(Integer vertexLabel) {
|
||||
this.vertexLabel = vertexLabel;
|
||||
@@ -20,6 +25,14 @@ public class Vertex implements Serializable, Comparable<Vertex> {
|
||||
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() {
|
||||
return type;
|
||||
@@ -94,4 +107,11 @@ public class Vertex implements Serializable, Comparable<Vertex> {
|
||||
return this.vertexLabel - other.getVertexLabel();
|
||||
}
|
||||
|
||||
public Integer getReadCount() {
|
||||
return readCount;
|
||||
}
|
||||
|
||||
public void setReadCount(Integer readCount) {
|
||||
this.readCount = readCount;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user