2017-04-21 11:45:25 +02:00
|
|
|
package info.nightscout.androidaps.interfaces;
|
|
|
|
|
|
|
|
import info.nightscout.androidaps.data.Iob;
|
2018-04-05 09:39:18 +02:00
|
|
|
import info.nightscout.androidaps.plugins.Treatments.Treatment;
|
2017-04-21 11:45:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by mike on 17.04.2017.
|
|
|
|
*/
|
|
|
|
|
|
|
|
public interface InsulinInterface {
|
2018-05-06 12:49:03 +02:00
|
|
|
// int FASTACTINGINSULIN = 0; // old model no longer available
|
|
|
|
// int FASTACTINGINSULINPROLONGED = 1; // old model no longer available
|
2017-12-11 18:45:04 +01:00
|
|
|
int OREF_RAPID_ACTING = 2;
|
|
|
|
int OREF_ULTRA_RAPID_ACTING = 3;
|
|
|
|
int OREF_FREE_PEAK = 4;
|
2017-08-14 11:44:34 +02:00
|
|
|
|
2017-04-21 11:45:25 +02:00
|
|
|
|
|
|
|
int getId();
|
|
|
|
String getFriendlyName();
|
|
|
|
String getComment();
|
|
|
|
double getDia();
|
2017-12-22 10:34:45 +01:00
|
|
|
Iob iobCalcForTreatment(Treatment treatment, long time, double dia);
|
2017-04-21 11:45:25 +02:00
|
|
|
}
|