preparation to add plots for percentiles
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
package org.lucares.pdbui;
|
||||
|
||||
import org.lucares.pdb.plot.api.AggreateInternal;
|
||||
import org.lucares.pdb.plot.api.AggregateHandler;
|
||||
import org.lucares.pdb.plot.api.AxisScale;
|
||||
import org.lucares.pdb.plot.api.Limit;
|
||||
import org.lucares.pdb.plot.api.MeanAggregate;
|
||||
import org.lucares.pdb.plot.api.NullAggregate;
|
||||
import org.lucares.pdb.plot.api.PlotSettings;
|
||||
import org.lucares.pdbui.domain.Aggregate;
|
||||
import org.lucares.pdbui.domain.LimitBy;
|
||||
@@ -29,10 +32,13 @@ class PlotSettingsTransformer {
|
||||
return result;
|
||||
}
|
||||
|
||||
private static AggreateInternal toAggregateInternal(Aggregate aggregate) {
|
||||
private static AggregateHandler toAggregateInternal(Aggregate aggregate) {
|
||||
switch (aggregate) {
|
||||
case NONE:return AggreateInternal.NONE;
|
||||
case MEAN:return AggreateInternal.MEAN;
|
||||
case NONE:return new NullAggregate();
|
||||
case MEAN:return new MeanAggregate();
|
||||
case PERCENTILE95:return new NullAggregate();
|
||||
case PERCENTILE99:return new NullAggregate();
|
||||
case PERCENTILE999:return new NullAggregate();
|
||||
}
|
||||
throw new IllegalStateException("unhandled enum: " + aggregate);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package org.lucares.pdbui.domain;
|
||||
|
||||
public enum Aggregate {
|
||||
NONE, MEAN
|
||||
NONE, MEAN, PERCENTILE95, PERCENTILE99, PERCENTILE999
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user