AndroidAPS/app/src/main/java/info/nightscout/androidaps/interfaces/TreatmentsInterface.java

65 lines
2.3 KiB
Java
Raw Normal View History

2016-06-14 23:45:55 +02:00
package info.nightscout.androidaps.interfaces;
2016-07-17 15:04:33 +02:00
import java.util.List;
2017-05-29 21:45:59 +02:00
import info.nightscout.androidaps.data.DetailedBolusInfo;
import info.nightscout.androidaps.data.IobTotal;
2017-01-04 22:47:21 +01:00
import info.nightscout.androidaps.data.MealData;
import info.nightscout.androidaps.db.ExtendedBolus;
2017-06-02 10:25:49 +02:00
import info.nightscout.androidaps.db.ProfileSwitch;
2017-05-23 23:56:53 +02:00
import info.nightscout.androidaps.db.TempTarget;
import info.nightscout.androidaps.db.TemporaryBasal;
2016-07-17 15:04:33 +02:00
import info.nightscout.androidaps.db.Treatment;
2017-06-02 12:27:21 +02:00
import info.nightscout.androidaps.data.OverlappingIntervals;
import info.nightscout.androidaps.data.ProfileIntervals;
2016-06-14 23:45:55 +02:00
/**
* Created by mike on 14.06.2016.
*/
public interface TreatmentsInterface {
2016-06-19 13:17:16 +02:00
2017-05-11 18:54:50 +02:00
void updateTotalIOBTreatments();
2017-05-12 16:27:33 +02:00
void updateTotalIOBTempBasals();
2017-05-11 18:54:50 +02:00
IobTotal getLastCalculationTreatments();
IobTotal getCalculationToTimeTreatments(long time);
2017-05-12 16:27:33 +02:00
IobTotal getLastCalculationTempBasals();
IobTotal getCalculationToTimeTempBasals(long time);
2017-01-04 22:47:21 +01:00
MealData getMealData();
2017-05-12 16:27:33 +02:00
List<Treatment> getTreatmentsFromHistory();
List<Treatment> getTreatments5MinBackFromHistory(long time);
2017-05-12 16:27:33 +02:00
// real basals (not faked by extended bolus)
boolean isInHistoryRealTempBasalInProgress();
TemporaryBasal getRealTempBasalFromHistory(long time);
2017-05-16 09:46:09 +02:00
2017-06-08 18:15:17 +02:00
boolean addToHistoryTempBasal(TemporaryBasal tempBasal);
2017-05-16 09:46:09 +02:00
// basal that can be faked by extended boluses
boolean isTempBasalInProgress();
TemporaryBasal getTempBasalFromHistory(long time);
double getTempBasalAbsoluteRateHistory();
double getTempBasalRemainingMinutesFromHistory();
OverlappingIntervals<TemporaryBasal> getTemporaryBasalsFromHistory();
boolean isInHistoryExtendedBoluslInProgress();
ExtendedBolus getExtendedBolusFromHistory(long time);
OverlappingIntervals<ExtendedBolus> getExtendedBolusesFromHistory();
2017-06-08 18:15:17 +02:00
boolean addToHistoryExtendedBolus(ExtendedBolus extendedBolus);
2017-06-07 00:11:33 +02:00
boolean addToHistoryTreatment(DetailedBolusInfo detailedBolusInfo);
TempTarget getTempTargetFromHistory(long time);
OverlappingIntervals<TempTarget> getTempTargetsFromHistory();
2017-05-23 23:56:53 +02:00
2017-06-02 10:25:49 +02:00
ProfileSwitch getProfileSwitchFromHistory(long time);
ProfileIntervals<ProfileSwitch> getProfileSwitchesFromHistory();
void addToHistoryProfileSwitch(ProfileSwitch profileSwitch);
long oldestDataAvailable();
2017-05-12 16:27:33 +02:00
2016-06-14 23:45:55 +02:00
}