net.aerith.misao.util
Class AsteroidalMagnitudeFormula

java.lang.Object
  |
  +--net.aerith.misao.util.AsteroidalMagnitudeFormula

public class AsteroidalMagnitudeFormula
extends java.lang.Object
implements MagnitudeFormula

The AsteroidalMagnitudeFormula represents a formula to calculate the magnitude of an asteroid.


Field Summary
protected  double G
          The reflection ratio.
protected  double H
          The standard magnitude.
 
Constructor Summary
AsteroidalMagnitudeFormula(double H, double G)
          Constructs an AsteroidalMagnitudeFormula.
 
Method Summary
 double calculate(EphemerisRecord record, Orbit orbit)
          Calculates the magnitude.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

H

protected double H
The standard magnitude.

G

protected double G
The reflection ratio.
Constructor Detail

AsteroidalMagnitudeFormula

public AsteroidalMagnitudeFormula(double H,
                                  double G)
Constructs an AsteroidalMagnitudeFormula.
Parameters:
H - the standard magnitude.
G - the reflection ratio.
Method Detail

calculate

public double calculate(EphemerisRecord record,
                        Orbit orbit)
Calculates the magnitude.
Specified by:
calculate in interface MagnitudeFormula
Parameters:
record - the ephemeris record.
orbit - the orbital elements.