Add getReservoirLevel() and getBatteryLevel() to LocalInsightPlugin
This commit is contained in:
parent
cc189d360f
commit
183e9a321e
1 changed files with 12 additions and 0 deletions
|
@ -495,6 +495,18 @@ public class LocalInsightPlugin extends PluginBase implements PumpInterface, Con
|
|||
else return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getReservoirLevel() {
|
||||
if (cartridgeStatus == null) return 0;
|
||||
return cartridgeStatus.getRemainingAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBatteryLevel() {
|
||||
if (batteryStatus == null) return 0;
|
||||
return batteryStatus.getBatteryAmount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public PumpEnactResult deliverTreatment(DetailedBolusInfo detailedBolusInfo) {
|
||||
PumpEnactResult result = new PumpEnactResult();
|
||||
|
|
Loading…
Reference in a new issue