util
Class Quasar

java.lang.Object
  extended by util.Quasar
All Implemented Interfaces:
Star

public class Quasar
extends Object
implements Star

A data container to hold the quasar instances from the Hewitt and Burbidge catalog 1993ApJS...87..451H


Field Summary
static List<Line> allLines
           
 String altid
           
static int count
           
 String dec
           
 boolean hasEmissionLines
           
 String mag
           
 String name
           
 String ra
           
 String refs
           
 String zem
           
protected  double zemValue
           
static DecimalFormat zFormatter
           
 
Constructor Summary
Quasar()
           
 
Method Summary
protected  void addEmissionLine(String aRow)
          Precondition: must have read zem first
 void addFirstRow(String aFirstRow)
           
 void addMoreRows(String anotherRow)
           
 void addSecondRow(String aSecondRow)
           
 List<Line> getAbsorptionLines()
          Get a list of Line objects representing absorption lines
 List<Line> getEmissionLines()
          Get a list of Line objects representing emission lines
 double getZem()
           
protected  double shift(double wavelength)
          Apply the cosmological redshift of this quasar to convert rest frame wavelength to the original observed frame wavedlength
 String toString()
          Format similar to Veron's one line per quasar table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

zFormatter

public static DecimalFormat zFormatter

count

public static int count

allLines

public static List<Line> allLines

name

public String name

altid

public String altid

ra

public String ra

dec

public String dec

mag

public String mag

zem

public String zem

hasEmissionLines

public boolean hasEmissionLines

zemValue

protected double zemValue

refs

public String refs
Constructor Detail

Quasar

public Quasar()
Method Detail

addFirstRow

public void addFirstRow(String aFirstRow)

addSecondRow

public void addSecondRow(String aSecondRow)

addMoreRows

public void addMoreRows(String anotherRow)

getZem

public double getZem()

addEmissionLine

protected void addEmissionLine(String aRow)
Precondition: must have read zem first


shift

protected double shift(double wavelength)
Apply the cosmological redshift of this quasar to convert rest frame wavelength to the original observed frame wavedlength


toString

public String toString()
Format similar to Veron's one line per quasar table

Overrides:
toString in class Object

getEmissionLines

public List<Line> getEmissionLines()
Description copied from interface: Star
Get a list of Line objects representing emission lines

Specified by:
getEmissionLines in interface Star

getAbsorptionLines

public List<Line> getAbsorptionLines()
Description copied from interface: Star
Get a list of Line objects representing absorption lines

Specified by:
getAbsorptionLines in interface Star