/** Numeric interval -- closed intervals -- [base, base+width]
 */
class Interval {

  private double base;  // low end
  private double width; // interval width
   
  /** Constructor: An Interval has base b and width w */
  public Interval(double b, double w) {
    base= b;
    width= w;
  }
  
  /** =Get right end of this Interval */
  public double getEnd() { return base + width; }
  
  /** =Get base of this Interval */
  public double getBase() { return base; }
  
  /** Set base of this Interval to b */
  public void setBase(double b) { 
    base= b;
  }

  /** Set width of this Interval to w */
  public void setWidth(double w) { width= w; }
   
} //class Interval

