ingo@417: package de.intevation.flys.artifacts.model;
ingo@417: 
sascha@3776: import java.util.Arrays;
sascha@3776: 
ingo@417: /**
felix@4331:  * A range (from -> to) with associated double array.
ingo@417:  * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
ingo@417:  */
sascha@3744: public class RangeWithValues extends Range {
ingo@417: 
ingo@417:     protected double[] values;
ingo@417: 
ingo@417:     public RangeWithValues() {
ingo@417:     }
ingo@417: 
ingo@417:     public RangeWithValues(double lower, double upper, double[] values) {
sascha@3744:         super(lower, upper);
ingo@417:         this.values = values;
ingo@417:     }
ingo@417: 
felix@4331: 
felix@4331:     /** Returns the values. */
ingo@417:     public double[] getValues() {
ingo@417:         return values;
ingo@417:     }
sascha@3776: 
sascha@3776:     @Override
sascha@3776:     public String toString() {
sascha@3776:         return new StringBuilder("start=").append(start)
sascha@3776:             .append(" end=" ).append(end)
sascha@3776:             .append(" values=[").append(Arrays.toString(values)).append(']')
sascha@3776:             .toString();
sascha@3776:     }
ingo@417: }
ingo@417: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :