cds.simbad
Class MagnitudeFilter

java.lang.Object
  extended bycds.simbad.MagnitudeFilter
All Implemented Interfaces:
java.io.Serializable

public class MagnitudeFilter
extends java.lang.Object
implements java.io.Serializable

Magnitude filter: defines the characteristics of a filter.

The filter definitions are contained in a Parameters file.

Version:
1.0 Sept 2003, 1.1 Jan 2004 Ajout de la methode equals.
Author:
Marc Wenger/CDS
See Also:
Serialized Form

Field Summary
private static java.util.HashMap filterList
           
private  java.lang.String filterName
           
private static Parameters pastro
           
private  float wavelength
           
 
Constructor Summary
MagnitudeFilter(java.lang.String name, float value)
          Filter entry Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          MOD-BB 21-01-04 Ajout de cette methode.
static boolean exists(java.lang.String filtername)
          Checks if a filtername is defined
static MagnitudeFilter getFilter(java.lang.String filtername)
          Returns the MagnitudeFilter object associated with a filter name
 java.lang.String getName()
          Returns the name of the filter
 float getWavelength()
          Returns the wavelength associated with the filter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pastro

private static Parameters pastro

filterList

private static java.util.HashMap filterList

filterName

private java.lang.String filterName

wavelength

private float wavelength
Constructor Detail

MagnitudeFilter

public MagnitudeFilter(java.lang.String name,
                       float value)
Filter entry Constructor.

Parameters:
name - name of the magnitude filter (B,V,R,I,...)
value - wavelength associated with this filter
Method Detail

exists

public static boolean exists(java.lang.String filtername)
Checks if a filtername is defined

Parameters:
filtername - name of the filter
Returns:
true if a filter exists with this name

getFilter

public static MagnitudeFilter getFilter(java.lang.String filtername)
Returns the MagnitudeFilter object associated with a filter name

Parameters:
filtername - name of the filter
Returns:
the MagnitudeFilter object or null

getName

public java.lang.String getName()
Returns the name of the filter

Returns:
the filter name

getWavelength

public float getWavelength()
Returns the wavelength associated with the filter

Returns:
the wavelength value

equals

public boolean equals(java.lang.Object o)
MOD-BB 21-01-04 Ajout de cette methode. Comparaison de MagnitudeFilter.

Parameters:
o - Objet a comparer.
Returns:
Vrai si o est identique a this, faux sinon.