cds.simbad
Class MagnitudePecul

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

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

Magnitude peculiarities object: V[0-4?]D

Version:
1.0, 1.1 Jan 2004 Ajout de la methode equals.
Author:
not attributable
See Also:
Serialized Form

Field Summary
private  boolean mult
           
private  char varampl
           
 
Constructor Summary
MagnitudePecul()
          Empty constructor
MagnitudePecul(boolean mult)
          Constructor with a multiplicity flag. variab. ampl. is '\0'
MagnitudePecul(boolean mult, char varampl)
          Constructor with a variability amplitude char and a multiplicity flag
MagnitudePecul(char varampl)
          Constructor with a variability amplitude.
MagnitudePecul(java.lang.String pec)
          Constructor from a string of format V[0-4?]
 
Method Summary
 boolean equals(java.lang.Object o)
          MOD-BB 21-01-04 Ajout de cette methode.
 boolean getMult()
          returns the multiplicity flag
 char getvarAmplitude()
          returns the variab. amplitude value
 void reset()
          Resets a peculiarity object.
 void set(java.lang.String pec)
          Sets a peculiarity string
 void setMultiplicity(boolean mult)
          Sets the multiplicity flag of magn. peculiarities
 void setVariability(char varampl)
          Sets the variability flag
 java.lang.String toString()
          displays the magnitude peculiarities in a string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mult

private boolean mult

varampl

private char varampl
Constructor Detail

MagnitudePecul

public MagnitudePecul()
Empty constructor


MagnitudePecul

public MagnitudePecul(java.lang.String pec)
Constructor from a string of format V[0-4?]D, DV[0-4?]. D[0-4?] is also accepted, in spite of being not standard

Parameters:
pec - string to analyse

MagnitudePecul

public MagnitudePecul(boolean mult,
                      char varampl)
Constructor with a variability amplitude char and a multiplicity flag

Parameters:
mult - multiplicity flag
varampl - variability amplitude: 0..4 or ? (not checked)

MagnitudePecul

public MagnitudePecul(boolean mult)
Constructor with a multiplicity flag. variab. ampl. is '\0'

Parameters:
mult - multiplicity flag

MagnitudePecul

public MagnitudePecul(char varampl)
Constructor with a variability amplitude. Multiplicity is false

Parameters:
varampl - variability amplitude: 0..4 or ? (not checked)
Method Detail

set

public void set(java.lang.String pec)
Sets a peculiarity string

Parameters:
pec - peculiarity string. Syntax: 'V[0-4]?D'. The string can be partial and each item can be set independently.

setMultiplicity

public void setMultiplicity(boolean mult)
Sets the multiplicity flag of magn. peculiarities

Parameters:
mult - the multiplicity flag

setVariability

public void setVariability(char varampl)
Sets the variability flag

Parameters:
varampl - variability flag (0,1,2,3,4,?)

reset

public void reset()
Resets a peculiarity object.


getMult

public boolean getMult()
returns the multiplicity flag

Returns:
true if the multiplicity flag is set

getvarAmplitude

public char getvarAmplitude()
returns the variab. amplitude value

Returns:
varaib. ampl. value

toString

public java.lang.String toString()
displays the magnitude peculiarities in a string

Returns:
the string in format V[0-4?]D

equals

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

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