alma.asdm.ReceiverTable Class Reference

Inherits alma.asdm.ASDMTable, and alma.asdm.Representable.

List of all members.


Detailed Description

The ReceiverTable class is an Alma table.

Generated from model's revision 1.46, branch HEAD

Attributes of Receiver
Name Type Comment

Key

receiverId int  

spectralWindowId Tag  

timeInterval ArrayTimeInterval  

Value
(Mandarory)

numLo int  

name String  

frequencyBand ReceiverBand  

freqLo Frequency[] numLo

receiverSideband ReceiverSideband  

sidebandLo int[] numLo

tDewar Temperature  

stabilityDuration Interval  

stability double  

Value
(Optional)

dewarName String  

stabilityflag boolean  


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 "ReceiverTable" followed by the current size of the table between parenthesis.
ReceiverRow newRow ()
 Create a new row with default values .
ReceiverRow add (ReceiverRow x)
 Append a row to a ReceiverTable which has simply 1) an autoincrementable attribute (receiverId) 2) a temporal attribute (timeInterval) in its key section.
ReceiverRow newRow (Tag spectralWindowId, ArrayTimeInterval timeInterval, int numLo, String name, ReceiverBand frequencyBand, Frequency[] freqLo, ReceiverSideband receiverSideband, int[] sidebandLo, Temperature tDewar, Interval stabilityDuration, double stability)
 Create a new row initialized to the specified values.
ReceiverRow newRow (ReceiverRow row)
 Create a new row using a copy constructor mechanism.
ReceiverRow[] get ()
 Get all rows.
ReceiverRow getRowByKey (int receiverId, Tag spectralWindowId, ArrayTimeInterval timeInterval)
 Returns a ReceiverRow given a key.
ReceiverRow[] getRowByReceiverId (int receiverId)
 Returns an array rows whose key element receiverId is equal to the parameter receiverId.
ReceiverRow lookup (Tag spectralWindowId, ArrayTimeInterval timeInterval, int numLo, String name, ReceiverBand frequencyBand, Frequency[] freqLo, ReceiverSideband receiverSideband, int[] sidebandLo, Temperature tDewar, Interval stabilityDuration, double stability)
 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.
ReceiverTableIDL toIDL ()
 Convert this table into a ReceiverTableIDL CORBA structure.
void fromIDL (ReceiverTableIDL x) throws DuplicateKey,ConversionException, UniquenessViolationException
 Populate this table from the content of a ReceiverTableIDL 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 Receiver (ReceiverTable.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 Receiver (ReceiverTable.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 ReceiverTable 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

String[] getKeyName ()
 Return the list of field names that make up key key as an array of strings.

Package Functions

String Key (Tag spectralWindowId)
 Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.
boolean inKey (String s)
 ReceiverTable (ASDM container)
 Create a ReceiverTable.
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.


Constructor & Destructor Documentation

alma.asdm.ReceiverTable.ReceiverTable ASDM  container  )  [package]
 

Create a ReceiverTable.

This constructor has package access because only the container can create tables. All tables must know the container to which they belong.

Parameters:
container The container to which this table belongs.


Member Function Documentation

ReceiverRow alma.asdm.ReceiverTable.add ReceiverRow  x  ) 
 

Append a row to a ReceiverTable which has simply 1) an autoincrementable attribute (receiverId) 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.

void alma.asdm.ReceiverTable.fromIDL ReceiverTableIDL  x  )  throws DuplicateKey,ConversionException, UniquenessViolationException
 

Populate this table from the content of a ReceiverTableIDL Corba structure.

Exceptions:
DuplicateKey Thrown if the method tries to add a row having a key that is already in the table.
ConversionException 

void alma.asdm.ReceiverTable.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 Receiver (ReceiverTable.xsd).

Exceptions:
ConversionException 

Implements alma.asdm.Representable.

ReceiverRow [] alma.asdm.ReceiverTable.get  ) 
 

Get all rows.

Returns:
Alls rows as an array of ReceiverRow

String [] alma.asdm.ReceiverTable.getAttributesNames  )  [virtual]
 

Returns the names of the attributes of the rows stored in that table.

Returns:
the attributes names as an array of String.

Implements alma.asdm.ASDMTable.

ASDM alma.asdm.ReceiverTable.getContainer  ) 
 

Return the container to which this table belongs.

Returns:
a ASDM.

Entity alma.asdm.ReceiverTable.getEntity  ) 
 

Returns the table's entity.

Implements alma.asdm.Representable.

String [] alma.asdm.ReceiverTable.getKeyName  )  [static]
 

Return the list of field names that make up key key as an array of strings.

String alma.asdm.ReceiverTable.getName  )  [virtual]
 

Return the name of this table.

Implements alma.asdm.ASDMTable.

ReceiverRow alma.asdm.ReceiverTable.getRowByKey int  receiverId,
Tag  spectralWindowId,
ArrayTimeInterval  timeInterval
 

Returns a ReceiverRow given a key.

Returns:
the row having the key whose values are passed as parameters, or null if no row exists for that key.

ReceiverRow [] alma.asdm.ReceiverTable.getRowByReceiverId int  receiverId  ) 
 

Returns an array rows whose key element receiverId is equal to the parameter receiverId.

Returns:
an array of ReceiverRow. A returned array of size 0 means that no row has been found.
Parameters:
receiverId int contains the value of the autoincrementable attribute that is looked up in the table.

ASDMRow [] alma.asdm.ReceiverTable.getRows  )  [virtual]
 

Returns the rows of an ASDMTable as an array of ASDMRow.

Returns:
an array of ASDMRow.

Implements alma.asdm.ASDMTable.

String alma.asdm.ReceiverTable.Key Tag  spectralWindowId  )  [package]
 

Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.

ReceiverRow alma.asdm.ReceiverTable.lookup Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int  numLo,
String  name,
ReceiverBand  frequencyBand,
Frequency[]  freqLo,
ReceiverSideband  receiverSideband,
int[]  sidebandLo,
Temperature  tDewar,
Interval  stabilityDuration,
double  stability
 

Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method.

Returns:
this row if any, 0 otherwise.
Parameters:
spectralWindowId. 
timeInterval. 
numLo. 
name. 
frequencyBand. 
freqLo. 
receiverSideband. 
sidebandLo. 
tDewar. 
stabilityDuration. 
stability. 

ReceiverRow alma.asdm.ReceiverTable.newRow ReceiverRow  row  ) 
 

Create a new row using a copy constructor mechanism.

The method creates a new ReceiverRow 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 ReceiverRow with default values for its attributes.

Parameters:
row the row which is to be copied.

ReceiverRow alma.asdm.ReceiverTable.newRow Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int  numLo,
String  name,
ReceiverBand  frequencyBand,
Frequency[]  freqLo,
ReceiverSideband  receiverSideband,
int[]  sidebandLo,
Temperature  tDewar,
Interval  stabilityDuration,
double  stability
 

Create a new row initialized to the specified values.

(the autoincrementable attribute if any is not in the parameter list)

Returns:
the new initialized row.
Parameters:
spectralWindowId. 
timeInterval. 
numLo. 
name. 
frequencyBand. 
freqLo. 
receiverSideband. 
sidebandLo. 
tDewar. 
stabilityDuration. 
stability. 

ReceiverRow alma.asdm.ReceiverTable.newRow  ) 
 

Create a new row with default values .

Returns:
a ReceiverRow

void alma.asdm.ReceiverTable.setEntity Entity  e  ) 
 

Set the table's entity.

Parameters:
e An entity.

Implements alma.asdm.Representable.

void alma.asdm.ReceiverTable.setFromFile String  directory  )  throws ConversionException
 

Reads and parses a file containing a representation of a ReceiverTable as those produced by the toFile method.

This table is populated with the result of the parsing.

Parameters:
directory The name of the directory containing the file te be read and parsed.
Exceptions:
ConversionException If any error occurs while reading the files in the directory or parsing them.

void alma.asdm.ReceiverTable.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.

Parameters:
mimeMsg the string containing the MIME message.
Exceptions:
ConversionException 

int alma.asdm.ReceiverTable.size  )  [virtual]
 

Return the number of rows in the table.

Implements alma.asdm.ASDMTable.

String alma.asdm.ReceiverTable.toArchive Archiver  ar  )  throws ConversionException, ArchiverException [package]
 

Store this table into the archive.

Parameters:
ar the archiver in charge of the archiving.
Returns:
the UID assigned to the archived table.

void alma.asdm.ReceiverTable.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 "Receiver.bin" or an XML representation (fileAsBin==false) will be saved in a file "Receiver.xml". The file is always written in a directory whose name is passed as a parameter.

Parameters:
directory The name of directory where the file containing the table's representation will be saved.
Exceptions:
ConversionException 

ReceiverTableIDL alma.asdm.ReceiverTable.toIDL  ) 
 

Convert this table into a ReceiverTableIDL CORBA structure.

Returns:
a ReceiverTableIDL

byte [] alma.asdm.ReceiverTable.toMIME  )  throws ConversionException
 

Serialize this into a stream of bytes and encapsulates that stream into a MIME message.

Returns:
a string containing the MIME message.

String alma.asdm.ReceiverTable.toString  ) 
 

Returns "ReceiverTable" followed by the current size of the table between parenthesis.

Example : SpectralWindowTable(12)

Returns:
a String.

String alma.asdm.ReceiverTable.toXML  )  throws ConversionException
 

Translate this table to an XML representation conform to the schema defined for Receiver (ReceiverTable.xsd).

Returns:
a string containing the XML representation.

Implements alma.asdm.Representable.


The documentation for this class was generated from the following file:
Generated on Tue Nov 18 17:46:47 2008 for ASDM Java Implementation by doxygen 1.3.8