asdm::CalDeviceRow Class Reference

The CalDeviceRow class is a row of a CalDeviceTable. More...

#include <CalDeviceRow.h>

List of all members.

Public Member Functions

virtual ~CalDeviceRow ()
 friend class asdm::TableStreamReader<CalDeviceTable, CalDeviceRow>;
CalDeviceTablegetTable () const
 Return the table to which this row belongs.
bool isAdded () const
 Has this row been added to its table ?
void setTimeInterval (ArrayTimeInterval timeInterval)
 Set timeInterval with the specified ArrayTimeInterval.
int getNumCalload () const
 ===> Attribute numCalload
void setNumCalload (int numCalload)
 Set numCalload with the specified int.
vector
< CalibrationDeviceMod::CalibrationDevice > 
getCalLoadNames () const
 ===> Attribute calLoadNames
void setCalLoadNames (vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames)
 Set calLoadNames with the specified vector<CalibrationDeviceMod::CalibrationDevice >.
bool isNumReceptorExists () const
 ===> Attribute numReceptor, which is optional
int getNumReceptor () const
 Get numReceptor, which is optional.
void setNumReceptor (int numReceptor)
 Set numReceptor with the specified int.
void clearNumReceptor ()
 Mark numReceptor, which is an optional field, as non-existent.
bool isCalEffExists () const
 ===> Attribute calEff, which is optional
vector< vector< float > > getCalEff () const
 Get calEff, which is optional.
void setCalEff (vector< vector< float > > calEff)
 Set calEff with the specified vector<vector<float > >.
void clearCalEff ()
 Mark calEff, which is an optional field, as non-existent.
bool isNoiseCalExists () const
 ===> Attribute noiseCal, which is optional
vector< double > getNoiseCal () const
 Get noiseCal, which is optional.
void setNoiseCal (vector< double > noiseCal)
 Set noiseCal with the specified vector<double >.
void clearNoiseCal ()
 Mark noiseCal, which is an optional field, as non-existent.
bool isCoupledNoiseCalExists () const
 ===> Attribute coupledNoiseCal, which is optional
vector< vector< float > > getCoupledNoiseCal () const
 Get coupledNoiseCal, which is optional.
void setCoupledNoiseCal (vector< vector< float > > coupledNoiseCal)
 Set coupledNoiseCal with the specified vector<vector<float > >.
void clearCoupledNoiseCal ()
 Mark coupledNoiseCal, which is an optional field, as non-existent.
bool isTemperatureLoadExists () const
 ===> Attribute temperatureLoad, which is optional
vector< TemperaturegetTemperatureLoad () const
 Get temperatureLoad, which is optional.
void setTemperatureLoad (vector< Temperature > temperatureLoad)
 Set temperatureLoad with the specified vector<Temperature >.
void clearTemperatureLoad ()
 Mark temperatureLoad, which is an optional field, as non-existent.
void setAntennaId (Tag antennaId)
 Set antennaId with the specified Tag.
int getFeedId () const
 ===> Attribute feedId
void setFeedId (int feedId)
 Set feedId with the specified int.
Tag getSpectralWindowId () const
 ===> Attribute spectralWindowId
void setSpectralWindowId (Tag spectralWindowId)
 Set spectralWindowId with the specified Tag.
Links *AntennaRowgetAntennaUsingAntennaId ()
 antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId
SpectralWindowRowgetSpectralWindowUsingSpectralWindowId ()
 spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
vector< FeedRow * > getFeeds ()
 ===> Slice link from a row of CalDevice table to a collection of row of Feed table.
bool compareNoAutoInc (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numCalload, vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames)
 Compare each mandatory attribute except the autoincrementable one of this CalDeviceRow with the corresponding parameters and return true if there is a match and false otherwise.
bool compareRequiredValue (int numCalload, vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames)
 Compare each mandatory value (i.e.
bool equalByRequiredValue (CalDeviceRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
asdmIDL::CalDeviceRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void toIDL (asdmIDL::CalDeviceRowIDL &x) const
 Define the content of a CalDeviceRowIDL struct from the values found in this row.
void setFromIDL (asdmIDL::CalDeviceRowIDL x)
 Fill the values of this row from the IDL struct CalDeviceRowIDL.
std::string toXML () const
 Return this row in the form of an XML string.
void setFromXML (std::string rowDoc)
 Fill the values of this row from an XML string that was produced by the toXML() method.

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.
 CalDeviceRow (CalDeviceTable &table)
 Create a CalDeviceRow.
 CalDeviceRow (CalDeviceTable &table, CalDeviceRow &row)
 Create a CalDeviceRow using a copy constructor mechanism.
void antennaIdFromBin (EndianIStream &eis)
void spectralWindowIdFromBin (EndianIStream &eis)
void timeIntervalFromBin (EndianIStream &eis)
void feedIdFromBin (EndianIStream &eis)
void numCalloadFromBin (EndianIStream &eis)
void calLoadNamesFromBin (EndianIStream &eis)
void numReceptorFromBin (EndianIStream &eis)
void calEffFromBin (EndianIStream &eis)
void noiseCalFromBin (EndianIStream &eis)
void coupledNoiseCalFromBin (EndianIStream &eis)
void temperatureLoadFromBin (EndianIStream &eis)
void antennaIdFromText (const string &s)
void spectralWindowIdFromText (const string &s)
void timeIntervalFromText (const string &s)
void feedIdFromText (const string &s)
void numCalloadFromText (const string &s)
void calLoadNamesFromText (const string &s)
void numReceptorFromText (const string &s)
void calEffFromText (const string &s)
void noiseCalFromText (const string &s)
void coupledNoiseCalFromText (const string &s)
void temperatureLoadFromText (const string &s)
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream.

Private Attributes

CalDeviceTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
int numCalload
 ===> Attribute numCalload
vector
< CalibrationDeviceMod::CalibrationDevice > 
calLoadNames
 ===> Attribute calLoadNames
bool numReceptorExists
 ===> Attribute numReceptor, which is optional
int numReceptor
bool calEffExists
 ===> Attribute calEff, which is optional
vector< vector< float > > calEff
bool noiseCalExists
 ===> Attribute noiseCal, which is optional
vector< double > noiseCal
bool coupledNoiseCalExists
 ===> Attribute coupledNoiseCal, which is optional
vector< vector< float > > coupledNoiseCal
bool temperatureLoadExists
 ===> Attribute temperatureLoad, which is optional
vector< TemperaturetemperatureLoad
int feedId
 ===> Attribute feedId
Tag spectralWindowId
 ===> Attribute spectralWindowId
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
CalDeviceAttributeFromBin
fromBinMethods
*text deserialization material
std::map< std::string,
CalDeviceAttributeFromText
fromTextMethods

Friends

class asdm::CalDeviceTable
class asdm::RowTransformer< CalDeviceRow >

Detailed Description

The CalDeviceRow class is a row of a CalDeviceTable.

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

Definition at line 121 of file CalDeviceRow.h.


Constructor & Destructor Documentation

virtual asdm::CalDeviceRow::~CalDeviceRow (  )  [virtual]

friend class asdm::TableStreamReader<CalDeviceTable, CalDeviceRow>;

asdm::CalDeviceRow::CalDeviceRow ( CalDeviceTable table  )  [private]

Create a CalDeviceRow.

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

Parameters:
table The table to which this row belongs.
asdm::CalDeviceRow::CalDeviceRow ( CalDeviceTable table,
CalDeviceRow row 
) [private]

Create a CalDeviceRow using a copy constructor mechanism.

Given a CalDeviceRow row and a CalDeviceTable table, the method creates a new CalDeviceRow 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:
table The table to which this row belongs.
row The row which is to be copied.

Member Function Documentation

void asdm::CalDeviceRow::antennaIdFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::antennaIdFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::calEffFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::calEffFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::calLoadNamesFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::calLoadNamesFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::clearCalEff (  ) 

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

void asdm::CalDeviceRow::clearCoupledNoiseCal (  ) 

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

void asdm::CalDeviceRow::clearNoiseCal (  ) 

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

void asdm::CalDeviceRow::clearNumReceptor (  ) 

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

void asdm::CalDeviceRow::clearTemperatureLoad (  ) 

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

bool asdm::CalDeviceRow::compareNoAutoInc ( Tag  antennaId,
Tag  spectralWindowId,
ArrayTimeInterval  timeInterval,
int  feedId,
int  numCalload,
vector< CalibrationDeviceMod::CalibrationDevice >  calLoadNames 
)

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

Parameters:
antennaId 
spectralWindowId 
timeInterval 
feedId 
numCalload 
calLoadNames 
bool asdm::CalDeviceRow::compareRequiredValue ( int  numCalload,
vector< CalibrationDeviceMod::CalibrationDevice >  calLoadNames 
)

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:
numCalload 
calLoadNames 
void asdm::CalDeviceRow::coupledNoiseCalFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::coupledNoiseCalFromText ( const string &  s  )  [private]
bool asdm::CalDeviceRow::equalByRequiredValue ( CalDeviceRow x  ) 

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

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

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

Returns:
a AntennaRow*
vector<vector<float > > asdm::CalDeviceRow::getCalEff (  )  const

Get calEff, which is optional.

Returns:
calEff as vector<vector<float > >
Exceptions:
IllegalAccessException If calEff does not exist.
vector<CalibrationDeviceMod::CalibrationDevice > asdm::CalDeviceRow::getCalLoadNames (  )  const

===> Attribute calLoadNames

Get calLoadNames.

Returns:
calLoadNames as vector<CalibrationDeviceMod::CalibrationDevice >
vector<vector<float > > asdm::CalDeviceRow::getCoupledNoiseCal (  )  const

Get coupledNoiseCal, which is optional.

Returns:
coupledNoiseCal as vector<vector<float > >
Exceptions:
IllegalAccessException If coupledNoiseCal does not exist.
int asdm::CalDeviceRow::getFeedId (  )  const

===> Attribute feedId

Get feedId.

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

===> Slice link from a row of CalDevice 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 *
vector<double > asdm::CalDeviceRow::getNoiseCal (  )  const

Get noiseCal, which is optional.

Returns:
noiseCal as vector<double >
Exceptions:
IllegalAccessException If noiseCal does not exist.
int asdm::CalDeviceRow::getNumCalload (  )  const

===> Attribute numCalload

Get numCalload.

Returns:
numCalload as int
int asdm::CalDeviceRow::getNumReceptor (  )  const

Get numReceptor, which is optional.

Returns:
numReceptor as int
Exceptions:
IllegalAccessException If numReceptor does not exist.
Tag asdm::CalDeviceRow::getSpectralWindowId (  )  const

===> Attribute spectralWindowId

Get spectralWindowId.

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

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

Returns:
a SpectralWindowRow*
CalDeviceTable& asdm::CalDeviceRow::getTable (  )  const

Return the table to which this row belongs.

vector<Temperature > asdm::CalDeviceRow::getTemperatureLoad (  )  const

Get temperatureLoad, which is optional.

Returns:
temperatureLoad as vector<Temperature >
Exceptions:
IllegalAccessException If temperatureLoad does not exist.
void asdm::CalDeviceRow::isAdded ( bool  added  )  [private]

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

bool asdm::CalDeviceRow::isAdded (  )  const

Has this row been added to its table ?

Returns:
true if and only if it has been added.
bool asdm::CalDeviceRow::isCalEffExists (  )  const

===> Attribute calEff, which is optional

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

Returns:
true if and only if the calEff attribute exists.
bool asdm::CalDeviceRow::isCoupledNoiseCalExists (  )  const

===> Attribute coupledNoiseCal, which is optional

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

Returns:
true if and only if the coupledNoiseCal attribute exists.
bool asdm::CalDeviceRow::isNoiseCalExists (  )  const

===> Attribute noiseCal, which is optional

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

Returns:
true if and only if the noiseCal attribute exists.
bool asdm::CalDeviceRow::isNumReceptorExists (  )  const

===> Attribute numReceptor, which is optional

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

Returns:
true if and only if the numReceptor attribute exists.
bool asdm::CalDeviceRow::isTemperatureLoadExists (  )  const

===> Attribute temperatureLoad, which is optional

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

Returns:
true if and only if the temperatureLoad attribute exists.
void asdm::CalDeviceRow::noiseCalFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::noiseCalFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::numCalloadFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::numCalloadFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::numReceptorFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::numReceptorFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::setAntennaId ( Tag  antennaId  ) 

Set antennaId with the specified Tag.

Parameters:
antennaId The Tag value to which antennaId is to be set.
Exceptions:
IllegalAccessException If an attempt is made to change this field after is has been added to the table.
void asdm::CalDeviceRow::setCalEff ( vector< vector< float > >  calEff  ) 

Set calEff with the specified vector<vector<float > >.

Parameters:
calEff The vector<vector<float > > value to which calEff is to be set.
void asdm::CalDeviceRow::setCalLoadNames ( vector< CalibrationDeviceMod::CalibrationDevice >  calLoadNames  ) 

Set calLoadNames with the specified vector<CalibrationDeviceMod::CalibrationDevice >.

Parameters:
calLoadNames The vector<CalibrationDeviceMod::CalibrationDevice > value to which calLoadNames is to be set.
void asdm::CalDeviceRow::setCoupledNoiseCal ( vector< vector< float > >  coupledNoiseCal  ) 

Set coupledNoiseCal with the specified vector<vector<float > >.

Parameters:
coupledNoiseCal The vector<vector<float > > value to which coupledNoiseCal is to be set.
void asdm::CalDeviceRow::setFeedId ( int  feedId  ) 

Set feedId with the specified int.

Parameters:
feedId The int value to which feedId is to be set.
Exceptions:
IllegalAccessException If an attempt is made to change this field after is has been added to the table.
void asdm::CalDeviceRow::setFromIDL ( asdmIDL::CalDeviceRowIDL  x  ) 

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

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

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

Parameters:
rowDoc the XML string being used to set the values of this row.
Exceptions:
ConversionException 
void asdm::CalDeviceRow::setNoiseCal ( vector< double >  noiseCal  ) 

Set noiseCal with the specified vector<double >.

Parameters:
noiseCal The vector<double > value to which noiseCal is to be set.
void asdm::CalDeviceRow::setNumCalload ( int  numCalload  ) 

Set numCalload with the specified int.

Parameters:
numCalload The int value to which numCalload is to be set.
void asdm::CalDeviceRow::setNumReceptor ( int  numReceptor  ) 

Set numReceptor with the specified int.

Parameters:
numReceptor The int value to which numReceptor is to be set.
void asdm::CalDeviceRow::setSpectralWindowId ( Tag  spectralWindowId  ) 

Set spectralWindowId with the specified Tag.

Parameters:
spectralWindowId The Tag value to which spectralWindowId is to be set.
Exceptions:
IllegalAccessException If an attempt is made to change this field after is has been added to the table.
void asdm::CalDeviceRow::setTemperatureLoad ( vector< Temperature temperatureLoad  ) 

Set temperatureLoad with the specified vector<Temperature >.

Parameters:
temperatureLoad The vector<Temperature > value to which temperatureLoad is to be set.
void asdm::CalDeviceRow::setTimeInterval ( ArrayTimeInterval  timeInterval  ) 

Set timeInterval with the specified ArrayTimeInterval.

Parameters:
timeInterval The ArrayTimeInterval value to which timeInterval is to be set.
Exceptions:
IllegalAccessException If an attempt is made to change this field after is has been added to the table.
void asdm::CalDeviceRow::spectralWindowIdFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::spectralWindowIdFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::temperatureLoadFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::temperatureLoadFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::timeIntervalFromBin ( EndianIStream eis  )  [private]
void asdm::CalDeviceRow::timeIntervalFromText ( const string &  s  )  [private]
void asdm::CalDeviceRow::toBin ( EndianOSStream eoss  )  [private]

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

Parameters:
eoss the EndianOSStream to be written to
void asdm::CalDeviceRow::toIDL ( asdmIDL::CalDeviceRowIDL &  x  )  const

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

Parameters:
x a reference to the CalDeviceRowIDL struct to be set.
asdmIDL::CalDeviceRowIDL* asdm::CalDeviceRow::toIDL (  )  const

Return this row in the form of an IDL struct.

Returns:
The values of this row as a CalDeviceRowIDL struct.
std::string asdm::CalDeviceRow::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::CalDeviceTable [friend]

Definition at line 122 of file CalDeviceRow.h.

friend class asdm::RowTransformer< CalDeviceRow > [friend]

Definition at line 123 of file CalDeviceRow.h.


Member Data Documentation

Definition at line 447 of file CalDeviceRow.h.

Definition at line 146 of file CalDeviceRow.h.

vector<vector<float > > asdm::CalDeviceRow::calEff [private]

Definition at line 818 of file CalDeviceRow.h.

===> Attribute calEff, which is optional

Definition at line 815 of file CalDeviceRow.h.

vector<CalibrationDeviceMod::CalibrationDevice > asdm::CalDeviceRow::calLoadNames [private]

===> Attribute calLoadNames

Definition at line 792 of file CalDeviceRow.h.

vector<vector<float > > asdm::CalDeviceRow::coupledNoiseCal [private]

Definition at line 844 of file CalDeviceRow.h.

===> Attribute coupledNoiseCal, which is optional

Definition at line 841 of file CalDeviceRow.h.

===> Attribute feedId

Definition at line 883 of file CalDeviceRow.h.

Links* binary deserialization material from an EndianIStream std::map<std::string, CalDeviceAttributeFromBin> asdm::CalDeviceRow::fromBinMethods [private]

Definition at line 929 of file CalDeviceRow.h.

* text deserialization material std::map<std::string, CalDeviceAttributeFromText> asdm::CalDeviceRow::fromTextMethods [private]

Definition at line 948 of file CalDeviceRow.h.

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

Definition at line 726 of file CalDeviceRow.h.

vector<double > asdm::CalDeviceRow::noiseCal [private]

Definition at line 831 of file CalDeviceRow.h.

===> Attribute noiseCal, which is optional

Definition at line 828 of file CalDeviceRow.h.

===> Attribute numCalload

Definition at line 781 of file CalDeviceRow.h.

Definition at line 805 of file CalDeviceRow.h.

===> Attribute numReceptor, which is optional

Definition at line 802 of file CalDeviceRow.h.

===> Attribute spectralWindowId

Definition at line 894 of file CalDeviceRow.h.

The table to which this row belongs.

Definition at line 722 of file CalDeviceRow.h.

Definition at line 857 of file CalDeviceRow.h.

===> Attribute temperatureLoad, which is optional

Definition at line 854 of file CalDeviceRow.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1