casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
asdm::GainTrackingRow Class Reference

The GainTrackingRow class is a row of a GainTrackingTable. More...

#include <GainTrackingRow.h>

Public Member Functions

virtual ~GainTrackingRow ()
 friend class asdm::TableStreamReader<GainTrackingTable, GainTrackingRow>; More...
 
GainTrackingTablegetTable () const
 Return the table to which this row belongs. More...
 
bool isAdded () const
 Has this row been added to its table ? More...
 
void setTimeInterval (ArrayTimeInterval timeInterval)
 Set timeInterval with the specified ArrayTimeInterval. More...
 
int getNumReceptor () const
 ===> Attribute numReceptor More...
 
void setNumReceptor (int numReceptor)
 Set numReceptor with the specified int. More...
 
std::vector< float > getAttenuator () const
 ===> Attribute attenuator More...
 
void setAttenuator (std::vector< float > attenuator)
 Set attenuator with the specified std::vector<float >. More...
 
std::vector
< PolarizationTypeMod::PolarizationType > 
getPolarizationType () const
 ===> Attribute polarizationType More...
 
void setPolarizationType (std::vector< PolarizationTypeMod::PolarizationType > polarizationType)
 Set polarizationType with the specified std::vector<PolarizationTypeMod::PolarizationType >. More...
 
bool isSamplingLevelExists () const
 ===> Attribute samplingLevel, which is optional More...
 
float getSamplingLevel () const
 Get samplingLevel, which is optional. More...
 
void setSamplingLevel (float samplingLevel)
 Set samplingLevel with the specified float. More...
 
void clearSamplingLevel ()
 Mark samplingLevel, which is an optional field, as non-existent. More...
 
bool isNumAttFreqExists () const
 ===> Attribute numAttFreq, which is optional More...
 
int getNumAttFreq () const
 Get numAttFreq, which is optional. More...
 
void setNumAttFreq (int numAttFreq)
 Set numAttFreq with the specified int. More...
 
void clearNumAttFreq ()
 Mark numAttFreq, which is an optional field, as non-existent. More...
 
bool isAttFreqExists () const
 ===> Attribute attFreq, which is optional More...
 
std::vector< double > getAttFreq () const
 Get attFreq, which is optional. More...
 
void setAttFreq (std::vector< double > attFreq)
 Set attFreq with the specified std::vector<double >. More...
 
void clearAttFreq ()
 Mark attFreq, which is an optional field, as non-existent. More...
 
bool isAttSpectrumExists () const
 ===> Attribute attSpectrum, which is optional More...
 
std::vector< ComplexgetAttSpectrum () const
 Get attSpectrum, which is optional. More...
 
void setAttSpectrum (std::vector< Complex > attSpectrum)
 Set attSpectrum with the specified std::vector<Complex >. More...
 
void clearAttSpectrum ()
 Mark attSpectrum, which is an optional field, as non-existent. More...
 
void setAntennaId (Tag antennaId)
 Set antennaId with the specified Tag. More...
 
int getFeedId () const
 ===> Attribute feedId More...
 
void setFeedId (int feedId)
 Set feedId with the specified int. More...
 
Tag getSpectralWindowId () const
 ===> Attribute spectralWindowId More...
 
void setSpectralWindowId (Tag spectralWindowId)
 Set spectralWindowId with the specified Tag. More...
 
Links *AntennaRowgetAntennaUsingAntennaId ()
 antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId More...
 
SpectralWindowRowgetSpectralWindowUsingSpectralWindowId ()
 spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId More...
 
std::vector< FeedRow * > getFeeds ()
 ===> Slice link from a row of GainTracking table to a collection of row of Feed table. More...
 
bool compareNoAutoInc (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numReceptor, std::vector< float > attenuator, std::vector< PolarizationTypeMod::PolarizationType > polarizationType)
 Compare each mandatory attribute except the autoincrementable one of this GainTrackingRow with the corresponding parameters and return true if there is a match and false otherwise. More...
 
bool compareRequiredValue (int numReceptor, std::vector< float > attenuator, std::vector< PolarizationTypeMod::PolarizationType > polarizationType)
 Compare each mandatory value (i.e. More...
 
bool equalByRequiredValue (GainTrackingRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::GainTrackingRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::GainTrackingRowIDL &x) const
 Define the content of a GainTrackingRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::GainTrackingRowIDL x)
 Fill the values of this row from the IDL struct GainTrackingRowIDL. More...
 
std::string toXML () const
 Return this row in the form of an XML string. More...
 
void setFromXML (std::string rowDoc)
 Fill the values of this row from an XML string that was produced by the toXML() method. More...
 

Public Attributes

Intrinsic Table Attributes
 
Extrinsic Table Attributes
 

Private Member Functions

void isAdded (bool added)
 This method is used by the Table class when this row is added to the table. More...
 
 GainTrackingRow (GainTrackingTable &table)
 Create a GainTrackingRow. More...
 
 GainTrackingRow (GainTrackingTable &table, GainTrackingRow *row)
 Create a GainTrackingRow using a copy constructor mechanism. More...
 
void antennaIdFromBin (EndianIStream &eis)
 
void spectralWindowIdFromBin (EndianIStream &eis)
 
void timeIntervalFromBin (EndianIStream &eis)
 
void feedIdFromBin (EndianIStream &eis)
 
void numReceptorFromBin (EndianIStream &eis)
 
void attenuatorFromBin (EndianIStream &eis)
 
void polarizationTypeFromBin (EndianIStream &eis)
 
void samplingLevelFromBin (EndianIStream &eis)
 
void numAttFreqFromBin (EndianIStream &eis)
 
void attFreqFromBin (EndianIStream &eis)
 
void attSpectrumFromBin (EndianIStream &eis)
 
void antennaIdFromText (const std::string &s)
 
void spectralWindowIdFromText (const std::string &s)
 
void timeIntervalFromText (const std::string &s)
 
void feedIdFromText (const std::string &s)
 
void numReceptorFromText (const std::string &s)
 
void attenuatorFromText (const std::string &s)
 
void polarizationTypeFromText (const std::string &s)
 
void samplingLevelFromText (const std::string &s)
 
void numAttFreqFromText (const std::string &s)
 
void attFreqFromText (const std::string &s)
 
void attSpectrumFromText (const std::string &s)
 
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream. More...
 

Private Attributes

GainTrackingTabletable
 The table to which this row belongs. More...
 
bool hasBeenAdded
 Whether this row has been added to the table or not. More...
 
int numReceptor
 ===> Attribute numReceptor More...
 
std::vector< float > attenuator
 ===> Attribute attenuator More...
 
std::vector
< PolarizationTypeMod::PolarizationType > 
polarizationType
 ===> Attribute polarizationType More...
 
bool samplingLevelExists
 ===> Attribute samplingLevel, which is optional More...
 
float samplingLevel
 
bool numAttFreqExists
 ===> Attribute numAttFreq, which is optional More...
 
int numAttFreq
 
bool attFreqExists
 ===> Attribute attFreq, which is optional More...
 
std::vector< double > attFreq
 
bool attSpectrumExists
 ===> Attribute attSpectrum, which is optional More...
 
std::vector< ComplexattSpectrum
 
int feedId
 ===> Attribute feedId More...
 
Tag spectralWindowId
 ===> Attribute spectralWindowId More...
 
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
GainTrackingAttributeFromBin
fromBinMethods
 
*text deserialization material
std::map< std::string,
GainTrackingAttributeFromText
fromTextMethods
 

Friends

class asdm::GainTrackingTable
 
class asdm::RowTransformer< GainTrackingRow >
 

Detailed Description

The GainTrackingRow class is a row of a GainTrackingTable.

Generated from model's revision "-1", branch ""

Definition at line 121 of file GainTrackingRow.h.

Constructor & Destructor Documentation

virtual asdm::GainTrackingRow::~GainTrackingRow ( )
virtual

friend class asdm::TableStreamReader<GainTrackingTable, GainTrackingRow>;

asdm::GainTrackingRow::GainTrackingRow ( GainTrackingTable table)
private

Create a GainTrackingRow.

This constructor is private because only the table can create rows. All rows know the table to which they belong.

Parameters
tableThe table to which this row belongs.
asdm::GainTrackingRow::GainTrackingRow ( GainTrackingTable table,
GainTrackingRow row 
)
private

Create a GainTrackingRow using a copy constructor mechanism.

Given a GainTrackingRow row and a GainTrackingTable table, the method creates a new GainTrackingRow owned by table. Each attribute of the created row is a copy (deep) of the corresponding attribute of row. The method does not add the created row to its table, its simply parents it to table, 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 row with default values for its attributes.

This constructor is private because only the table can create rows. All rows know the table to which they belong.

Parameters
tableThe table to which this row belongs.
rowThe row which is to be copied.

Member Function Documentation

void asdm::GainTrackingRow::antennaIdFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::antennaIdFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::attenuatorFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::attenuatorFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::attFreqFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::attFreqFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::attSpectrumFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::attSpectrumFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::clearAttFreq ( )

Mark attFreq, which is an optional field, as non-existent.

void asdm::GainTrackingRow::clearAttSpectrum ( )

Mark attSpectrum, which is an optional field, as non-existent.

void asdm::GainTrackingRow::clearNumAttFreq ( )

Mark numAttFreq, which is an optional field, as non-existent.

void asdm::GainTrackingRow::clearSamplingLevel ( )

Mark samplingLevel, which is an optional field, as non-existent.

bool asdm::GainTrackingRow::compareNoAutoInc ( Tag  antennaId,
Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int  feedId,
int  numReceptor,
std::vector< float >  attenuator,
std::vector< PolarizationTypeMod::PolarizationType >  polarizationType 
)

Compare each mandatory attribute except the autoincrementable one of this GainTrackingRow with the corresponding parameters and return true if there is a match and false otherwise.

Parameters
antennaId
spectralWindowId
timeInterval
feedId
numReceptor
attenuator
polarizationType
bool asdm::GainTrackingRow::compareRequiredValue ( int  numReceptor,
std::vector< float >  attenuator,
std::vector< PolarizationTypeMod::PolarizationType >  polarizationType 
)

Compare each mandatory value (i.e.

not in the key) attribute with the corresponding parameters and return true if there is a match and false otherwise.

Parameters
numReceptor
attenuator
polarizationType
bool asdm::GainTrackingRow::equalByRequiredValue ( GainTrackingRow x)

Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.

Parameters
xa pointer on the GainTrackingRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
void asdm::GainTrackingRow::feedIdFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::feedIdFromText ( const std::string &  s)
private
Links* AntennaRow* asdm::GainTrackingRow::getAntennaUsingAntennaId ( )

antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId

Returns
a AntennaRow*
std::vector<float > asdm::GainTrackingRow::getAttenuator ( ) const

===> Attribute attenuator

Get attenuator.

Returns
attenuator as std::vector<float >
std::vector<double > asdm::GainTrackingRow::getAttFreq ( ) const

Get attFreq, which is optional.

Returns
attFreq as std::vector<double >
Exceptions
IllegalAccessExceptionIf attFreq does not exist.
std::vector<Complex > asdm::GainTrackingRow::getAttSpectrum ( ) const

Get attSpectrum, which is optional.

Returns
attSpectrum as std::vector<Complex >
Exceptions
IllegalAccessExceptionIf attSpectrum does not exist.
int asdm::GainTrackingRow::getFeedId ( ) const

===> Attribute feedId

Get feedId.

Returns
feedId as int
std::vector<FeedRow *> asdm::GainTrackingRow::getFeeds ( )

===> Slice link from a row of GainTracking table to a collection of row of Feed table.

Get the collection of row in the Feed table having feedId == this.feedId

Returns
a vector of FeedRow *
int asdm::GainTrackingRow::getNumAttFreq ( ) const

Get numAttFreq, which is optional.

Returns
numAttFreq as int
Exceptions
IllegalAccessExceptionIf numAttFreq does not exist.
int asdm::GainTrackingRow::getNumReceptor ( ) const

===> Attribute numReceptor

Get numReceptor.

Returns
numReceptor as int
std::vector<PolarizationTypeMod::PolarizationType > asdm::GainTrackingRow::getPolarizationType ( ) const

===> Attribute polarizationType

Get polarizationType.

Returns
polarizationType as std::vector<PolarizationTypeMod::PolarizationType >
float asdm::GainTrackingRow::getSamplingLevel ( ) const

Get samplingLevel, which is optional.

Returns
samplingLevel as float
Exceptions
IllegalAccessExceptionIf samplingLevel does not exist.
Tag asdm::GainTrackingRow::getSpectralWindowId ( ) const

===> Attribute spectralWindowId

Get spectralWindowId.

Returns
spectralWindowId as Tag
SpectralWindowRow* asdm::GainTrackingRow::getSpectralWindowUsingSpectralWindowId ( )

spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId

Returns
a SpectralWindowRow*
GainTrackingTable& asdm::GainTrackingRow::getTable ( ) const

Return the table to which this row belongs.

bool asdm::GainTrackingRow::isAdded ( ) const

Has this row been added to its table ?

Returns
true if and only if it has been added.
void asdm::GainTrackingRow::isAdded ( bool  added)
private

This method is used by the Table class when this row is added to the table.

bool asdm::GainTrackingRow::isAttFreqExists ( ) const

===> Attribute attFreq, which is optional

The attribute attFreq is optional. Return true if this attribute exists.

Returns
true if and only if the attFreq attribute exists.
bool asdm::GainTrackingRow::isAttSpectrumExists ( ) const

===> Attribute attSpectrum, which is optional

The attribute attSpectrum is optional. Return true if this attribute exists.

Returns
true if and only if the attSpectrum attribute exists.
bool asdm::GainTrackingRow::isNumAttFreqExists ( ) const

===> Attribute numAttFreq, which is optional

The attribute numAttFreq is optional. Return true if this attribute exists.

Returns
true if and only if the numAttFreq attribute exists.
bool asdm::GainTrackingRow::isSamplingLevelExists ( ) const

===> Attribute samplingLevel, which is optional

The attribute samplingLevel is optional. Return true if this attribute exists.

Returns
true if and only if the samplingLevel attribute exists.
void asdm::GainTrackingRow::numAttFreqFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::numAttFreqFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::numReceptorFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::numReceptorFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::polarizationTypeFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::polarizationTypeFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::samplingLevelFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::samplingLevelFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::setAntennaId ( Tag  antennaId)

Set antennaId with the specified Tag.

Parameters
antennaIdThe Tag value to which antennaId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::GainTrackingRow::setAttenuator ( std::vector< float >  attenuator)

Set attenuator with the specified std::vector<float >.

Parameters
attenuatorThe std::vector<float > value to which attenuator is to be set.
void asdm::GainTrackingRow::setAttFreq ( std::vector< double >  attFreq)

Set attFreq with the specified std::vector<double >.

Parameters
attFreqThe std::vector<double > value to which attFreq is to be set.
void asdm::GainTrackingRow::setAttSpectrum ( std::vector< Complex attSpectrum)

Set attSpectrum with the specified std::vector<Complex >.

Parameters
attSpectrumThe std::vector<Complex > value to which attSpectrum is to be set.
void asdm::GainTrackingRow::setFeedId ( int  feedId)

Set feedId with the specified int.

Parameters
feedIdThe int value to which feedId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::GainTrackingRow::setFromIDL ( asdmIDL::GainTrackingRowIDL  x)

Fill the values of this row from the IDL struct GainTrackingRowIDL.

Parameters
xThe IDL struct containing the values used to fill this row.
Exceptions
ConversionException
void asdm::GainTrackingRow::setFromXML ( std::string  rowDoc)

Fill the values of this row from an XML string that was produced by the toXML() method.

Parameters
rowDocthe XML string being used to set the values of this row.
Exceptions
ConversionException
void asdm::GainTrackingRow::setNumAttFreq ( int  numAttFreq)

Set numAttFreq with the specified int.

Parameters
numAttFreqThe int value to which numAttFreq is to be set.
void asdm::GainTrackingRow::setNumReceptor ( int  numReceptor)

Set numReceptor with the specified int.

Parameters
numReceptorThe int value to which numReceptor is to be set.
void asdm::GainTrackingRow::setPolarizationType ( std::vector< PolarizationTypeMod::PolarizationType >  polarizationType)

Set polarizationType with the specified std::vector<PolarizationTypeMod::PolarizationType >.

Parameters
polarizationTypeThe std::vector<PolarizationTypeMod::PolarizationType > value to which polarizationType is to be set.
void asdm::GainTrackingRow::setSamplingLevel ( float  samplingLevel)

Set samplingLevel with the specified float.

Parameters
samplingLevelThe float value to which samplingLevel is to be set.
void asdm::GainTrackingRow::setSpectralWindowId ( Tag  spectralWindowId)

Set spectralWindowId with the specified Tag.

Parameters
spectralWindowIdThe Tag value to which spectralWindowId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::GainTrackingRow::setTimeInterval ( ArrayTimeInterval  timeInterval)

Set timeInterval with the specified ArrayTimeInterval.

Parameters
timeIntervalThe ArrayTimeInterval value to which timeInterval is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::GainTrackingRow::spectralWindowIdFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::spectralWindowIdFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::timeIntervalFromBin ( EndianIStream eis)
private
void asdm::GainTrackingRow::timeIntervalFromText ( const std::string &  s)
private
void asdm::GainTrackingRow::toBin ( EndianOSStream eoss)
private

Serialize this into a stream of bytes written to an EndianOSStream.

Parameters
eossthe EndianOSStream to be written to
asdmIDL::GainTrackingRowIDL* asdm::GainTrackingRow::toIDL ( ) const

Return this row in the form of an IDL struct.

Returns
The values of this row as a GainTrackingRowIDL struct.
void asdm::GainTrackingRow::toIDL ( asdmIDL::GainTrackingRowIDL &  x) const

Define the content of a GainTrackingRowIDL struct from the values found in this row.

Parameters
xa reference to the GainTrackingRowIDL struct to be set.
std::string asdm::GainTrackingRow::toXML ( ) const

Return this row in the form of an XML string.

Returns
The values of this row as an XML string.

Friends And Related Function Documentation

friend class asdm::GainTrackingTable
friend

Definition at line 122 of file GainTrackingRow.h.

friend class asdm::RowTransformer< GainTrackingRow >
friend

Definition at line 123 of file GainTrackingRow.h.

Member Data Documentation

std::vector<float > asdm::GainTrackingRow::attenuator
private

===> Attribute attenuator

Definition at line 785 of file GainTrackingRow.h.

std::vector<double > asdm::GainTrackingRow::attFreq
private

Definition at line 835 of file GainTrackingRow.h.

bool asdm::GainTrackingRow::attFreqExists
private

===> Attribute attFreq, which is optional

Definition at line 832 of file GainTrackingRow.h.

Extrinsic Table asdm::GainTrackingRow::Attributes

Definition at line 146 of file GainTrackingRow.h.

Extrinsic Table asdm::GainTrackingRow::Attributes

Definition at line 436 of file GainTrackingRow.h.

std::vector<Complex > asdm::GainTrackingRow::attSpectrum
private

Definition at line 848 of file GainTrackingRow.h.

bool asdm::GainTrackingRow::attSpectrumExists
private

===> Attribute attSpectrum, which is optional

Definition at line 845 of file GainTrackingRow.h.

int asdm::GainTrackingRow::feedId
private

===> Attribute feedId

Definition at line 874 of file GainTrackingRow.h.

Links* binary deserialization material from an EndianIStream std::map<std::string, GainTrackingAttributeFromBin> asdm::GainTrackingRow::fromBinMethods
private

Definition at line 920 of file GainTrackingRow.h.

* text deserialization material std::map<std::string, GainTrackingAttributeFromText> asdm::GainTrackingRow::fromTextMethods
private

Definition at line 939 of file GainTrackingRow.h.

bool asdm::GainTrackingRow::hasBeenAdded
private

Whether this row has been added to the table or not.

Definition at line 719 of file GainTrackingRow.h.

int asdm::GainTrackingRow::numAttFreq
private

Definition at line 822 of file GainTrackingRow.h.

bool asdm::GainTrackingRow::numAttFreqExists
private

===> Attribute numAttFreq, which is optional

Definition at line 819 of file GainTrackingRow.h.

int asdm::GainTrackingRow::numReceptor
private

===> Attribute numReceptor

Definition at line 774 of file GainTrackingRow.h.

std::vector<PolarizationTypeMod::PolarizationType > asdm::GainTrackingRow::polarizationType
private

===> Attribute polarizationType

Definition at line 796 of file GainTrackingRow.h.

float asdm::GainTrackingRow::samplingLevel
private

Definition at line 809 of file GainTrackingRow.h.

bool asdm::GainTrackingRow::samplingLevelExists
private

===> Attribute samplingLevel, which is optional

Definition at line 806 of file GainTrackingRow.h.

Tag asdm::GainTrackingRow::spectralWindowId
private

===> Attribute spectralWindowId

Definition at line 885 of file GainTrackingRow.h.

GainTrackingTable& asdm::GainTrackingRow::table
private

The table to which this row belongs.

Definition at line 715 of file GainTrackingRow.h.


The documentation for this class was generated from the following file: