|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.Measurement
Manages a measurement list. An instance of this class contains an homogeneous measurement list from one catalogue. Many methods are also devoted to metadata management: field definitions, headers, output formats, and so on.
Field Summary | |
(package private) java.lang.String |
acronym
|
(package private) VotMeasurementField[] |
flds
|
(package private) MeasurementDescription |
mdescr
|
(package private) boolean |
meanValue
|
(package private) java.util.ArrayList |
measurements
|
(package private) VotTable |
mtable
|
(package private) java.lang.String |
name
|
Constructor Summary | |
Measurement(java.lang.String acronym)
Creates a Measurement object. |
Method Summary | |
void |
addMeasurement(java.lang.String measurement)
Adds a measurement at the end of the list. |
void |
addMeasurement(java.lang.String[] fields)
Adds a measurement at the end of the list. |
void |
addMeasurement(java.lang.String[] fields,
int position)
Adds a measurement at a given position. |
void |
addMeasurement(java.lang.String measurement,
int position)
Adds a measurement at a given position. |
java.lang.String |
format(java.lang.String[] fields)
Format the field array and return the measurement as a formatted string |
java.lang.String |
getAcronym()
Gets the catalogue acronym |
java.lang.String |
getMeasurement(int num)
Gets the n-th measurement |
MeasurementDescription |
getMeasurementDescription()
Gets the MeasurementDescription object associated with this measurement |
java.lang.String |
getMeasurementField(int num,
int fnum)
Gets a measurement field. |
java.lang.String |
getMeasurementField(int num,
java.lang.String fldname)
Gets a measurement field. |
java.lang.String[] |
getMeasurementFields(int num)
Returns the array of all the individual fields included in the n-th measurement. |
int |
getMeasurementNumber()
Returns the number of measurements |
java.lang.String |
getName()
Gets the name of the measurement catalogue |
boolean |
isMeanValue()
Checks if there is a mean measurement. |
java.util.Iterator |
iterator()
Returns an iterator on the measurement strings |
void |
setMeanMeasurement()
Sets the first measurement as meanValue |
void |
setMeanMeasurement(java.lang.String measurement)
Sets the mean measurement. |
void |
setMeanMeasurement(java.lang.String[] fields)
Sets the mean measurement. |
void |
setMeasurement(java.lang.String[] fields,
int position)
Sets a measurement at a given position. |
void |
setMeasurement(java.lang.String measurement,
int position)
Sets a measurement at a given position. |
void |
setName(java.lang.String name)
Sets the name of the catalogue |
void |
setVotTable(VotTable votTable)
Sets the votTable for this measurement type. |
java.lang.String[] |
split(java.lang.String measurement)
Split a measurement given as parameter in all its fields |
void |
toXML(VOTable vot)
Outputs all the measurements in XML structure to the given VOTable object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String acronym
java.lang.String name
boolean meanValue
MeasurementDescription mdescr
java.util.ArrayList measurements
VotTable mtable
VotMeasurementField[] flds
Constructor Detail |
public Measurement(java.lang.String acronym) throws SimbadException
acronym
- Name of the catalogue, as it is defined in the parameters
file.
SimbadException
MeasurementDescription
Method Detail |
public void setName(java.lang.String name)
name
- of the catalogue. A full name, more complete than the acronym.public void setVotTable(VotTable votTable)
votTable
- votTable objectpublic void addMeasurement(java.lang.String measurement)
measurement
- Measurement stringpublic void addMeasurement(java.lang.String measurement, int position)
measurement
- Measurement stringposition
- position where this measurement should be addedaddMeasurement(String measurement)
public void addMeasurement(java.lang.String[] fields)
fields
- array of strings containing, in the right order, all the
fields building the measurement.public void addMeasurement(java.lang.String[] fields, int position)
fields
- array of strings containing, in the right order, all the
fields building the measurement.position
- position where this measurement should be addedaddMeasurement(String measurement)
public void setMeasurement(java.lang.String measurement, int position)
measurement
- Measurement stringposition
- position where this measurement should be addedaddMeasurement(String measurement)
public void setMeasurement(java.lang.String[] fields, int position)
fields
- array of strings containing, in the right order, all the
fields building the measurement.position
- position where this measurement should be addedaddMeasurement(String measurement)
public void setMeanMeasurement(java.lang.String measurement)
measurement
- Mean measurement stringpublic void setMeanMeasurement(java.lang.String[] fields)
fields
- array of strings containing, in the right order, all the
fields building the measurement.setMeanMeasurement(String measurement)
public void setMeanMeasurement()
public MeasurementDescription getMeasurementDescription()
public java.lang.String getName()
public java.lang.String getAcronym()
public java.util.Iterator iterator()
public int getMeasurementNumber()
public java.lang.String getMeasurement(int num)
num
- sequential number of the measurement to retrieve
public boolean isMeanValue()
public java.lang.String[] getMeasurementFields(int num)
num
- sequential number of the measurement to retrive
public java.lang.String getMeasurementField(int num, int fnum)
num
- Measurement numberfnum
- Field number
public java.lang.String getMeasurementField(int num, java.lang.String fldname)
num
- Measurement numberfldname
- Name of the field
public java.lang.String[] split(java.lang.String measurement)
measurement
- measurement string
public java.lang.String format(java.lang.String[] fields)
fields
- array of fields. No validity check is made on the array
public void toXML(VOTable vot)
vot
- VOTable object. This object manages the buffer which contains
the XML output.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |