|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.Astrobject
Manages an astronomical object.
Field Summary | |
private static java.util.ArrayList |
attrList
|
private static MagnitudeFilter |
BFilter
|
private BibcodeList |
bibcodelist
|
static int |
BIBCODELIST
|
static int |
CLASS
|
static int |
COOBOX
|
private Coobox |
cooboxnum
|
private CooFrame |
cooframe
|
private Coordinates |
coord
|
static int |
COORD
|
static short |
GALAXY
|
private GalaxyDimension |
galdim
|
static int |
GALDIM
|
private IdList |
idlist
|
static int |
IDLIST
|
private Magnitude |
magB
|
private MagnitudeList |
maglist
|
static int |
MAGLIST
|
static int |
MAGPEC
|
private Magnitude |
magV
|
private SortedHashtable |
measurementlist
|
static int |
MORPHTYPE
|
private MagnitudePecul |
mpecul
|
private MorphologicalType |
mtype
|
int |
nbHasBibRef
|
int |
nbIdent
|
int |
nbMagn
|
int |
nbRef_bib
|
private short |
objclass
|
private Oid |
oid
|
static int |
OID3
|
static int |
OID4
|
(package private) static java.util.HashMap |
oidbibCache
|
private Oid3 |
oldOid
|
private Otype |
otype
|
static int |
OTYPE
|
private static Parameters |
pdata
|
private Parallax |
plx
|
static int |
PLX
|
private ProperMotion |
pm
|
static int |
PM
|
private static Parameters |
pseq
|
private static Parameters |
ptable
|
private RadialVelocity |
rv
|
static int |
RV
|
static int |
RVZ
|
private static java.lang.String |
seqName
|
private java.lang.String |
sesameId
|
private SpectralType |
sptype
|
static int |
SPTYPE
|
static short |
STAR
|
private java.lang.StringBuffer |
strcoord
|
static short |
UNKNOWN
|
private static MagnitudeFilter |
VFilter
|
static int |
Z
|
Constructor Summary | |
Astrobject()
Creates an astronomical object |
Method Summary | |
Astrobject |
add(Bibcode bib)
Adds a bibcode to the object |
Astrobject |
add(Identifier id)
Adds an identifier to the object |
Astrobject |
add(Magnitude mag)
Adds a magnitude to the list |
Astrobject |
add(MagnitudePecul magpec)
Adds magnitude peculiarities to this object |
private static void |
createOidbibCache(SimbadJDBC sjdbc)
|
boolean |
equals(java.lang.Object o)
MOD-BB 22-01-04 Ajout de cette methode |
boolean |
fromParfile(java.io.BufferedReader rdr)
Read an astronomical object data from a Parfile. |
java.lang.Object |
get(int datatype)
Get a particular data from the astronomical object. |
Coordinates |
getCoordinates()
|
IdList |
getIdList()
MOD-BB 18-12-03 Ajout des methodes ci-dessous. |
java.util.Iterator |
getIterator(int datatype)
Returns an iterator for multiple data. |
Magnitude |
getMagB()
|
Magnitude |
getMagV()
|
int |
getNbBibRef()
|
SpectralType |
getSpectralType()
|
int |
insertdb(SimbadJDBC sjdbc)
Inserts an astronomical object in the database |
void |
reset()
Resets an astronomical object. |
private boolean |
sameIdent(java.lang.String id1,
java.lang.String id2)
Decides if two identifiers are the same (comparison without the spaces) |
Astrobject |
set(CooFrame cofr)
Sets the Coordinates Frame object |
Astrobject |
set(Coordinates coo)
Sets coordinates in an astronomical object |
Astrobject |
set(GalaxyDimension gdim)
Sets the galaxy dimension |
Astrobject |
set(MorphologicalType mt)
Sets the morphological type |
Astrobject |
set(Oid oid)
Sets Oid object in an astronomical object |
Astrobject |
set(Oid3 oid)
Sets a Simbad3 oid object in an astronomical object. |
Astrobject |
set(Otype objtype)
Sets Object type |
Astrobject |
set(Parallax plx)
Sets parallax object in an astronomical object |
Astrobject |
set(ProperMotion pm)
Sets proper motions object in an astronomical object |
Astrobject |
set(RadialVelocity rv)
Sets radial velocity/redshift object in an astronomical object |
Astrobject |
set(SpectralType sp)
Sets the spectral type |
Astrobject |
set(java.lang.String datatype,
java.lang.Object data)
Puts a data value in an astronomical object. |
static AstrobjectList |
toAstrobject(java.io.InputStream in)
MOD-BB 01/12/03 Cette methode static permet de creer une liste (AstrobjectList) d'objets astronomiques a partir d'un flux d'entree contenant la representation XML (VOTable) d'objets astronomiques. |
java.lang.String |
toString()
Astronomical object display function (mainly useful for debugging. |
void |
toXML(VOTable vot)
XML output for the astronomical object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int OID4
public static final int OID3
public static final int COOBOX
public static final int OTYPE
public static final int COORD
public static final int PM
public static final int RV
public static final int Z
public static final int RVZ
public static final int PLX
public static final int MAGLIST
public static final int MAGPEC
public static final int SPTYPE
public static final int MORPHTYPE
public static final int GALDIM
public static final int IDLIST
public static final int BIBCODELIST
public static final int CLASS
public static final short UNKNOWN
public static final short STAR
public static final short GALAXY
private Oid oid
private Oid3 oldOid
private Coobox cooboxnum
private CooFrame cooframe
private Otype otype
private short objclass
private java.lang.String sesameId
private java.lang.StringBuffer strcoord
private Coordinates coord
private ProperMotion pm
private RadialVelocity rv
private Parallax plx
private MagnitudeList maglist
private static final MagnitudeFilter BFilter
private static final MagnitudeFilter VFilter
private Magnitude magB
private Magnitude magV
private MagnitudePecul mpecul
private SpectralType sptype
private MorphologicalType mtype
private GalaxyDimension galdim
private IdList idlist
private BibcodeList bibcodelist
private SortedHashtable measurementlist
private static Parameters ptable
private static Parameters pdata
private static Parameters pseq
private static java.util.ArrayList attrList
private static java.lang.String seqName
public int nbIdent
public int nbMagn
public int nbHasBibRef
public int nbRef_bib
static java.util.HashMap oidbibCache
Constructor Detail |
public Astrobject()
Method Detail |
private static void createOidbibCache(SimbadJDBC sjdbc)
public void reset()
public Astrobject set(Oid oid)
oid
- Oid object
public Astrobject set(Oid3 oid)
oid
- Oid3 object
public Astrobject set(CooFrame cofr)
cofr
- coordinates frame definition
public Astrobject set(Otype objtype)
objtype
- Object type
public Astrobject set(Coordinates coo)
coo
- Coordinates object
public Astrobject set(ProperMotion pm)
pm
- proper motions object
public Astrobject set(RadialVelocity rv)
rv
- radial velocity/redshift object
public Astrobject set(Parallax plx)
plx
- parallax object
public Astrobject add(Magnitude mag)
mag
- Magnitude to add to this object
public Astrobject add(MagnitudePecul magpec)
magpec
- Magnitude peculiarities associated with this object
public Astrobject set(SpectralType sp)
sp
- spectral type
public Astrobject set(MorphologicalType mt)
mt
- morphological type
public Astrobject set(GalaxyDimension gdim)
gdim
- galaxy dimension
public Astrobject add(Identifier id)
id
- identifier
public Astrobject add(Bibcode bib)
bib
- bibcode
public Astrobject set(java.lang.String datatype, java.lang.Object data)
OID4 | - | 13224 |
OID3 | - | 1234,12 |
COOBOX | - | 12345 |
datatype
- Type of the datadata
- Data to add to the astronomical object (the actual type
depends on the data
BibcodeException
- Bibcode parsing error
java.text.ParseException
- Various parse exceptionpublic java.lang.Object get(int datatype)
OID4 | Oid | long
OID3 | Oid3 |
COOBOX | Coobox | int
datatype
- Datatype code of the data to get
public java.util.Iterator getIterator(int datatype)
datatype
- must be IDLIST for identifiers, BIBCODELIST for bibcodes
or ? for measurements
public java.lang.String toString()
toString
in interface SimbadObject
public int insertdb(SimbadJDBC sjdbc)
sjdbc
- SimbadDb object
public void toXML(VOTable vot)
toXML
in interface SimbadObject
vot
- VOTable object driving the output.public boolean fromParfile(java.io.BufferedReader rdr)
rdr
- input file.
public static AstrobjectList toAstrobject(java.io.InputStream in)
in
- Flux d'entree contenant la representation XML (VOTable) d'objets astronomiques.
private boolean sameIdent(java.lang.String id1, java.lang.String id2)
id1
- first identifierid2
- second identifier
public IdList getIdList()
public Coordinates getCoordinates()
public Magnitude getMagV()
public Magnitude getMagB()
public SpectralType getSpectralType()
public int getNbBibRef()
public boolean equals(java.lang.Object o)
o
- Objet a comparer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |