CalPrimaryBeamRow.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 CalPrimaryBeamRow.h
00032  */
00033  
00034 #ifndef CalPrimaryBeamRow_CLASS
00035 #define CalPrimaryBeamRow_CLASS
00036 
00037 #include <vector>
00038 #include <string>
00039 #include <set>
00040 using std::vector;
00041 using std::string;
00042 using std::set;
00043 
00044 #ifndef WITHOUT_ACS
00045 #include <asdmIDLC.h>
00046 using asdmIDL::CalPrimaryBeamRowIDL;
00047 #endif
00048 
00049 
00050 
00051 
00052 
00053 
00054 #include <ArrayTime.h>
00055 using  asdm::ArrayTime;
00056 
00057 #include <Tag.h>
00058 using  asdm::Tag;
00059 
00060 #include <Frequency.h>
00061 using  asdm::Frequency;
00062 
00063 #include <EntityRef.h>
00064 using  asdm::EntityRef;
00065 
00066 
00067 
00068 
00069         
00070 
00071         
00072 #include "CReceiverBand.h"
00073 using namespace ReceiverBandMod;
00074         
00075 
00076         
00077 
00078         
00079 
00080         
00081 #include "CAntennaMake.h"
00082 using namespace AntennaMakeMod;
00083         
00084 
00085         
00086 
00087         
00088 
00089         
00090 #include "CPolarizationType.h"
00091 using namespace PolarizationTypeMod;
00092         
00093 
00094         
00095 
00096         
00097 
00098         
00099 
00100 
00101 
00102 #include <ConversionException.h>
00103 #include <NoSuchRow.h>
00104 #include <IllegalAccessException.h>
00105 
00106 
00107 /*\file CalPrimaryBeam.h
00108     \brief Generated from model's revision "1.55", branch "HEAD"
00109 */
00110 
00111 namespace asdm {
00112 
00113 //class asdm::CalPrimaryBeamTable;
00114 
00115 
00116 // class asdm::CalReductionRow;
00117 class CalReductionRow;
00118 
00119 // class asdm::CalDataRow;
00120 class CalDataRow;
00121         
00122 
00123 class CalPrimaryBeamRow;
00124 typedef void (CalPrimaryBeamRow::*CalPrimaryBeamAttributeFromBin) (EndianISStream& eiss);
00125 
00132 class CalPrimaryBeamRow {
00133 friend class asdm::CalPrimaryBeamTable;
00134 
00135 public:
00136 
00137         virtual ~CalPrimaryBeamRow();
00138 
00142         CalPrimaryBeamTable &getTable() const;
00143         
00148         bool isAdded() const;
00149                 
00151         // Intrinsic Table Attributes //
00153         
00154         
00155         // ===> Attribute antennaName
00156         
00157         
00158         
00159 
00160         
00165         string getAntennaName() const;
00166         
00167  
00168         
00169         
00179         void setAntennaName (string antennaName);
00180                 
00181         
00182         
00183         
00184 
00185 
00186         
00187         // ===> Attribute receiverBand
00188         
00189         
00190         
00191 
00192         
00197         ReceiverBandMod::ReceiverBand getReceiverBand() const;
00198         
00199  
00200         
00201         
00211         void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00212                 
00213         
00214         
00215         
00216 
00217 
00218         
00219         // ===> Attribute startValidTime
00220         
00221         
00222         
00223 
00224         
00229         ArrayTime getStartValidTime() const;
00230         
00231  
00232         
00233         
00241         void setStartValidTime (ArrayTime startValidTime);
00242                 
00243         
00244         
00245         
00246 
00247 
00248         
00249         // ===> Attribute endValidTime
00250         
00251         
00252         
00253 
00254         
00259         ArrayTime getEndValidTime() const;
00260         
00261  
00262         
00263         
00271         void setEndValidTime (ArrayTime endValidTime);
00272                 
00273         
00274         
00275         
00276 
00277 
00278         
00279         // ===> Attribute antennaMake
00280         
00281         
00282         
00283 
00284         
00289         AntennaMakeMod::AntennaMake getAntennaMake() const;
00290         
00291  
00292         
00293         
00301         void setAntennaMake (AntennaMakeMod::AntennaMake antennaMake);
00302                 
00303         
00304         
00305         
00306 
00307 
00308         
00309         // ===> Attribute frequencyRange
00310         
00311         
00312         
00313 
00314         
00319         vector<Frequency > getFrequencyRange() const;
00320         
00321  
00322         
00323         
00331         void setFrequencyRange (vector<Frequency > frequencyRange);
00332                 
00333         
00334         
00335         
00336 
00337 
00338         
00339         // ===> Attribute numReceptor
00340         
00341         
00342         
00343 
00344         
00349         int getNumReceptor() const;
00350         
00351  
00352         
00353         
00361         void setNumReceptor (int numReceptor);
00362                 
00363         
00364         
00365         
00366 
00367 
00368         
00369         // ===> Attribute polarizationTypes
00370         
00371         
00372         
00373 
00374         
00379         vector<PolarizationTypeMod::PolarizationType > getPolarizationTypes() const;
00380         
00381  
00382         
00383         
00391         void setPolarizationTypes (vector<PolarizationTypeMod::PolarizationType > polarizationTypes);
00392                 
00393         
00394         
00395         
00396 
00397 
00398         
00399         // ===> Attribute mainBeamEfficiency
00400         
00401         
00402         
00403 
00404         
00409         vector<double > getMainBeamEfficiency() const;
00410         
00411  
00412         
00413         
00421         void setMainBeamEfficiency (vector<double > mainBeamEfficiency);
00422                 
00423         
00424         
00425         
00426 
00427 
00428         
00429         // ===> Attribute beamMapUID
00430         
00431         
00432         
00433 
00434         
00439         EntityRef getBeamMapUID() const;
00440         
00441  
00442         
00443         
00451         void setBeamMapUID (EntityRef beamMapUID);
00452                 
00453         
00454         
00455         
00456 
00457 
00458         
00459         // ===> Attribute relativeAmplitudeRms
00460         
00461         
00462         
00463 
00464         
00469         float getRelativeAmplitudeRms() const;
00470         
00471  
00472         
00473         
00481         void setRelativeAmplitudeRms (float relativeAmplitudeRms);
00482                 
00483         
00484         
00485         
00486 
00487 
00489         // Extrinsic Table Attributes //
00491         
00492         
00493         // ===> Attribute calDataId
00494         
00495         
00496         
00497 
00498         
00503         Tag getCalDataId() const;
00504         
00505  
00506         
00507         
00517         void setCalDataId (Tag calDataId);
00518                 
00519         
00520         
00521         
00522 
00523 
00524         
00525         // ===> Attribute calReductionId
00526         
00527         
00528         
00529 
00530         
00535         Tag getCalReductionId() const;
00536         
00537  
00538         
00539         
00549         void setCalReductionId (Tag calReductionId);
00550                 
00551         
00552         
00553         
00554 
00555 
00557         // Links //
00559         
00560         
00561 
00562         
00563                 
00570          CalReductionRow* getCalReductionUsingCalReductionId();
00571          
00572 
00573         
00574 
00575         
00576 
00577         
00578                 
00585          CalDataRow* getCalDataUsingCalDataId();
00586          
00587 
00588         
00589 
00590         
00591         
00592         
00624         bool compareNoAutoInc(string antennaName, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, vector<Frequency > frequencyRange, int numReceptor, vector<PolarizationTypeMod::PolarizationType > polarizationTypes, vector<double > mainBeamEfficiency, EntityRef beamMapUID, float relativeAmplitudeRms);
00625         
00626         
00627 
00628         
00652         bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, vector<Frequency > frequencyRange, int numReceptor, vector<PolarizationTypeMod::PolarizationType > polarizationTypes, vector<double > mainBeamEfficiency, EntityRef beamMapUID, float relativeAmplitudeRms); 
00653                  
00654         
00663         bool equalByRequiredValue(CalPrimaryBeamRow* x) ;
00664         
00665 #ifndef WITHOUT_ACS
00666 
00670         CalPrimaryBeamRowIDL *toIDL() const;
00671 #endif
00672         
00673 #ifndef WITHOUT_ACS
00674 
00679         void setFromIDL (CalPrimaryBeamRowIDL x) ;
00680 #endif
00681         
00686         string toXML() const;
00687 
00694         void setFromXML (string rowDoc) ;       
00695 
00696 private:
00700         CalPrimaryBeamTable &table;
00704         bool hasBeenAdded;
00705 
00706         // This method is used by the Table class when this row is added to the table.
00707         void isAdded(bool added);
00708 
00709 
00718         CalPrimaryBeamRow (CalPrimaryBeamTable &table);
00719 
00737          CalPrimaryBeamRow (CalPrimaryBeamTable &table, CalPrimaryBeamRow &row);
00738                 
00740         // Intrinsic Table Attributes //
00742         
00743         
00744         // ===> Attribute antennaName
00745         
00746         
00747 
00748         string antennaName;
00749 
00750         
00751         
00752         
00753 
00754         
00755         // ===> Attribute receiverBand
00756         
00757         
00758 
00759         ReceiverBandMod::ReceiverBand receiverBand;
00760 
00761         
00762         
00763         
00764 
00765         
00766         // ===> Attribute startValidTime
00767         
00768         
00769 
00770         ArrayTime startValidTime;
00771 
00772         
00773         
00774         
00775 
00776         
00777         // ===> Attribute endValidTime
00778         
00779         
00780 
00781         ArrayTime endValidTime;
00782 
00783         
00784         
00785         
00786 
00787         
00788         // ===> Attribute antennaMake
00789         
00790         
00791 
00792         AntennaMakeMod::AntennaMake antennaMake;
00793 
00794         
00795         
00796         
00797 
00798         
00799         // ===> Attribute frequencyRange
00800         
00801         
00802 
00803         vector<Frequency > frequencyRange;
00804 
00805         
00806         
00807         
00808 
00809         
00810         // ===> Attribute numReceptor
00811         
00812         
00813 
00814         int numReceptor;
00815 
00816         
00817         
00818         
00819 
00820         
00821         // ===> Attribute polarizationTypes
00822         
00823         
00824 
00825         vector<PolarizationTypeMod::PolarizationType > polarizationTypes;
00826 
00827         
00828         
00829         
00830 
00831         
00832         // ===> Attribute mainBeamEfficiency
00833         
00834         
00835 
00836         vector<double > mainBeamEfficiency;
00837 
00838         
00839         
00840         
00841 
00842         
00843         // ===> Attribute beamMapUID
00844         
00845         
00846 
00847         EntityRef beamMapUID;
00848 
00849         
00850         
00851         
00852 
00853         
00854         // ===> Attribute relativeAmplitudeRms
00855         
00856         
00857 
00858         float relativeAmplitudeRms;
00859 
00860         
00861         
00862         
00863 
00865         // Extrinsic Table Attributes //
00867         
00868         
00869         // ===> Attribute calDataId
00870         
00871         
00872 
00873         Tag calDataId;
00874 
00875         
00876         
00877         
00878 
00879         
00880         // ===> Attribute calReductionId
00881         
00882         
00883 
00884         Tag calReductionId;
00885 
00886         
00887         
00888         
00889 
00891         // Links //
00893         
00894         
00895                 
00896 
00897          
00898 
00899         
00900 
00901         
00902                 
00903 
00904          
00905 
00906         
00907 
00908         
00910         // binary-deserialization material//
00912         map<string, CalPrimaryBeamAttributeFromBin> fromBinMethods;
00913 void antennaNameFromBin( EndianISStream& eiss);
00914 void receiverBandFromBin( EndianISStream& eiss);
00915 void calDataIdFromBin( EndianISStream& eiss);
00916 void calReductionIdFromBin( EndianISStream& eiss);
00917 void startValidTimeFromBin( EndianISStream& eiss);
00918 void endValidTimeFromBin( EndianISStream& eiss);
00919 void antennaMakeFromBin( EndianISStream& eiss);
00920 void frequencyRangeFromBin( EndianISStream& eiss);
00921 void numReceptorFromBin( EndianISStream& eiss);
00922 void polarizationTypesFromBin( EndianISStream& eiss);
00923 void mainBeamEfficiencyFromBin( EndianISStream& eiss);
00924 void beamMapUIDFromBin( EndianISStream& eiss);
00925 void relativeAmplitudeRmsFromBin( EndianISStream& eiss);
00926 
00927                 
00928         
00933          void toBin(EndianOSStream& eoss);
00934                  
00942          static CalPrimaryBeamRow* fromBin(EndianISStream& eiss, CalPrimaryBeamTable& table, const vector<string>& attributesSeq);       
00943 
00944 };
00945 
00946 } // End namespace asdm
00947 
00948 #endif /* CalPrimaryBeam_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines