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

29 lines
653 B
Java
Raw Normal View History

2016-06-15 21:47:26 +02:00
package info.nightscout.androidaps.interfaces;
/**
* Created by mike on 15.06.2016.
*/
2016-06-20 20:45:55 +02:00
public interface ConstraintsInterface {
2016-06-19 13:17:16 +02:00
2018-03-19 18:45:23 +01:00
Constraint<Boolean> isLoopInvokationAllowed(Constraint<Boolean> value);
2016-06-27 18:48:48 +02:00
2018-03-19 18:45:23 +01:00
Constraint<Boolean> isClosedLoopAllowed(Constraint<Boolean> value);
2016-06-27 18:48:48 +02:00
boolean isAutosensModeEnabled();
boolean isAMAModeEnabled();
2017-12-31 12:24:51 +01:00
boolean isSMBModeEnabled();
2016-06-20 20:45:55 +02:00
Double applyBasalConstraints(Double absoluteRate);
2016-06-27 18:48:48 +02:00
2016-06-20 20:45:55 +02:00
Integer applyBasalConstraints(Integer percentRate);
Double applyBolusConstraints(Double insulin);
2016-06-27 18:48:48 +02:00
Integer applyCarbsConstraints(Integer carbs);
2016-06-27 18:48:48 +02:00
Double applyMaxIOBConstraints(Double maxIob);
2016-06-15 21:47:26 +02:00
}