asdm::ReceiverTable Class Reference

#include <ReceiverTable.h>

Inherits asdm::Representable.

List of all members.


Detailed Description

The ReceiverTable class is an Alma table.

Generated from model's revision "1.41", branch "HEAD"

Attributes of Receiver
Name Type Comment

Key

receiverId int  

spectralWindowId Tag  

timeInterval ArrayTimeInterval  

Value
(Mandarory)

numLo int  

name string  

frequencyBand ReceiverBand  

freqLo vector<Frequency > numLo

receiverSideband ReceiverSideband  

sidebandLo vector<int > numLo

tDewar Temperature  

stabilityDuration Interval  

stability double  

Value
(Optional)

dewarName string  

stabilityflag bool  


Public Member Functions

ASDMgetContainer () const
unsigned int size ()
string getName () const
Entity getEntity () const
void setEntity (Entity e)
ReceiverRownewRow ()
ReceiverRownewRowEmpty ()
ReceiverRownewRow (Tag spectralWindowId, ArrayTimeInterval timeInterval, int numLo, string name, ReceiverBand frequencyBand, vector< Frequency > freqLo, ReceiverSideband receiverSideband, vector< int > sidebandLo, Temperature tDewar, Interval stabilityDuration, double stability)
ReceiverRownewRowFull (Tag spectralWindowId, ArrayTimeInterval timeInterval, int numLo, string name, ReceiverBand frequencyBand, vector< Frequency > freqLo, ReceiverSideband receiverSideband, vector< int > sidebandLo, Temperature tDewar, Interval stabilityDuration, double stability)
ReceiverRownewRow (ReceiverRow *row)
ReceiverRownewRowCopy (ReceiverRow *row)
ReceiverRowadd (ReceiverRow *x)
vector< ReceiverRow * > get ()
vector< ReceiverRow * > * getByContext (Tag spectralWindowId)
ReceiverRowReceiverTable::getRowByKey (int receiverId, Tag spectralWindowId, ArrayTimeInterval timeInterval)
vector< ReceiverRow * > ReceiverTable::getRowByReceiverId (int)
ReceiverRowlookup (Tag spectralWindowId, ArrayTimeInterval timeInterval, int numLo, string name, ReceiverBand frequencyBand, vector< Frequency > freqLo, ReceiverSideband receiverSideband, vector< int > sidebandLo, Temperature tDewar, Interval stabilityDuration, double stability)
ReceiverTableIDL * toIDL ()
void fromIDL (ReceiverTableIDL x) throw (DuplicateKey,ConversionException)
char * toFITS () const throw (ConversionException)
void fromFITS (char *fits) throw (ConversionException)
string toVOTable () const throw (ConversionException)
void fromVOTable (string vo) throw (ConversionException)
string toXML () throw (ConversionException)
void fromXML (string xmlDoc) throw (ConversionException)
string toMIME ()
void setFromMIME (const string &mimeMsg)
void toFile (string directory)
void setFromFile (const string &directory)

Static Public Member Functions

static vector< string > getKeyName ()

Friends

class asdm::ASDM


Member Function Documentation

static vector<string> asdm::ReceiverTable::getKeyName (  )  [static]

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

Returns:
a vector of string.

ASDM& asdm::ReceiverTable::getContainer (  )  const

Return the container to which this table belongs.

Returns:
the ASDM containing this table.

unsigned int asdm::ReceiverTable::size (  )  [virtual]

Return the number of rows in the table.

Returns:
the number of rows in an unsigned int.

Implements asdm::Representable.

string asdm::ReceiverTable::getName (  )  const [virtual]

Return the name of this table.

Returns:
the name of this table in a string.

Implements asdm::Representable.

Entity asdm::ReceiverTable::getEntity (  )  const [virtual]

Return this table's Entity.

Implements asdm::Representable.

void asdm::ReceiverTable::setEntity ( Entity  e  )  [virtual]

Set this table's Entity.

Parameters:
e An entity.

Implements asdm::Representable.

ReceiverRow* asdm::ReceiverTable::newRow (  ) 

Create a new row with default values.

Returns:
a pointer on a ReceiverRow

ReceiverRow* asdm::ReceiverTable::newRowEmpty (  ) 

Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.

ReceiverRow* asdm::ReceiverTable::newRow ( Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int  numLo,
string  name,
ReceiverBand  frequencyBand,
vector< Frequency freqLo,
ReceiverSideband  receiverSideband,
vector< int >  sidebandLo,
Temperature  tDewar,
Interval  stabilityDuration,
double  stability 
)

Create a new row initialized to the specified values.

Returns:
a pointer on the created and initialized row.
Parameters:
spectralWindowId. 
timeInterval. 
numLo. 
name. 
frequencyBand. 
freqLo. 
receiverSideband. 
sidebandLo. 
tDewar. 
stabilityDuration. 
stability. 

ReceiverRow* asdm::ReceiverTable::newRowFull ( Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int  numLo,
string  name,
ReceiverBand  frequencyBand,
vector< Frequency freqLo,
ReceiverSideband  receiverSideband,
vector< int >  sidebandLo,
Temperature  tDewar,
Interval  stabilityDuration,
double  stability 
)

Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.

ReceiverRow* 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* asdm::ReceiverTable::newRowCopy ( ReceiverRow row  ) 

Has the same definition than the newRow method with the same signature. Provided to facilitate the call from Python, otherwise the newRow method will be preferred.

ReceiverRow* asdm::ReceiverTable::add ( ReceiverRow x  ) 

Add a row. If there table contains a row whose key's fields except² receiverId are equal to x's ones then return a pointer on this row (i.e. no actual insertion is performed) otherwise add x to the table and return x.

Parameters:
x. A pointer on the row to be added.
Returns:
a ReceiverRow pointer.

vector<ReceiverRow *> asdm::ReceiverTable::get (  ) 

Get all rows.

Returns:
Alls rows as a vector of pointers of ReceiverRow. The elements of this vector are stored in the order in which they have been added to the ReceiverTable.

vector<ReceiverRow*>* asdm::ReceiverTable::getByContext ( Tag  spectralWindowId  ) 

Returns all the rows sorted by ascending startTime for a given context. The context is defined by a value of ( spectralWindowId ).

Returns:
a pointer on a vector<ReceiverRow *>. A null returned value means that the table contains no ReceiverRow for the given ( spectralWindowId ).

ReceiverRow* asdm::ReceiverTable::ReceiverTable::getRowByKey ( int  receiverId,
Tag  spectralWindowId,
ArrayTimeInterval  timeInterval 
)

Returns a ReceiverRow* given a key.

Returns:
a pointer to the row having the key whose values are passed as parameters, or 0 if no row exists for that key.
Parameters:
receiverId. 
spectralWindowId. 
timeInterval. 

vector<ReceiverRow *> asdm::ReceiverTable::ReceiverTable::getRowByReceiverId ( int   ) 

Returns a vector of pointers on rows whose key element <<AutoIncrementableAttribute>> receiverId is equal to the parameter <<AutoIncrementableAttribute>> receiverId.

Returns:
a vector of vector <ReceiverRow *>. A returned vector 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.

ReceiverRow* asdm::ReceiverTable::lookup ( Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int  numLo,
string  name,
ReceiverBand  frequencyBand,
vector< Frequency freqLo,
ReceiverSideband  receiverSideband,
vector< 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:
a pointer on this row if any, null otherwise.
Parameters:
spectralWindowId. 
timeInterval. 
numLo. 
name. 
frequencyBand. 
freqLo. 
receiverSideband. 
sidebandLo. 
tDewar. 
stabilityDuration. 
stability. 

ReceiverTableIDL* asdm::ReceiverTable::toIDL (  ) 

Convert this table into a ReceiverTableIDL CORBA structure.

Returns:
a pointer to a ReceiverTableIDL

void asdm::ReceiverTable::fromIDL ( ReceiverTableIDL  x  )  throw (DuplicateKey,ConversionException)

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 

char* asdm::ReceiverTable::toFITS (  )  const throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

void asdm::ReceiverTable::fromFITS ( char *  fits  )  throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

string asdm::ReceiverTable::toVOTable (  )  const throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

void asdm::ReceiverTable::fromVOTable ( string  vo  )  throw (ConversionException) [virtual]

To be implemented

Implements asdm::Representable.

string asdm::ReceiverTable::toXML (  )  throw (ConversionException) [virtual]

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

Returns:
a string containing the XML representation.

Implements asdm::Representable.

void asdm::ReceiverTable::fromXML ( string  xmlDoc  )  throw (ConversionException) [virtual]

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).

Implements asdm::Representable.

string asdm::ReceiverTable::toMIME (  ) 

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

Returns:
a string containing the MIME message.

void asdm::ReceiverTable::setFromMIME ( const string &  mimeMsg  ) 

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 

void asdm::ReceiverTable::toFile ( string  directory  ) 

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.

void asdm::ReceiverTable::setFromFile ( const string &  directory  ) 

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.


The documentation for this class was generated from the following file:
Generated on Thu Nov 29 16:46:50 2007 for ASDM C++ Implementation by  doxygen 1.5.1