net.aerith.misao.pixy
Class VariabilityChecker.Range

java.lang.Object
  |
  +--net.aerith.misao.pixy.VariabilityChecker.Range
Enclosing class:
VariabilityChecker

protected class VariabilityChecker.Range
extends java.lang.Object

The Range represents the range of the magnitude.


Field Summary
protected  XmlMag brightest_mag
          The brightest magnitude.
protected  XmlMag faintest_mag
          The faintest magnitude.
 
Constructor Summary
VariabilityChecker.Range(XmlMag mag)
          Constructs a Range with the magnitude record.
 
Method Summary
 void append(XmlMag mag)
          Appends the magnitude record.
 double getDistanceFrom(VariabilityChecker.Range range)
          Calculates the distance between the two magnitude ranges.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

brightest_mag

protected XmlMag brightest_mag
The brightest magnitude.

faintest_mag

protected XmlMag faintest_mag
The faintest magnitude.
Constructor Detail

VariabilityChecker.Range

public VariabilityChecker.Range(XmlMag mag)
Constructs a Range with the magnitude record.
Parameters:
mag - the magnitude record.
Method Detail

append

public void append(XmlMag mag)
Appends the magnitude record.
Parameters:
mag - the magnitude record.

getDistanceFrom

public double getDistanceFrom(VariabilityChecker.Range range)
Calculates the distance between the two magnitude ranges. It returns 0 if the two ranges overlap.
Parameters:
range - another range.
Returns:
the distance between the two magnitude ranges.