Skip to content

Commit 9e6af47

Browse files
committed
feat: add access to underlying measure for sub-classes
1 parent 52420cc commit 9e6af47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

measure/src/main/java/net/laprun/sustainability/power/measure/StoppedPowerMeasure.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@ public TimestampedMeasures getNthTimestampedMeasures(int n) {
6363
private int ensureIndex(int upToIndex) {
6464
return Math.min(upToIndex, samples - 1);
6565
}
66+
67+
protected OngoingPowerMeasure underlyingMeasure() {
68+
return measure;
69+
}
6670
}

0 commit comments

Comments
 (0)