make computation of mean value optional

This commit is contained in:
2017-09-23 12:42:22 +02:00
parent adbde57d95
commit 79d860cee7
10 changed files with 85 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
package org.lucares.pdbui.domain;
public enum Aggregate {
NONE, MEAN
}

View File

@@ -20,6 +20,8 @@ public class PlotRequest {
private String dateFrom;
private String dateRange;
private Aggregate aggregate = Aggregate.NONE;
public String getQuery() {
return query;
@@ -100,4 +102,12 @@ public class PlotRequest {
public void setAxisScale(final YAxis yAxis) {
this.yAxis = yAxis;
}
public void setAggregate(Aggregate aggregate) {
this.aggregate = aggregate;
}
public Aggregate getAggregate() {
return aggregate;
}
}