2016-06-13 22:53:41 +02:00
|
|
|
package info.nightscout.androidaps.plugins;
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2016-06-11 20:45:40 +02:00
|
|
|
import org.json.JSONObject;
|
|
|
|
|
2016-06-13 22:53:41 +02:00
|
|
|
import info.nightscout.androidaps.data.Result;
|
2016-06-11 20:45:40 +02:00
|
|
|
import info.nightscout.client.data.NSProfile;
|
|
|
|
|
2016-06-05 01:40:35 +02:00
|
|
|
/**
|
|
|
|
* Created by mike on 04.06.2016.
|
|
|
|
*/
|
2016-06-11 20:45:40 +02:00
|
|
|
public interface Pump {
|
|
|
|
|
|
|
|
boolean isTempBasalInProgress();
|
|
|
|
boolean isExtendedBoluslInProgress();
|
2016-06-05 01:40:35 +02:00
|
|
|
|
2016-06-11 20:45:40 +02:00
|
|
|
Integer getBatteryPercent();
|
|
|
|
Integer getReservoirValue();
|
2016-06-10 18:50:46 +02:00
|
|
|
|
2016-06-13 22:53:41 +02:00
|
|
|
// Upload to pump new basal profile
|
2016-06-11 20:45:40 +02:00
|
|
|
void setNewBasalProfile(NSProfile profile);
|
|
|
|
|
|
|
|
double getBaseBasalRate(); // base basal rate, not temp basal
|
|
|
|
double getTempBasalAbsoluteRate();
|
|
|
|
double getTempBasalRemainingMinutes();
|
|
|
|
|
|
|
|
Result deliverTreatment(Double insulin, Double carbs);
|
|
|
|
Result setTempBasalAbsolute(Double absoluteRate, Integer durationInMinutes);
|
|
|
|
Result setTempBasalPercent(Integer percent, Integer durationInMinutes);
|
|
|
|
Result setExtendedBolus(Double insulin, Integer durationInMinutes);
|
|
|
|
Result cancelTempBasal();
|
|
|
|
Result cancelExtendedBolus();
|
2016-06-10 18:50:46 +02:00
|
|
|
|
2016-06-11 20:45:40 +02:00
|
|
|
JSONObject getJSONStatus();
|
2016-06-05 01:40:35 +02:00
|
|
|
}
|