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

29 lines
595 B
Java
Raw Normal View History

2016-06-15 21:47:26 +02:00
package info.nightscout.androidaps.interfaces;
2016-06-28 11:30:42 +02:00
import info.nightscout.androidaps.plugins.Loop.APSResult;
2016-06-19 13:17:16 +02:00
2016-06-15 21:47:26 +02:00
/**
* 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
2016-06-27 18:48:48 +02:00
boolean isLoopEnabled();
2016-06-26 11:43:26 +02:00
boolean isClosedModeEnabled();
2016-06-27 18:48:48 +02:00
boolean isAutosensModeEnabled();
boolean isAMAModeEnabled();
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
}