package info.nightscout.androidaps.interfaces; import info.nightscout.androidaps.data.Profile; /** * Created by mike on 15.06.2016. */ public interface ConstraintsInterface { default Constraint isLoopInvokationAllowed(Constraint value) { return value; } default Constraint isClosedLoopAllowed(Constraint value) { return value; } default Constraint isAutosensModeEnabled(Constraint value) { return value; } default Constraint isAMAModeEnabled(Constraint value) { return value; } default Constraint isSMBModeEnabled(Constraint value) { return value; } default Constraint isAdvancedFilteringEnabled(Constraint value) { return value; } default Constraint applyBasalConstraints(Constraint absoluteRate, Profile profile) { return absoluteRate; } default Constraint applyBasalPercentConstraints(Constraint percentRate, Profile profile) { return percentRate; } default Constraint applyBolusConstraints(Constraint insulin) { return insulin; } default Constraint applyCarbsConstraints(Constraint carbs) { return carbs; } default Constraint applyMaxIOBConstraints(Constraint maxIob) { return maxIob; }; }