Remove basal rate profile number, only using one.
This commit is contained in:
parent
d7e5a88757
commit
75afa4e0a1
|
@ -1,13 +1,9 @@
|
||||||
package de.jotomo.ruffy.spi;
|
package de.jotomo.ruffy.spi;
|
||||||
|
|
||||||
public class BasalProfile {
|
public class BasalProfile {
|
||||||
public final int number;
|
|
||||||
public final double[] hourlyRates;
|
public final double[] hourlyRates;
|
||||||
|
|
||||||
public BasalProfile(int number, double[] hourlyRates) {
|
public BasalProfile( double[] hourlyRates) {
|
||||||
this.number = number;
|
|
||||||
if (hourlyRates.length != 24)
|
|
||||||
throw new IllegalArgumentException("Profile must have 24 hourly rates");
|
|
||||||
this.hourlyRates = hourlyRates;
|
this.hourlyRates = hourlyRates;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue