Generated from model's revision 1.41, branch HEAD
Name | Type | Comment
|
---|---|---|
Key
| ||
sourceParameterId | int |
|
sourceId | int |
|
timeInterval | ArrayTimeInterval |
|
Value (Mandarory)
| ||
numFreq | int |
|
numStokes | int |
|
numDep | int |
|
stokesParameter | StokesParameter[] | numStokes
|
flux | Flux[][] | numFreq, numStokes
|
frequency | Frequency[] | numFreq
|
frequencyInterval | Frequency[] | numFreq
|
fluxErr | Flux[][] | numFreq, numStokes
|
Value (Optional)
| ||
size | Angle[][] | numFreq, 2
|
positionAngle | Angle[] | numFreq
|
sizeErr | Angle[][] | numFreq, 2
|
positionAngleErr | Angle[] | numFreq
|
depSourceParameterId | int[] | numDep
|
Public Member Functions | |
String[] | getAttributesNames () |
Returns the names of the attributes of the rows stored in that table. | |
ASDM | getContainer () |
Return the container to which this table belongs. | |
int | size () |
Return the number of rows in the table. | |
String | getName () |
Return the name of this table. | |
String | toString () |
Returns "SourceParameterTable" followed by the current size of the table between parenthesis. | |
SourceParameterRow | newRow () |
Create a new row with default values . | |
SourceParameterRow | add (SourceParameterRow x) |
Append a row to a SourceParameterTable which has simply 1) an autoincrementable attribute (sourceParameterId) 2) a temporal attribute (timeInterval) in its key section. | |
SourceParameterRow | newRow (int sourceId, ArrayTimeInterval timeInterval, int numFreq, int numStokes, int numDep, StokesParameter[] stokesParameter, Flux[][] flux, Frequency[] frequency, Frequency[] frequencyInterval, Flux[][] fluxErr) |
Create a new row initialized to the specified values. | |
SourceParameterRow | newRow (SourceParameterRow row) |
Create a new row using a copy constructor mechanism. | |
SourceParameterRow[] | get () |
Get all rows. | |
SourceParameterRow | getRowByKey (int sourceParameterId, int sourceId, ArrayTimeInterval timeInterval) |
Returns a SourceParameterRow given a key. | |
SourceParameterRow[] | getRowBySourceParameterId (int sourceParameterId) |
Returns an array rows whose key element sourceParameterId is equal to the parameter sourceParameterId. | |
SourceParameterRow | lookup (int sourceId, ArrayTimeInterval timeInterval, int numFreq, int numStokes, int numDep, StokesParameter[] stokesParameter, Flux[][] flux, Frequency[] frequency, Frequency[] frequencyInterval, Flux[][] fluxErr) |
Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method. | |
ASDMRow[] | getRows () |
Returns the rows of an ASDMTable as an array of ASDMRow. | |
SourceParameterTableIDL | toIDL () |
Convert this table into a SourceParameterTableIDL CORBA structure. | |
void | fromIDL (SourceParameterTableIDL x) throws DuplicateKey,ConversionException, UniquenessViolationException |
Populate this table from the content of a SourceParameterTableIDL Corba structure. | |
byte[] | toFITS () throws ConversionException |
To be implemented. | |
void | fromFITS (byte[] fits) throws ConversionException |
To be implemented. | |
String | toVOTable () throws ConversionException |
To be implemented. | |
void | fromVOTable (String vo) throws ConversionException |
To be implemented. | |
String | toXML () throws ConversionException |
Translate this table to an XML representation conform to the schema defined for SourceParameter (SourceParameterTable.xsd). | |
void | fromXML (String xmlDoc) throws ConversionException |
Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a SourceParameter (SourceParameterTable.xsd). | |
byte[] | toMIME () throws ConversionException |
Serialize this into a stream of bytes and encapsulates that stream into a MIME message. | |
void | toFile (String directory) throws ConversionException |
Stores a representation (binary or XML) of this table into a file. | |
void | setFromFile (String directory) throws ConversionException |
Reads and parses a file containing a representation of a SourceParameterTable as those produced by the toFile method. | |
Entity | getEntity () |
Returns the table's entity. | |
void | setEntity (Entity e) |
Set the table's entity. | |
void | fromArchive (Archiver ar, String UID) throws ConversionException, ArchiverException |
Static Public Member Functions | |
static String[] | getKeyName () |
Return the list of field names that make up key key as an array of strings. | |
Package Functions | |
String | Key (int sourceId) |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character. | |
boolean | inKey (String s) |
SourceParameterTable (ASDM container) | |
Create a SourceParameterTable. | |
void | setFromMIME (byte[] mimeMsg) throws ConversionException |
Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization. | |
String | toArchive (Archiver ar) throws ConversionException, ArchiverException |
Store this table into the archive. |
alma.asdm.SourceParameterTable.SourceParameterTable | ( | ASDM | container | ) | [package] |
Create a SourceParameterTable.
This constructor has package access because only the container can create tables. All tables must know the container to which they belong.
container | The container to which this table belongs. |
String [] alma.asdm.SourceParameterTable.getAttributesNames | ( | ) | [virtual] |
Returns the names of the attributes of the rows stored in that table.
Implements alma.asdm.ASDMTable.
ASDM alma.asdm.SourceParameterTable.getContainer | ( | ) |
String alma.asdm.SourceParameterTable.toString | ( | ) |
Returns "SourceParameterTable" followed by the current size of the table between parenthesis.
Example : SpectralWindowTable(12)
SourceParameterRow alma.asdm.SourceParameterTable.newRow | ( | ) |
SourceParameterRow alma.asdm.SourceParameterTable.add | ( | SourceParameterRow | x | ) |
Append a row to a SourceParameterTable which has simply 1) an autoincrementable attribute (sourceParameterId) 2) a temporal attribute (timeInterval) in its key section.
3) other attributes in the key section (defining a so called context). If there is already a row in the table whose key section non including is equal to x's one and whose value section is equal to x's one then return this row, otherwise add x to the collection of rows.
SourceParameterRow alma.asdm.SourceParameterTable.newRow | ( | int | sourceId, | |
ArrayTimeInterval | timeInterval, | |||
int | numFreq, | |||
int | numStokes, | |||
int | numDep, | |||
StokesParameter[] | stokesParameter, | |||
Flux | flux[][], | |||
Frequency[] | frequency, | |||
Frequency[] | frequencyInterval, | |||
Flux | fluxErr[][] | |||
) |
Create a new row initialized to the specified values.
(the autoincrementable attribute if any is not in the parameter list)
sourceId. | ||
timeInterval. | ||
numFreq. | ||
numStokes. | ||
numDep. | ||
stokesParameter. | ||
flux. | ||
frequency. | ||
frequencyInterval. | ||
fluxErr. |
SourceParameterRow alma.asdm.SourceParameterTable.newRow | ( | SourceParameterRow | row | ) |
Create a new row using a copy constructor mechanism.
The method creates a new SourceParameterRow owned by this. Each attribute of the created row is a (deep) copy of the corresponding attribute of row. The method does not add the created row to this, its simply parents it to this, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a new SourceParameterRow with default values for its attributes.
row | the row which is to be copied. |
SourceParameterRow [] alma.asdm.SourceParameterTable.get | ( | ) |
SourceParameterRow alma.asdm.SourceParameterTable.getRowByKey | ( | int | sourceParameterId, | |
int | sourceId, | |||
ArrayTimeInterval | timeInterval | |||
) |
Returns a SourceParameterRow given a key.
SourceParameterRow [] alma.asdm.SourceParameterTable.getRowBySourceParameterId | ( | int | sourceParameterId | ) |
Returns an array rows whose key element sourceParameterId is equal to the parameter sourceParameterId.
sourceParameterId | int contains the value of the autoincrementable attribute that is looked up in the table. |
SourceParameterRow alma.asdm.SourceParameterTable.lookup | ( | int | sourceId, | |
ArrayTimeInterval | timeInterval, | |||
int | numFreq, | |||
int | numStokes, | |||
int | numDep, | |||
StokesParameter[] | stokesParameter, | |||
Flux | flux[][], | |||
Frequency[] | frequency, | |||
Frequency[] | frequencyInterval, | |||
Flux | fluxErr[][] | |||
) |
Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method.
sourceId. | ||
timeInterval. | ||
numFreq. | ||
numStokes. | ||
numDep. | ||
stokesParameter. | ||
flux. | ||
frequency. | ||
frequencyInterval. | ||
fluxErr. |
ASDMRow [] alma.asdm.SourceParameterTable.getRows | ( | ) | [virtual] |
Returns the rows of an ASDMTable as an array of ASDMRow.
Implements alma.asdm.ASDMTable.
SourceParameterTableIDL alma.asdm.SourceParameterTable.toIDL | ( | ) |
Convert this table into a SourceParameterTableIDL CORBA structure.
void alma.asdm.SourceParameterTable.fromIDL | ( | SourceParameterTableIDL | x | ) | throws DuplicateKey,ConversionException, UniquenessViolationException |
Populate this table from the content of a SourceParameterTableIDL Corba structure.
DuplicateKey | Thrown if the method tries to add a row having a key that is already in the table. | |
ConversionException |
String alma.asdm.SourceParameterTable.toXML | ( | ) | throws ConversionException |
Translate this table to an XML representation conform to the schema defined for SourceParameter (SourceParameterTable.xsd).
Implements alma.asdm.Representable.
void alma.asdm.SourceParameterTable.fromXML | ( | String | xmlDoc | ) | throws ConversionException |
Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a SourceParameter (SourceParameterTable.xsd).
ConversionException |
Implements alma.asdm.Representable.
byte [] alma.asdm.SourceParameterTable.toMIME | ( | ) | throws ConversionException |
Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
void alma.asdm.SourceParameterTable.setFromMIME | ( | byte[] | mimeMsg | ) | throws ConversionException [package] |
Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization.
mimeMsg | the string containing the MIME message. |
ConversionException |
void alma.asdm.SourceParameterTable.toFile | ( | String | directory | ) | throws ConversionException |
Stores a representation (binary or XML) of this table into a file.
Depending on the boolean value of its private field fileAsBin a binary serialization of this (fileAsBin==true) will be saved in a file "SourceParameter.bin" or an XML representation (fileAsBin==false) will be saved in a file "SourceParameter.xml". The file is always written in a directory whose name is passed as a parameter.
directory | The name of directory where the file containing the table's representation will be saved. |
ConversionException |
void alma.asdm.SourceParameterTable.setFromFile | ( | String | directory | ) | throws ConversionException |
Reads and parses a file containing a representation of a SourceParameterTable as those produced by the toFile method.
This table is populated with the result of the parsing.
directory | The name of the directory containing the file te be read and parsed. |
ConversionException | If any error occurs while reading the files in the directory or parsing them. |
void alma.asdm.SourceParameterTable.setEntity | ( | Entity | e | ) |
String alma.asdm.SourceParameterTable.toArchive | ( | Archiver | ar | ) | throws ConversionException, ArchiverException [package] |
Store this table into the archive.
ar | the archiver in charge of the archiving. |