util
Class Line

java.lang.Object
  extended by util.Line
All Implemented Interfaces:
Comparable

public class Line
extends Object
implements Comparable

A data container to hold the emission line instances and hold a reference to the source star.


Constructor Summary
Line(Star aSource, double aWavelength)
           
 
Method Summary
 int compareTo(Object aLine)
           
 Star getSource()
           
 double getWavelength()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Line

public Line(Star aSource,
            double aWavelength)
Method Detail

compareTo

public int compareTo(Object aLine)
Specified by:
compareTo in interface Comparable

getSource

public Star getSource()

getWavelength

public double getWavelength()

toString

public String toString()
Overrides:
toString in class Object