|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.MeasurementDescription
An object of this class contains all information needed to manage a measurement type. These objects are created from the Parameters file describing the measurements
The measurements are defined in a Parameters file.
A [Measurements] section contains general definitions, and each measurement
catalogue is defined in its own section called [mes CATNAME]. Every such
section contains again some general definitions, and the list of the
fields (columns) from this catalogue :
[mes CATNAME] acronym=CAT name=full name of the catalogue description=description of the catalogue header=header to use for displaying the catalogue format=output format fieldN=description of each field to be treated as one column in the catalogueThis description consist of the following information:
first_col-last_col,field_name,field_descr,ucd,unit,datatype,precision,width,arraysizeThe separator is free: it will be the first non decimal digit after the field value. Two characters are forbidden as separator: any kind of space and '-'.
ommited values must be taken in account in the number of separators, but all values absent from the end of a definition can be ommited with their separators.
Comments are written on lines beginning with a '#'. Empty lines are allowed. Example:
[mes MK] # 1 2 3 4 5 6 # 01234567890123456789012345678901234567890123456789012345678901234 # MK |ds/mss Spectral type | reference | # --------------------------------------------------------------------- # MK m| / G2Ibvar |1954ApJS....1..175B| name=MK description=MK classifications in the Morgan-Keenan system and \ the Michigan Catalogues of Two-Dimensional Spectral Types for \ the HD stars (Houk N., 1975, and seq.). field1 = 1-3,ds,dispersive system,UCD,,A,,2,* field2 = 4-7,mss,mss notes,UCD,,A,,3,* field3 = 8-44,Spectral type,MK/MSS spectral type,UCD,,A,36,* field4 = 45-64,Reference,Reference,REFER_BIBCODE,,A,19,*
Field Summary | |
private java.lang.String |
acronym
|
private java.lang.String |
format
|
private java.lang.String |
header
|
private static java.util.Hashtable |
mdlist
|
private VotTable |
measTable
|
private MFormat |
mformat
|
Constructor Summary | |
MeasurementDescription()
|
Method Summary | |
static int |
buildFrom(Parameters pmes)
Creates all the objects from the Parameters object. |
static MeasurementDescription |
get(java.lang.String acronym)
Gets a MeasurementDescription Object for the given catalogue name |
java.lang.String |
getAcronym()
gets the acronym |
static VotMeasurementField |
getField(java.lang.String acronym,
int fieldNumber)
Gets a VotField field object, defined by its rank number, for a given catalogue |
static VotMeasurementField |
getField(java.lang.String acronym,
java.lang.String fieldname)
Gets a VotField field object, defined by its name, for a given catalogue |
java.lang.String |
getHeader()
gets the header string |
VotTable |
getMeasTable()
Gets the measurement table description |
static VotTable |
getMeasTable(java.lang.String acronym)
Gets the measurement table description corresponding to a catalogue |
MFormat |
getMFormat()
gets the compiled format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.Hashtable mdlist
private java.lang.String acronym
private java.lang.String header
private java.lang.String format
private MFormat mformat
private VotTable measTable
Constructor Detail |
public MeasurementDescription()
Method Detail |
public static int buildFrom(Parameters pmes)
pmes
- Parameters object containing the measurement descriptions
public java.lang.String getAcronym()
public java.lang.String getHeader()
public MFormat getMFormat()
cds.simbad.CFormat
public VotTable getMeasTable()
public static VotTable getMeasTable(java.lang.String acronym)
acronym
- catalogue acronym
public static VotMeasurementField getField(java.lang.String acronym, java.lang.String fieldname)
acronym
- catalogue acronymfieldname
- name of the field
public static VotMeasurementField getField(java.lang.String acronym, int fieldNumber)
acronym
- catalogue acronymfieldNumber
- rank number of the field
public static MeasurementDescription get(java.lang.String acronym)
acronym
- Measurement acronym for which the description should be found
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |