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

77 lines
1.7 KiB
Java
Raw Normal View History

2016-12-08 15:21:16 +01:00
package info.nightscout.androidaps.interfaces;
/**
* Created by mike on 08.12.2016.
*/
public class PumpDescription {
2016-12-27 23:35:50 +01:00
public static final int NONE = 0;
2017-05-30 18:10:05 +02:00
public static final int PERCENT = 0x01;
public static final int ABSOLUTE = 0x02;
2016-12-08 15:21:16 +01:00
public boolean isBolusCapable = true;
public double bolusStep = 0.1d;
public boolean isExtendedBolusCapable = true;
public double extendedBolusStep = 0.1d;
2017-05-30 15:07:44 +02:00
public double extendedBolusDurationStep = 30;
public double extendedBolusMaxDuration = 12 * 60;
2016-12-08 15:21:16 +01:00
public boolean isTempBasalCapable = true;
2017-05-30 18:10:05 +02:00
public int tempBasalStyle = PERCENT;
public int maxTempPercent = 200;
public int tempPercentStep = 10;
public double maxTempAbsolute = 10;
public double tempAbsoluteStep = 0.05d;
public int tempDurationStep = 60;
public int tempMaxDuration = 12 * 60;
2016-12-08 15:21:16 +01:00
public boolean isSetBasalProfileCapable = true;
public double basalStep = 0.01d;
2016-12-09 11:46:46 +01:00
public double basalMinimumRate = 0.04d;
2016-12-08 15:21:16 +01:00
public boolean isRefillingCapable = false;
public boolean storesCarbInfo = true;
public void resetSettings()
{
isBolusCapable = true;
bolusStep = 0.1d;
isExtendedBolusCapable = true;
extendedBolusStep = 0.1d;
extendedBolusDurationStep = 30;
extendedBolusMaxDuration = 12 * 60;
isTempBasalCapable = true;
tempBasalStyle = PERCENT;
maxTempPercent = 200;
tempPercentStep = 10;
maxTempAbsolute = 10;
tempAbsoluteStep = 0.05d;
tempDurationStep = 60;
tempMaxDuration = 12 * 60;
isSetBasalProfileCapable = true;
basalStep = 0.01d;
basalMinimumRate = 0.04d;
isRefillingCapable = false;
storesCarbInfo = true;
}
2016-12-08 15:21:16 +01:00
}