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

22 lines
491 B
Java
Raw Normal View History

2017-04-21 11:45:25 +02:00
package info.nightscout.androidaps.interfaces;
import java.util.Date;
import info.nightscout.androidaps.data.Iob;
import info.nightscout.androidaps.db.Treatment;
/**
* Created by mike on 17.04.2017.
*/
public interface InsulinInterface {
final int FASTACTINGINSULIN = 0;
2017-04-21 15:36:49 +02:00
final int FASTACTINGINSULINPROLONGED = 1;
2017-04-21 11:45:25 +02:00
int getId();
String getFriendlyName();
String getComment();
double getDia();
public Iob iobCalc(Treatment treatment, Date time, Double dia);
}