alun.util
Class BasicInterval

java.lang.Object
  extended by alun.util.BasicInterval
All Implemented Interfaces:
Interval

public class BasicInterval
extends java.lang.Object
implements Interval


Constructor Summary
BasicInterval(double lower, double upper)
           
 
Method Summary
 double getLeft()
           
 double getLength()
           
 double getMiddle()
           
 double getRight()
           
 double intersection(Interval i)
           
 boolean intersects(double p)
           
 boolean intersects(Interval i)
           
 void setLeft(double l)
           
 void setLength(double x)
           
 void setMiddle(double x)
           
 void setRight(double r)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicInterval

public BasicInterval(double lower,
                     double upper)
Method Detail

getLength

public double getLength()
Specified by:
getLength in interface Interval

getMiddle

public double getMiddle()
Specified by:
getMiddle in interface Interval

getRight

public double getRight()
Specified by:
getRight in interface Interval

getLeft

public double getLeft()
Specified by:
getLeft in interface Interval

intersects

public boolean intersects(double p)
Specified by:
intersects in interface Interval

intersects

public boolean intersects(Interval i)
Specified by:
intersects in interface Interval

intersection

public double intersection(Interval i)
Specified by:
intersection in interface Interval

setLeft

public void setLeft(double l)
Specified by:
setLeft in interface Interval

setRight

public void setRight(double r)
Specified by:
setRight in interface Interval

setLength

public void setLength(double x)
Specified by:
setLength in interface Interval

setMiddle

public void setMiddle(double x)
Specified by:
setMiddle in interface Interval