View Javadoc

1   /*
2    * $Id Magnitude.java $
3    *
4    */
5   
6   package org.astrogrid.intensity;
7   
8   import org.astrogrid.tools.util.TypeSafeEnumerator;
9   
10  /***
11   * Holds information about the magnitude of a source.  This is abstract as
12   * there are actually many (?) different kinds of magnitude systems...
13   *
14   * @author M Hill
15   */
16  
17  
18  public abstract class Magnitude extends Intensity
19  {
20     double magnitude;
21     double error;
22     boolean apparent = false; //apparant or absolute?
23     
24     public Magnitude(double givenMag, double givenError, boolean isApparent)
25     {
26        this.magnitude = givenMag;
27        this.error = givenError;
28        this.apparent = isApparent;
29     }
30     
31     public abstract Flux toFlux();
32  }
33  
34  /*
35  $Log: Magnitude.java,v $
36  Revision 1.1.1.1  2003/08/25 18:36:27  mch
37  Reimported to fit It02 source structure
38  
39  Revision 1.1  2003/06/26 19:17:26  mch
40  new classes for handling passbands, etc
41  
42  */