1
2
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;
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
36
37
38
39
40
41
42