//Copyright (c) 2000-2003 San Diego Supercomputer Center (SDSC), //a facility operated by the University of California, San Diego (UCSD) // //Users and possessors of this source code are hereby granted a //nonexclusive, royalty-free copyright and design patent license to //use this code in individual software. License is not granted for //commercial resale, in whole or in part, without prior written //permission from SDSC. This source is provided "AS IS" without express //or implied warranty of any kind. // //For further information, please see: http://mbt.sdsc.edu // package edu.sdsc.mbt.util; import java.io.*; /** * This class implements a container for a range of two double values. * * @author Oleksandr V. Buzko */ public class DoubleRange implements Range, Serializable{ private double start; private double end; /** * Constructor initialized with two values * @param a start double value * @param b end double value */ public DoubleRange(double a, double b){ start = a; end = b; } /** * Sets start value. * @param a double value */ public void setStart (double start){ this.start = start; } /** * Sets end double value. * @param a double value */ public void setEnd (double end){ this.end = end; } /** * Returns the start value. */ public double getStart(){ return start; } /** * Returns the end value. */ public double getEnd(){ return end; } /** * Returns a unit that indicates what type of range this is (a Double) */ public Object getUnit(){ return new Double(0.0); } }