cds.simbad
Class GalaxyDimension

java.lang.Object
  extended bycds.util.Nodata
      extended bycds.simbad.BasicData
          extended bycds.simbad.PosData
              extended bycds.simbad.GalaxyDimension
All Implemented Interfaces:
java.io.Serializable

public class GalaxyDimension
extends PosData

Galaxy dimensions object

Version:
1.0 Jun 2002 (MW)

1.1 12 nov 2002 (SJ) : Chgt de type pour majAxis, minAxis, angle et incl + extends PosData, 1.2 Jan 2004 (BB) Ajout de la methode equals.
Author:
Marc Wenger/CDS, Sylvaine Jaehn (Stage UTBM)
See Also:
Serialized Form

Field Summary
private  short angle
           
private  short incl
           
private  FloatPrec majAxis
           
private  FloatPrec minAxis
           
 
Fields inherited from class cds.simbad.PosData
 
Fields inherited from class cds.simbad.BasicData
dataExists
 
Fields inherited from class cds.util.Nodata
NODATA, NODATA_DBL, NODATA_FLT, NODATA_SHT, NODATA_STR
 
Constructor Summary
GalaxyDimension()
          Empty constructor
GalaxyDimension(FloatPrec majAxis, FloatPrec minAxis, short angle, short incl)
          Constructor with initialisation by the four data items making up the galaxy dimensions + error/quality/bibcode
GalaxyDimension(GalaxyDimension gdim)
          Copy constructor
GalaxyDimension(java.lang.String galdim)
          Constructor with initialisation by a string containing a formatted dimension of galaxy.
GalaxyDimension(java.lang.String galdim, ErrorData error, java.lang.String qual, Bibcode bibcode)
          Constructor with initialisation by a string containing a formatted dimension of galaxy + error/quality/bibcode
 
Method Summary
 java.lang.String angleToString()
          Get the angle of a galaxy dimension as a string
 boolean equals(java.lang.Object o)
          MOD-BB 21-01-04 Ajout de cette methode.
private  java.lang.String fill(int n)
           
 short getAngle()
          Get the angle of a galaxy dimension
 short getInclination()
          Get the inclination code of a galaxy dimension
 FloatPrec getMajorAxis()
          Get the major Axis of a galaxy dimension
 FloatPrec getMinorAxis()
          Get the minor Axis of a galaxy dimension
 java.lang.String inclToString()
          Get the inclination code of a galaxy dimension as a string
 java.lang.String majAxisToString()
          Get the major Axis of a galaxy dimension as a string
 java.lang.String minAxisToString()
          Get the minor Axis of a galaxy dimension as a string
 void set(FloatPrec majAxis, FloatPrec minAxis, short angle, short incl, ErrorData error, java.lang.String qual, Bibcode bibcode)
          sets the four data items making up a Galaxy dimention object + error/quality/bibcode
 void set(GalaxyDimension gdim)
          Sets the galaxy dimensions from another GalaxyDimension object
 void set(java.lang.String galdim)
          Sets the value of a galaxy dimenstion object with one string containing a formatted dimension of galaxy.
 void setAngle(java.lang.String angle)
          Positionnement de l'angle
 void setInclination(java.lang.String incl)
          Positionnement de l'inclinaison
 void setMajorAxis(java.lang.String majAxis)
          Positionnement du gd axe
 void setMinorAxis(java.lang.String minAxis)
          Positionnement du petit axe
 java.lang.String toString()
          Returns a String containing the formatted dimension of galaxy data: < 0.75 0.16 123 (7)> <11.27 10.21 75 (4)>
 
Methods inherited from class cds.simbad.PosData
getBibcode, getError, getQuality, set, setBibcode, setBibcode, setError, setQuality
 
Methods inherited from class cds.simbad.BasicData
exists, setExist, setNodata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

majAxis

private FloatPrec majAxis

minAxis

private FloatPrec minAxis

angle

private short angle

incl

private short incl
Constructor Detail

GalaxyDimension

public GalaxyDimension()
Empty constructor


GalaxyDimension

public GalaxyDimension(FloatPrec majAxis,
                       FloatPrec minAxis,
                       short angle,
                       short incl)
Constructor with initialisation by the four data items making up the galaxy dimensions + error/quality/bibcode

Parameters:
majAxis - major axis of the galaxy
minAxis - minor axis of the galaxy
angle - angle
incl - inclination code // * @param error erreur ou ellipse d'erreur // * @param qual qualite // * @param bibcode bibcode

GalaxyDimension

public GalaxyDimension(java.lang.String galdim)
Constructor with initialisation by a string containing a formatted dimension of galaxy. The format is the same as the one used to display this data:
 maj-axis  min-axis  angle  (incl)
 

Parameters:
galdim - Formatted galaxy dimensions.

GalaxyDimension

public GalaxyDimension(GalaxyDimension gdim)
Copy constructor

Parameters:
gdim - GalaxyDimension object to copy

GalaxyDimension

public GalaxyDimension(java.lang.String galdim,
                       ErrorData error,
                       java.lang.String qual,
                       Bibcode bibcode)
Constructor with initialisation by a string containing a formatted dimension of galaxy + error/quality/bibcode

Parameters:
galdim - Formatted galaxy dimensions
error - erreur ou ellipse d'erreur
qual - qualite
bibcode - bibcode
Method Detail

set

public void set(GalaxyDimension gdim)
Sets the galaxy dimensions from another GalaxyDimension object

Parameters:
gdim - GalaxyDimension object to copy

set

public void set(FloatPrec majAxis,
                FloatPrec minAxis,
                short angle,
                short incl,
                ErrorData error,
                java.lang.String qual,
                Bibcode bibcode)
sets the four data items making up a Galaxy dimention object + error/quality/bibcode

Parameters:
majAxis - major axis of the galaxy
minAxis - minor axis of the galaxy
angle - angle
incl - inclination code
error - erreur ou ellipse d'erreur
qual - qualite
bibcode - bibcode

set

public void set(java.lang.String galdim)
Sets the value of a galaxy dimenstion object with one string containing a formatted dimension of galaxy. The format is the same as the one used to display this data:
 maj-axis  min-axis  angle  (incl)
 

Parameters:
galdim - Formatted galaxy dimensions.

setMajorAxis

public void setMajorAxis(java.lang.String majAxis)
Positionnement du gd axe

Parameters:
majAxis - valeur du gd axe

setMinorAxis

public void setMinorAxis(java.lang.String minAxis)
Positionnement du petit axe

Parameters:
minAxis - valeur du petit axe

setAngle

public void setAngle(java.lang.String angle)
Positionnement de l'angle

Parameters:
angle - valeur de l'angle

setInclination

public void setInclination(java.lang.String incl)
Positionnement de l'inclinaison

Parameters:
incl - valeur de l'inclinaison

getMajorAxis

public FloatPrec getMajorAxis()
Get the major Axis of a galaxy dimension

Returns:
the major axis value

majAxisToString

public java.lang.String majAxisToString()
Get the major Axis of a galaxy dimension as a string

Returns:
the major axis value as a string

getMinorAxis

public FloatPrec getMinorAxis()
Get the minor Axis of a galaxy dimension

Returns:
the minor axis value

minAxisToString

public java.lang.String minAxisToString()
Get the minor Axis of a galaxy dimension as a string

Returns:
the minor axis value as a string

getAngle

public short getAngle()
Get the angle of a galaxy dimension

Returns:
the angle value

angleToString

public java.lang.String angleToString()
Get the angle of a galaxy dimension as a string

Returns:
the angle value as a string

getInclination

public short getInclination()
Get the inclination code of a galaxy dimension

Returns:
the inclination code

inclToString

public java.lang.String inclToString()
Get the inclination code of a galaxy dimension as a string

Returns:
the inclination code as a string

fill

private java.lang.String fill(int n)

toString

public java.lang.String toString()
Returns a String containing the formatted dimension of galaxy data:
 < 0.75  0.16 123 (7)>
 <11.27 10.21  75 (4)>
 

Overrides:
toString in class PosData
Returns:
the formatted four values of a dimension of galaxy

equals

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

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