Remove basal rate profile number, only using one.

This commit is contained in:
Johannes Mockenhaupt 2017-11-11 16:19:34 +01:00
parent d7e5a88757
commit 75afa4e0a1
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -1,13 +1,9 @@
package de.jotomo.ruffy.spi;
public class BasalProfile {
public final int number;
public final double[] hourlyRates;
public BasalProfile(int number, double[] hourlyRates) {
this.number = number;
if (hourlyRates.length != 24)
throw new IllegalArgumentException("Profile must have 24 hourly rates");
public BasalProfile( double[] hourlyRates) {
this.hourlyRates = hourlyRates;
}
}