asdm::SysPowerRow Class Reference

The SysPowerRow class is a row of a SysPowerTable. More...

#include <SysPowerRow.h>

List of all members.

Public Member Functions

virtual ~SysPowerRow ()
 friend class asdm::TableStreamReader<SysPowerTable, SysPowerRow>;
SysPowerTablegetTable () 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 getNumReceptor () const
 ===> Attribute numReceptor
void setNumReceptor (int numReceptor)
 Set numReceptor with the specified int.
bool isSwitchedPowerDifferenceExists () const
 ===> Attribute switchedPowerDifference, which is optional
vector< float > getSwitchedPowerDifference () const
 Get switchedPowerDifference, which is optional.
void setSwitchedPowerDifference (vector< float > switchedPowerDifference)
 Set switchedPowerDifference with the specified vector<float >.
void clearSwitchedPowerDifference ()
 Mark switchedPowerDifference, which is an optional field, as non-existent.
bool isSwitchedPowerSumExists () const
 ===> Attribute switchedPowerSum, which is optional
vector< float > getSwitchedPowerSum () const
 Get switchedPowerSum, which is optional.
void setSwitchedPowerSum (vector< float > switchedPowerSum)
 Set switchedPowerSum with the specified vector<float >.
void clearSwitchedPowerSum ()
 Mark switchedPowerSum, which is an optional field, as non-existent.
bool isRequantizerGainExists () const
 ===> Attribute requantizerGain, which is optional
vector< float > getRequantizerGain () const
 Get requantizerGain, which is optional.
void setRequantizerGain (vector< float > requantizerGain)
 Set requantizerGain with the specified vector<float >.
void clearRequantizerGain ()
 Mark requantizerGain, 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 SysPower table to a collection of row of Feed table.
bool compareNoAutoInc (Tag antennaId, Tag spectralWindowId, int feedId, ArrayTimeInterval timeInterval, int numReceptor)
 Compare each mandatory attribute except the autoincrementable one of this SysPowerRow with the corresponding parameters and return true if there is a match and false otherwise.
bool compareRequiredValue (int numReceptor)
 Compare each mandatory value (i.e.
bool equalByRequiredValue (SysPowerRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
asdmIDL::SysPowerRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void toIDL (asdmIDL::SysPowerRowIDL &x) const
 Define the content of a SysPowerRowIDL struct from the values found in this row.
void setFromIDL (asdmIDL::SysPowerRowIDL x)
 Fill the values of this row from the IDL struct SysPowerRowIDL.
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.
 SysPowerRow (SysPowerTable &table)
 Create a SysPowerRow.
 SysPowerRow (SysPowerTable &table, SysPowerRow &row)
 Create a SysPowerRow using a copy constructor mechanism.
void antennaIdFromBin (EndianIStream &eis)
void spectralWindowIdFromBin (EndianIStream &eis)
void feedIdFromBin (EndianIStream &eis)
void timeIntervalFromBin (EndianIStream &eis)
void numReceptorFromBin (EndianIStream &eis)
void switchedPowerDifferenceFromBin (EndianIStream &eis)
void switchedPowerSumFromBin (EndianIStream &eis)
void requantizerGainFromBin (EndianIStream &eis)
void antennaIdFromText (const string &s)
void spectralWindowIdFromText (const string &s)
void feedIdFromText (const string &s)
void timeIntervalFromText (const string &s)
void numReceptorFromText (const string &s)
void switchedPowerDifferenceFromText (const string &s)
void switchedPowerSumFromText (const string &s)
void requantizerGainFromText (const string &s)
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream.

Private Attributes

SysPowerTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
int numReceptor
 ===> Attribute numReceptor
bool switchedPowerDifferenceExists
 ===> Attribute switchedPowerDifference, which is optional
vector< float > switchedPowerDifference
bool switchedPowerSumExists
 ===> Attribute switchedPowerSum, which is optional
vector< float > switchedPowerSum
bool requantizerGainExists
 ===> Attribute requantizerGain, which is optional
vector< float > requantizerGain
int feedId
 ===> Attribute feedId
Tag spectralWindowId
 ===> Attribute spectralWindowId
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
SysPowerAttributeFromBin
fromBinMethods
*text deserialization material
std::map< std::string,
SysPowerAttributeFromText
fromTextMethods

Friends

class asdm::SysPowerTable
class asdm::RowTransformer< SysPowerRow >

Detailed Description

The SysPowerRow class is a row of a SysPowerTable.

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

Definition at line 109 of file SysPowerRow.h.


Constructor & Destructor Documentation

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

friend class asdm::TableStreamReader<SysPowerTable, SysPowerRow>;

asdm::SysPowerRow::SysPowerRow ( SysPowerTable table  )  [private]

Create a SysPowerRow.

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::SysPowerRow::SysPowerRow ( SysPowerTable table,
SysPowerRow row 
) [private]

Create a SysPowerRow using a copy constructor mechanism.

Given a SysPowerRow row and a SysPowerTable table, the method creates a new SysPowerRow 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::SysPowerRow::antennaIdFromBin ( EndianIStream eis  )  [private]
void asdm::SysPowerRow::antennaIdFromText ( const string &  s  )  [private]
void asdm::SysPowerRow::clearRequantizerGain (  ) 

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

void asdm::SysPowerRow::clearSwitchedPowerDifference (  ) 

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

void asdm::SysPowerRow::clearSwitchedPowerSum (  ) 

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

bool asdm::SysPowerRow::compareNoAutoInc ( Tag  antennaId,
Tag  spectralWindowId,
int  feedId,
ArrayTimeInterval  timeInterval,
int  numReceptor 
)

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

Parameters:
antennaId 
spectralWindowId 
feedId 
timeInterval 
numReceptor 
bool asdm::SysPowerRow::compareRequiredValue ( int  numReceptor  ) 

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 
bool asdm::SysPowerRow::equalByRequiredValue ( SysPowerRow 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 SysPowerRow whose required attributes of the value part will be compared with those of this.
Returns:
a boolean.
void asdm::SysPowerRow::feedIdFromBin ( EndianIStream eis  )  [private]
void asdm::SysPowerRow::feedIdFromText ( const string &  s  )  [private]
Links* AntennaRow* asdm::SysPowerRow::getAntennaUsingAntennaId (  ) 

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

Returns:
a AntennaRow*
int asdm::SysPowerRow::getFeedId (  )  const

===> Attribute feedId

Get feedId.

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

===> Slice link from a row of SysPower 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::SysPowerRow::getNumReceptor (  )  const

===> Attribute numReceptor

Get numReceptor.

Returns:
numReceptor as int
vector<float > asdm::SysPowerRow::getRequantizerGain (  )  const

Get requantizerGain, which is optional.

Returns:
requantizerGain as vector<float >
Exceptions:
IllegalAccessException If requantizerGain does not exist.
Tag asdm::SysPowerRow::getSpectralWindowId (  )  const

===> Attribute spectralWindowId

Get spectralWindowId.

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

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

Returns:
a SpectralWindowRow*
vector<float > asdm::SysPowerRow::getSwitchedPowerDifference (  )  const

Get switchedPowerDifference, which is optional.

Returns:
switchedPowerDifference as vector<float >
Exceptions:
IllegalAccessException If switchedPowerDifference does not exist.
vector<float > asdm::SysPowerRow::getSwitchedPowerSum (  )  const

Get switchedPowerSum, which is optional.

Returns:
switchedPowerSum as vector<float >
Exceptions:
IllegalAccessException If switchedPowerSum does not exist.
SysPowerTable& asdm::SysPowerRow::getTable (  )  const

Return the table to which this row belongs.

void asdm::SysPowerRow::isAdded ( bool  added  )  [private]

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

bool asdm::SysPowerRow::isAdded (  )  const

Has this row been added to its table ?

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

===> Attribute requantizerGain, which is optional

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

Returns:
true if and only if the requantizerGain attribute exists.
bool asdm::SysPowerRow::isSwitchedPowerDifferenceExists (  )  const

===> Attribute switchedPowerDifference, which is optional

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

Returns:
true if and only if the switchedPowerDifference attribute exists.
bool asdm::SysPowerRow::isSwitchedPowerSumExists (  )  const

===> Attribute switchedPowerSum, which is optional

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

Returns:
true if and only if the switchedPowerSum attribute exists.
void asdm::SysPowerRow::numReceptorFromBin ( EndianIStream eis  )  [private]
void asdm::SysPowerRow::numReceptorFromText ( const string &  s  )  [private]
void asdm::SysPowerRow::requantizerGainFromBin ( EndianIStream eis  )  [private]
void asdm::SysPowerRow::requantizerGainFromText ( const string &  s  )  [private]
void asdm::SysPowerRow::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::SysPowerRow::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::SysPowerRow::setFromIDL ( asdmIDL::SysPowerRowIDL  x  ) 

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

Parameters:
x The IDL struct containing the values used to fill this row.
Exceptions:
ConversionException 
void asdm::SysPowerRow::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::SysPowerRow::setNumReceptor ( int  numReceptor  ) 

Set numReceptor with the specified int.

Parameters:
numReceptor The int value to which numReceptor is to be set.
void asdm::SysPowerRow::setRequantizerGain ( vector< float >  requantizerGain  ) 

Set requantizerGain with the specified vector<float >.

Parameters:
requantizerGain The vector<float > value to which requantizerGain is to be set.
void asdm::SysPowerRow::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::SysPowerRow::setSwitchedPowerDifference ( vector< float >  switchedPowerDifference  ) 

Set switchedPowerDifference with the specified vector<float >.

Parameters:
switchedPowerDifference The vector<float > value to which switchedPowerDifference is to be set.
void asdm::SysPowerRow::setSwitchedPowerSum ( vector< float >  switchedPowerSum  ) 

Set switchedPowerSum with the specified vector<float >.

Parameters:
switchedPowerSum The vector<float > value to which switchedPowerSum is to be set.
void asdm::SysPowerRow::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::SysPowerRow::spectralWindowIdFromBin ( EndianIStream eis  )  [private]
void asdm::SysPowerRow::spectralWindowIdFromText ( const string &  s  )  [private]
void asdm::SysPowerRow::switchedPowerDifferenceFromBin ( EndianIStream eis  )  [private]
void asdm::SysPowerRow::switchedPowerDifferenceFromText ( const string &  s  )  [private]
void asdm::SysPowerRow::switchedPowerSumFromBin ( EndianIStream eis  )  [private]
void asdm::SysPowerRow::switchedPowerSumFromText ( const string &  s  )  [private]
void asdm::SysPowerRow::timeIntervalFromBin ( EndianIStream eis  )  [private]
void asdm::SysPowerRow::timeIntervalFromText ( const string &  s  )  [private]
void asdm::SysPowerRow::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::SysPowerRow::toIDL ( asdmIDL::SysPowerRowIDL &  x  )  const

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

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

Return this row in the form of an IDL struct.

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

Definition at line 111 of file SysPowerRow.h.

friend class asdm::SysPowerTable [friend]

Definition at line 110 of file SysPowerRow.h.


Member Data Documentation

Definition at line 323 of file SysPowerRow.h.

Definition at line 134 of file SysPowerRow.h.

===> Attribute feedId

Definition at line 715 of file SysPowerRow.h.

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

Definition at line 761 of file SysPowerRow.h.

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

Definition at line 777 of file SysPowerRow.h.

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

Definition at line 595 of file SysPowerRow.h.

===> Attribute numReceptor

Definition at line 650 of file SysPowerRow.h.

vector<float > asdm::SysPowerRow::requantizerGain [private]

Definition at line 689 of file SysPowerRow.h.

===> Attribute requantizerGain, which is optional

Definition at line 686 of file SysPowerRow.h.

===> Attribute spectralWindowId

Definition at line 726 of file SysPowerRow.h.

Definition at line 663 of file SysPowerRow.h.

===> Attribute switchedPowerDifference, which is optional

Definition at line 660 of file SysPowerRow.h.

vector<float > asdm::SysPowerRow::switchedPowerSum [private]

Definition at line 676 of file SysPowerRow.h.

===> Attribute switchedPowerSum, which is optional

Definition at line 673 of file SysPowerRow.h.

The table to which this row belongs.

Definition at line 591 of file SysPowerRow.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