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

55 lines
1.4 KiB
Java
Raw Normal View History

2016-06-15 21:47:26 +02:00
package info.nightscout.androidaps.interfaces;
2018-03-20 22:09:22 +01:00
import info.nightscout.androidaps.data.Profile;
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
default Constraint<Boolean> isLoopInvokationAllowed(Constraint<Boolean> value) {
return value;
}
2016-06-27 18:48:48 +02:00
default Constraint<Boolean> isClosedLoopAllowed(Constraint<Boolean> value) {
return value;
}
2016-06-27 18:48:48 +02:00
default Constraint<Boolean> isAutosensModeEnabled(Constraint<Boolean> value) {
return value;
}
2016-06-27 18:48:48 +02:00
default Constraint<Boolean> isAMAModeEnabled(Constraint<Boolean> value) {
return value;
}
2016-06-27 18:48:48 +02:00
default Constraint<Boolean> isSMBModeEnabled(Constraint<Boolean> value) {
return value;
}
2017-12-31 12:24:51 +01:00
2018-03-25 23:56:52 +02:00
default Constraint<Boolean> isAdvancedFilteringEnabled(Constraint<Boolean> value) {
return value;
}
default Constraint<Double> applyBasalConstraints(Constraint<Double> absoluteRate, Profile profile) {
return absoluteRate;
}
2016-06-27 18:48:48 +02:00
default Constraint<Integer> applyBasalPercentConstraints(Constraint<Integer> percentRate, Profile profile) {
return percentRate;
}
default Constraint<Double> applyBolusConstraints(Constraint<Double> insulin) {
return insulin;
}
2016-06-27 18:48:48 +02:00
default Constraint<Integer> applyCarbsConstraints(Constraint<Integer> carbs) {
return carbs;
}
2016-06-27 18:48:48 +02:00
default Constraint<Double> applyMaxIOBConstraints(Constraint<Double> maxIob) {
return maxIob;
};
2016-06-27 18:48:48 +02:00
2016-06-15 21:47:26 +02:00
}