casa  $Rev:20696$
CalBandpassRow.h
Go to the documentation of this file.
00001 
00002 /*
00003  * ALMA - Atacama Large Millimeter Array
00004  * (c) European Southern Observatory, 2002
00005  * (c) Associated Universities Inc., 2002
00006  * Copyright by ESO (in the framework of the ALMA collaboration),
00007  * Copyright by AUI (in the framework of the ALMA collaboration),
00008  * All rights reserved.
00009  * 
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  * 
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY, without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  * 
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00023  * MA 02111-1307  USA
00024  *
00025  * Warning!
00026  *  -------------------------------------------------------------------- 
00027  * | This is generated code!  Do not modify this file.                  |
00028  * | If you do, all changes will be lost when the file is re-generated. |
00029  *  --------------------------------------------------------------------
00030  *
00031  * File CalBandpassRow.h
00032  */
00033  
00034 #ifndef CalBandpassRow_CLASS
00035 #define CalBandpassRow_CLASS
00036 
00037 #include <vector>
00038 #include <string>
00039 #include <set>
00040 
00041 #ifndef WITHOUT_ACS
00042 #include <asdmIDLC.h>
00043 #endif
00044 
00045 
00046 
00047 
00048 
00049 
00050          
00051 #include <ArrayTime.h>
00052         
00053 
00054          
00055 #include <Tag.h>
00056         
00057 
00058          
00059 #include <Frequency.h>
00060         
00061 
00062 
00063 
00064 
00065         
00066 #include "CBasebandName.h"
00067         
00068 
00069         
00070 #include "CNetSideband.h"
00071         
00072 
00073         
00074 #include "CAtmPhaseCorrection.h"
00075         
00076 
00077         
00078 #include "CCalCurveType.h"
00079         
00080 
00081         
00082 #include "CReceiverBand.h"
00083         
00084 
00085         
00086 
00087         
00088 
00089         
00090 
00091         
00092 
00093         
00094 
00095         
00096 
00097         
00098 
00099         
00100 
00101         
00102 #include "CPolarizationType.h"
00103         
00104 
00105         
00106 
00107         
00108 
00109         
00110 
00111         
00112 
00113 
00114 
00115 #include <ConversionException.h>
00116 #include <NoSuchRow.h>
00117 #include <IllegalAccessException.h>
00118 
00119 #include <RowTransformer.h>
00120 //#include <TableStreamReader.h>
00121 
00122 /*\file CalBandpass.h
00123     \brief Generated from model's revision "1.62", branch "HEAD"
00124 */
00125 
00126 namespace asdm {
00127 
00128 //class asdm::CalBandpassTable;
00129 
00130 
00131 // class asdm::CalReductionRow;
00132 class CalReductionRow;
00133 
00134 // class asdm::CalDataRow;
00135 class CalDataRow;
00136         
00137 
00138 class CalBandpassRow;
00139 typedef void (CalBandpassRow::*CalBandpassAttributeFromBin) (EndianIStream& eis);
00140 typedef void (CalBandpassRow::*CalBandpassAttributeFromText) (const string& s);
00141 
00148 class CalBandpassRow {
00149 friend class asdm::CalBandpassTable;
00150 friend class asdm::RowTransformer<CalBandpassRow>;
00151 //friend class asdm::TableStreamReader<CalBandpassTable, CalBandpassRow>;
00152 
00153 public:
00154 
00155         virtual ~CalBandpassRow();
00156 
00160         CalBandpassTable &getTable() const;
00161         
00166         bool isAdded() const;
00167                 
00169         // Intrinsic Table Attributes //
00171         
00172         
00173         // ===> Attribute basebandName
00174         
00175         
00176         
00177 
00178         
00183         BasebandNameMod::BasebandName getBasebandName() const;
00184         
00185  
00186         
00187         
00197         void setBasebandName (BasebandNameMod::BasebandName basebandName);
00198                 
00199         
00200         
00201         
00202 
00203 
00204         
00205         // ===> Attribute sideband
00206         
00207         
00208         
00209 
00210         
00215         NetSidebandMod::NetSideband getSideband() const;
00216         
00217  
00218         
00219         
00229         void setSideband (NetSidebandMod::NetSideband sideband);
00230                 
00231         
00232         
00233         
00234 
00235 
00236         
00237         // ===> Attribute atmPhaseCorrection
00238         
00239         
00240         
00241 
00242         
00247         AtmPhaseCorrectionMod::AtmPhaseCorrection getAtmPhaseCorrection() const;
00248         
00249  
00250         
00251         
00261         void setAtmPhaseCorrection (AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection);
00262                 
00263         
00264         
00265         
00266 
00267 
00268         
00269         // ===> Attribute typeCurve
00270         
00271         
00272         
00273 
00274         
00279         CalCurveTypeMod::CalCurveType getTypeCurve() const;
00280         
00281  
00282         
00283         
00293         void setTypeCurve (CalCurveTypeMod::CalCurveType typeCurve);
00294                 
00295         
00296         
00297         
00298 
00299 
00300         
00301         // ===> Attribute receiverBand
00302         
00303         
00304         
00305 
00306         
00311         ReceiverBandMod::ReceiverBand getReceiverBand() const;
00312         
00313  
00314         
00315         
00325         void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00326                 
00327         
00328         
00329         
00330 
00331 
00332         
00333         // ===> Attribute startValidTime
00334         
00335         
00336         
00337 
00338         
00343         ArrayTime getStartValidTime() const;
00344         
00345  
00346         
00347         
00355         void setStartValidTime (ArrayTime startValidTime);
00356                 
00357         
00358         
00359         
00360 
00361 
00362         
00363         // ===> Attribute endValidTime
00364         
00365         
00366         
00367 
00368         
00373         ArrayTime getEndValidTime() const;
00374         
00375  
00376         
00377         
00385         void setEndValidTime (ArrayTime endValidTime);
00386                 
00387         
00388         
00389         
00390 
00391 
00392         
00393         // ===> Attribute numAntenna
00394         
00395         
00396         
00397 
00398         
00403         int getNumAntenna() const;
00404         
00405  
00406         
00407         
00415         void setNumAntenna (int numAntenna);
00416                 
00417         
00418         
00419         
00420 
00421 
00422         
00423         // ===> Attribute numPoly
00424         
00425         
00426         
00427 
00428         
00433         int getNumPoly() const;
00434         
00435  
00436         
00437         
00445         void setNumPoly (int numPoly);
00446                 
00447         
00448         
00449         
00450 
00451 
00452         
00453         // ===> Attribute numReceptor
00454         
00455         
00456         
00457 
00458         
00463         int getNumReceptor() const;
00464         
00465  
00466         
00467         
00475         void setNumReceptor (int numReceptor);
00476                 
00477         
00478         
00479         
00480 
00481 
00482         
00483         // ===> Attribute antennaNames
00484         
00485         
00486         
00487 
00488         
00493         vector<string > getAntennaNames() const;
00494         
00495  
00496         
00497         
00505         void setAntennaNames (vector<string > antennaNames);
00506                 
00507         
00508         
00509         
00510 
00511 
00512         
00513         // ===> Attribute refAntennaName
00514         
00515         
00516         
00517 
00518         
00523         string getRefAntennaName() const;
00524         
00525  
00526         
00527         
00535         void setRefAntennaName (string refAntennaName);
00536                 
00537         
00538         
00539         
00540 
00541 
00542         
00543         // ===> Attribute freqLimits
00544         
00545         
00546         
00547 
00548         
00553         vector<Frequency > getFreqLimits() const;
00554         
00555  
00556         
00557         
00565         void setFreqLimits (vector<Frequency > freqLimits);
00566                 
00567         
00568         
00569         
00570 
00571 
00572         
00573         // ===> Attribute polarizationTypes
00574         
00575         
00576         
00577 
00578         
00583         vector<PolarizationTypeMod::PolarizationType > getPolarizationTypes() const;
00584         
00585  
00586         
00587         
00595         void setPolarizationTypes (vector<PolarizationTypeMod::PolarizationType > polarizationTypes);
00596                 
00597         
00598         
00599         
00600 
00601 
00602         
00603         // ===> Attribute curve
00604         
00605         
00606         
00607 
00608         
00613         vector<vector<vector<float > > > getCurve() const;
00614         
00615  
00616         
00617         
00625         void setCurve (vector<vector<vector<float > > > curve);
00626                 
00627         
00628         
00629         
00630 
00631 
00632         
00633         // ===> Attribute reducedChiSquared
00634         
00635         
00636         
00637 
00638         
00643         vector<double > getReducedChiSquared() const;
00644         
00645  
00646         
00647         
00655         void setReducedChiSquared (vector<double > reducedChiSquared);
00656                 
00657         
00658         
00659         
00660 
00661 
00662         
00663         // ===> Attribute numBaseline, which is optional
00664         
00665         
00666         
00671         bool isNumBaselineExists() const;
00672         
00673 
00674         
00680         int getNumBaseline() const;
00681         
00682  
00683         
00684         
00691         void setNumBaseline (int numBaseline);
00692                 
00693         
00694         
00695         
00699         void clearNumBaseline ();
00700         
00701 
00702 
00703         
00704         // ===> Attribute rms, which is optional
00705         
00706         
00707         
00712         bool isRmsExists() const;
00713         
00714 
00715         
00721         vector<vector<float > > getRms() const;
00722         
00723  
00724         
00725         
00732         void setRms (vector<vector<float > > rms);
00733                 
00734         
00735         
00736         
00740         void clearRms ();
00741         
00742 
00743 
00745         // Extrinsic Table Attributes //
00747         
00748         
00749         // ===> Attribute calDataId
00750         
00751         
00752         
00753 
00754         
00759         Tag getCalDataId() const;
00760         
00761  
00762         
00763         
00773         void setCalDataId (Tag calDataId);
00774                 
00775         
00776         
00777         
00778 
00779 
00780         
00781         // ===> Attribute calReductionId
00782         
00783         
00784         
00785 
00786         
00791         Tag getCalReductionId() const;
00792         
00793  
00794         
00795         
00805         void setCalReductionId (Tag calReductionId);
00806                 
00807         
00808         
00809         
00810 
00811 
00813         // Links //
00815         
00816         
00817 
00818         
00819                 
00826          CalReductionRow* getCalReductionUsingCalReductionId();
00827          
00828 
00829         
00830 
00831         
00832 
00833         
00834                 
00841          CalDataRow* getCalDataUsingCalDataId();
00842          
00843 
00844         
00845 
00846         
00847         
00848         
00890         bool compareNoAutoInc(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband sideband, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, int numAntenna, int numPoly, int numReceptor, vector<string > antennaNames, string refAntennaName, vector<Frequency > freqLimits, vector<PolarizationTypeMod::PolarizationType > polarizationTypes, vector<vector<vector<float > > > curve, vector<double > reducedChiSquared);
00891         
00892         
00893 
00894         
00922         bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, int numAntenna, int numPoly, int numReceptor, vector<string > antennaNames, string refAntennaName, vector<Frequency > freqLimits, vector<PolarizationTypeMod::PolarizationType > polarizationTypes, vector<vector<vector<float > > > curve, vector<double > reducedChiSquared); 
00923                  
00924         
00933         bool equalByRequiredValue(CalBandpassRow* x) ;
00934         
00935 #ifndef WITHOUT_ACS
00936 
00940         asdmIDL::CalBandpassRowIDL *toIDL() const;
00941 #endif
00942         
00943 #ifndef WITHOUT_ACS
00944 
00949         void setFromIDL (asdmIDL::CalBandpassRowIDL x) ;
00950 #endif
00951         
00956         std::string toXML() const;
00957 
00964         void setFromXML (std::string rowDoc) ;
00965 
00968         // binary-deserialization material from an EndianIStream  //
00970 
00971         std::map<std::string, CalBandpassAttributeFromBin> fromBinMethods;
00972 void basebandNameFromBin( EndianIStream& eis);
00973 void sidebandFromBin( EndianIStream& eis);
00974 void atmPhaseCorrectionFromBin( EndianIStream& eis);
00975 void typeCurveFromBin( EndianIStream& eis);
00976 void receiverBandFromBin( EndianIStream& eis);
00977 void calDataIdFromBin( EndianIStream& eis);
00978 void calReductionIdFromBin( EndianIStream& eis);
00979 void startValidTimeFromBin( EndianIStream& eis);
00980 void endValidTimeFromBin( EndianIStream& eis);
00981 void numAntennaFromBin( EndianIStream& eis);
00982 void numPolyFromBin( EndianIStream& eis);
00983 void numReceptorFromBin( EndianIStream& eis);
00984 void antennaNamesFromBin( EndianIStream& eis);
00985 void refAntennaNameFromBin( EndianIStream& eis);
00986 void freqLimitsFromBin( EndianIStream& eis);
00987 void polarizationTypesFromBin( EndianIStream& eis);
00988 void curveFromBin( EndianIStream& eis);
00989 void reducedChiSquaredFromBin( EndianIStream& eis);
00990 
00991 void numBaselineFromBin( EndianIStream& eis);
00992 void rmsFromBin( EndianIStream& eis);
00993 
00994 
01002          static CalBandpassRow* fromBin(EndianIStream& eis, CalBandpassTable& table, const std::vector<std::string>& attributesSeq);     
01003  
01010          void fromText(const std::string& attributeName, const std::string&  t);
01012 
01013 private:
01017         CalBandpassTable &table;
01021         bool hasBeenAdded;
01022 
01023         // This method is used by the Table class when this row is added to the table.
01024         void isAdded(bool added);
01025 
01026 
01035         CalBandpassRow (CalBandpassTable &table);
01036 
01054          CalBandpassRow (CalBandpassTable &table, CalBandpassRow &row);
01055                 
01057         // Intrinsic Table Attributes //
01059         
01060         
01061         // ===> Attribute basebandName
01062         
01063         
01064 
01065         BasebandNameMod::BasebandName basebandName;
01066 
01067         
01068         
01069         
01070 
01071         
01072         // ===> Attribute sideband
01073         
01074         
01075 
01076         NetSidebandMod::NetSideband sideband;
01077 
01078         
01079         
01080         
01081 
01082         
01083         // ===> Attribute atmPhaseCorrection
01084         
01085         
01086 
01087         AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection;
01088 
01089         
01090         
01091         
01092 
01093         
01094         // ===> Attribute typeCurve
01095         
01096         
01097 
01098         CalCurveTypeMod::CalCurveType typeCurve;
01099 
01100         
01101         
01102         
01103 
01104         
01105         // ===> Attribute receiverBand
01106         
01107         
01108 
01109         ReceiverBandMod::ReceiverBand receiverBand;
01110 
01111         
01112         
01113         
01114 
01115         
01116         // ===> Attribute startValidTime
01117         
01118         
01119 
01120         ArrayTime startValidTime;
01121 
01122         
01123         
01124         
01125 
01126         
01127         // ===> Attribute endValidTime
01128         
01129         
01130 
01131         ArrayTime endValidTime;
01132 
01133         
01134         
01135         
01136 
01137         
01138         // ===> Attribute numAntenna
01139         
01140         
01141 
01142         int numAntenna;
01143 
01144         
01145         
01146         
01147 
01148         
01149         // ===> Attribute numPoly
01150         
01151         
01152 
01153         int numPoly;
01154 
01155         
01156         
01157         
01158 
01159         
01160         // ===> Attribute numReceptor
01161         
01162         
01163 
01164         int numReceptor;
01165 
01166         
01167         
01168         
01169 
01170         
01171         // ===> Attribute antennaNames
01172         
01173         
01174 
01175         vector<string > antennaNames;
01176 
01177         
01178         
01179         
01180 
01181         
01182         // ===> Attribute refAntennaName
01183         
01184         
01185 
01186         string refAntennaName;
01187 
01188         
01189         
01190         
01191 
01192         
01193         // ===> Attribute freqLimits
01194         
01195         
01196 
01197         vector<Frequency > freqLimits;
01198 
01199         
01200         
01201         
01202 
01203         
01204         // ===> Attribute polarizationTypes
01205         
01206         
01207 
01208         vector<PolarizationTypeMod::PolarizationType > polarizationTypes;
01209 
01210         
01211         
01212         
01213 
01214         
01215         // ===> Attribute curve
01216         
01217         
01218 
01219         vector<vector<vector<float > > > curve;
01220 
01221         
01222         
01223         
01224 
01225         
01226         // ===> Attribute reducedChiSquared
01227         
01228         
01229 
01230         vector<double > reducedChiSquared;
01231 
01232         
01233         
01234         
01235 
01236         
01237         // ===> Attribute numBaseline, which is optional
01238         
01239         
01240         bool numBaselineExists;
01241         
01242 
01243         int numBaseline;
01244 
01245         
01246         
01247         
01248 
01249         
01250         // ===> Attribute rms, which is optional
01251         
01252         
01253         bool rmsExists;
01254         
01255 
01256         vector<vector<float > > rms;
01257 
01258         
01259         
01260         
01261 
01263         // Extrinsic Table Attributes //
01265         
01266         
01267         // ===> Attribute calDataId
01268         
01269         
01270 
01271         Tag calDataId;
01272 
01273         
01274         
01275         
01276 
01277         
01278         // ===> Attribute calReductionId
01279         
01280         
01281 
01282         Tag calReductionId;
01283 
01284         
01285         
01286         
01287 
01289         // Links //
01291         
01292         
01293                 
01294 
01295          
01296 
01297         
01298 
01299         
01300                 
01301 
01302          
01303 
01304         
01305 
01306         
01307 /*
01309         // binary-deserialization material from an EndianIStream  //
01311         std::map<std::string, CalBandpassAttributeFromBin> fromBinMethods;
01312 void basebandNameFromBin( EndianIStream& eis);
01313 void sidebandFromBin( EndianIStream& eis);
01314 void atmPhaseCorrectionFromBin( EndianIStream& eis);
01315 void typeCurveFromBin( EndianIStream& eis);
01316 void receiverBandFromBin( EndianIStream& eis);
01317 void calDataIdFromBin( EndianIStream& eis);
01318 void calReductionIdFromBin( EndianIStream& eis);
01319 void startValidTimeFromBin( EndianIStream& eis);
01320 void endValidTimeFromBin( EndianIStream& eis);
01321 void numAntennaFromBin( EndianIStream& eis);
01322 void numPolyFromBin( EndianIStream& eis);
01323 void numReceptorFromBin( EndianIStream& eis);
01324 void antennaNamesFromBin( EndianIStream& eis);
01325 void refAntennaNameFromBin( EndianIStream& eis);
01326 void freqLimitsFromBin( EndianIStream& eis);
01327 void polarizationTypesFromBin( EndianIStream& eis);
01328 void curveFromBin( EndianIStream& eis);
01329 void reducedChiSquaredFromBin( EndianIStream& eis);
01330 
01331 void numBaselineFromBin( EndianIStream& eis);
01332 void rmsFromBin( EndianIStream& eis);
01333 
01334 */
01335         
01337         // text-deserialization material //
01339         std::map<std::string, CalBandpassAttributeFromText> fromTextMethods;
01340         
01341 void basebandNameFromText (const string & s);
01342         
01343         
01344 void sidebandFromText (const string & s);
01345         
01346         
01347 void atmPhaseCorrectionFromText (const string & s);
01348         
01349         
01350 void typeCurveFromText (const string & s);
01351         
01352         
01353 void receiverBandFromText (const string & s);
01354         
01355         
01356 void calDataIdFromText (const string & s);
01357         
01358         
01359 void calReductionIdFromText (const string & s);
01360         
01361         
01362 void startValidTimeFromText (const string & s);
01363         
01364         
01365 void endValidTimeFromText (const string & s);
01366         
01367         
01368 void numAntennaFromText (const string & s);
01369         
01370         
01371 void numPolyFromText (const string & s);
01372         
01373         
01374 void numReceptorFromText (const string & s);
01375         
01376         
01377 void antennaNamesFromText (const string & s);
01378         
01379         
01380 void refAntennaNameFromText (const string & s);
01381         
01382         
01383 void freqLimitsFromText (const string & s);
01384         
01385         
01386 void polarizationTypesFromText (const string & s);
01387         
01388         
01389 void curveFromText (const string & s);
01390         
01391         
01392 void reducedChiSquaredFromText (const string & s);
01393         
01394 
01395         
01396 void numBaselineFromText (const string & s);
01397         
01398         
01399 void rmsFromText (const string & s);
01400         
01401         
01402         
01407          void toBin(EndianOSStream& eoss);
01408                  
01418 };
01419 
01420 } // End namespace asdm
01421 
01422 #endif /* CalBandpass_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines