Recording source file names in output files, allowing output of intermediate results
This commit is contained in:
@@ -5,6 +5,7 @@ TODO: Implement discrete frequency distributions using Vose's Alias Method
|
||||
*/
|
||||
|
||||
public class Plate {
|
||||
private String sourceFile;
|
||||
private List<List<Integer[]>> wells;
|
||||
private Random rand = new Random();
|
||||
private int size;
|
||||
@@ -12,6 +13,7 @@ public class Plate {
|
||||
private Integer[] concentrations;
|
||||
private double stdDev;
|
||||
|
||||
|
||||
public Plate (int size, double error, Integer[] concentrations, double stdDev) {
|
||||
this.size = size;
|
||||
this.error = error;
|
||||
@@ -20,12 +22,14 @@ public class Plate {
|
||||
wells = new ArrayList<>();
|
||||
}
|
||||
|
||||
public Plate(List<List<Integer[]>> wells){
|
||||
public Plate(String sourceFileName, List<List<Integer[]>> wells){
|
||||
this.sourceFile = sourceFileName;
|
||||
this.wells = wells;
|
||||
this.size = wells.size();
|
||||
}
|
||||
|
||||
public void fillWells(List<Integer[]> cells) {
|
||||
public void fillWells(String sourceFileName, List<Integer[]> cells) {
|
||||
sourceFile = sourceFileName;
|
||||
int numSections = concentrations.length;
|
||||
int section = 0;
|
||||
double m;
|
||||
@@ -100,4 +104,8 @@ public class Plate {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public String getSourceFileName() {
|
||||
return sourceFile;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user