edu.sdsc.mbt.util
Class DoubleRange

java.lang.Object
  extended byedu.sdsc.mbt.util.DoubleRange
All Implemented Interfaces:
Range, java.io.Serializable

public class DoubleRange
extends java.lang.Object
implements Range, java.io.Serializable

This class implements a container for a range of two double values.

Author:
Oleksandr V. Buzko
See Also:
Serialized Form

Constructor Summary
DoubleRange(double a, double b)
          Constructor initialized with two values
 
Method Summary
 double getEnd()
          Returns the end value.
 double getStart()
          Returns the start value.
 java.lang.Object getUnit()
          Returns a unit that indicates what type of range this is (a Double)
 void setEnd(double end)
          Sets end double value.
 void setStart(double start)
          Sets start value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleRange

public DoubleRange(double a,
                   double b)
Constructor initialized with two values

Parameters:
a - start double value
b - end double value
Method Detail

setStart

public void setStart(double start)
Sets start value.


setEnd

public void setEnd(double end)
Sets end double value.


getStart

public double getStart()
Returns the start value.


getEnd

public double getEnd()
Returns the end value.


getUnit

public java.lang.Object getUnit()
Returns a unit that indicates what type of range this is (a Double)

Specified by:
getUnit in interface Range