Add getters to MatchingResult
This commit is contained in:
@@ -21,15 +21,15 @@ public class MatchingResult {
|
|||||||
* well populations *
|
* well populations *
|
||||||
* total alphas found *
|
* total alphas found *
|
||||||
* total betas found *
|
* total betas found *
|
||||||
* high overlap threshold
|
* high overlap threshold *
|
||||||
* low overlap threshold
|
* low overlap threshold *
|
||||||
* maximum occupancy difference
|
* maximum occupancy difference *
|
||||||
* minimum overlap percent
|
* minimum overlap percent *
|
||||||
* pairing attempt rate
|
* pairing attempt rate *
|
||||||
* correct pairing count
|
* correct pairing count *
|
||||||
* incorrect pairing count
|
* incorrect pairing count *
|
||||||
* pairing error rate
|
* pairing error rate *
|
||||||
* simulation time
|
* simulation time (seconds)
|
||||||
*/
|
*/
|
||||||
this.metadata = metadata;
|
this.metadata = metadata;
|
||||||
this.comments = new ArrayList<>();
|
this.comments = new ArrayList<>();
|
||||||
@@ -91,6 +91,22 @@ public class MatchingResult {
|
|||||||
return Integer.parseInt(metadata.get("total beta count"));
|
return Integer.parseInt(metadata.get("total beta count"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//put in the rest of these methods following the same pattern
|
public Integer getHighOverlapThreshold() { return Integer.parseInt(metadata.get("high overlap threshold"));}
|
||||||
|
|
||||||
|
public Integer getLowOverlapThreshold() { return Integer.parseInt(metadata.get("low overlap threshold"));}
|
||||||
|
|
||||||
|
public Integer getMaxOccupancyDifference() { return Integer.parseInt(metadata.get("maximum occupancy difference"));}
|
||||||
|
|
||||||
|
public Integer getMinOverlapPercent() { return Integer.parseInt(metadata.get("minimum overlap percent"));}
|
||||||
|
|
||||||
|
public Double getPairingAttemptRate() { return Double.parseDouble(metadata.get("pairing attempt rate"));}
|
||||||
|
|
||||||
|
public Integer getCorrectPairingCount() { return Integer.parseInt(metadata.get("correct pairing count"));}
|
||||||
|
|
||||||
|
public Integer getIncorrectPairingCount() { return Integer.parseInt(metadata.get("incorrect pairing count"));}
|
||||||
|
|
||||||
|
public Double getPairingErrorRate() { return Double.parseDouble(metadata.get("pairing error rate"));}
|
||||||
|
|
||||||
|
public String getSimulationTime() { return metadata.get("simulation time (seconds)"); }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user