CalAmpliRow.h

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 CalAmpliRow.h
00032  */
00033  
00034 #ifndef CalAmpliRow_CLASS
00035 #define CalAmpliRow_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::CalAmpliRowIDL;
00047 #endif
00048 
00049 #include <Angle.h>
00050 #include <AngularRate.h>
00051 #include <ArrayTime.h>
00052 #include <ArrayTimeInterval.h>
00053 #include <Complex.h>
00054 #include <Entity.h>
00055 #include <EntityId.h>
00056 #include <EntityRef.h>
00057 #include <Flux.h>
00058 #include <Frequency.h>
00059 #include <Humidity.h>
00060 #include <Interval.h>
00061 #include <Length.h>
00062 #include <Pressure.h>
00063 #include <Speed.h>
00064 #include <Tag.h>
00065 #include <Temperature.h>
00066 #include <ConversionException.h>
00067 #include <NoSuchRow.h>
00068 #include <IllegalAccessException.h>
00069 
00070 /*
00071 #include <Enumerations.h>
00072 using namespace enumerations;
00073  */
00074 
00075 
00076 
00077 
00078         
00079 
00080         
00081 
00082         
00083 #include "CReceiverBand.h"
00084 using namespace ReceiverBandMod;
00085         
00086 
00087         
00088 
00089         
00090 #include "CAtmPhaseCorrection.h"
00091 using namespace AtmPhaseCorrectionMod;
00092         
00093 
00094         
00095 #include "CPolarizationType.h"
00096 using namespace PolarizationTypeMod;
00097         
00098 
00099         
00100 
00101         
00102 
00103         
00104 
00105         
00106 
00107         
00108 
00109         
00110 
00111 
00112 
00113 using asdm::Angle;
00114 using asdm::AngularRate;
00115 using asdm::ArrayTime;
00116 using asdm::Complex;
00117 using asdm::Entity;
00118 using asdm::EntityId;
00119 using asdm::EntityRef;
00120 using asdm::Flux;
00121 using asdm::Frequency;
00122 using asdm::Humidity;
00123 using asdm::Interval;
00124 using asdm::Length;
00125 using asdm::Pressure;
00126 using asdm::Speed;
00127 using asdm::Tag;
00128 using asdm::Temperature;
00129 using asdm::ConversionException;
00130 using asdm::NoSuchRow;
00131 using asdm::IllegalAccessException;
00132 
00133 /*\file CalAmpli.h
00134     \brief Generated from model's revision "1.41", branch "HEAD"
00135 */
00136 
00137 namespace asdm {
00138 
00139 //class asdm::CalAmpliTable;
00140 
00141 
00142 // class asdm::CalDataRow;
00143 class CalDataRow;
00144 
00145 // class asdm::CalReductionRow;
00146 class CalReductionRow;
00147         
00148 
00155 class CalAmpliRow {
00156 friend class asdm::CalAmpliTable;
00157 
00158 public:
00159 
00160         virtual ~CalAmpliRow();
00161 
00165         CalAmpliTable &getTable() const;
00166         
00167 #ifndef WITHOUT_ACS
00168 
00172         CalAmpliRowIDL *toIDL() const;
00173 #endif
00174         
00175 #ifndef WITHOUT_ACS
00176 
00180         void setFromIDL (CalAmpliRowIDL x) throw(ConversionException);
00181 #endif
00182         
00187         string toXML() const;
00188 
00194         void setFromXML (string rowDoc) throw(ConversionException);
00195         
00197         // Intrinsic Table Attributes //
00199         
00200         
00201         // ===> Attribute numAPC
00202         
00203         
00204         
00205 
00206         
00211         int getNumAPC() const;
00212         
00213  
00214         
00215         
00221         void setNumAPC (int numAPC);
00222                 
00223         
00224         
00225         
00226 
00227 
00228         
00229         // ===> Attribute numReceptor
00230         
00231         
00232         
00233 
00234         
00239         int getNumReceptor() const;
00240         
00241  
00242         
00243         
00249         void setNumReceptor (int numReceptor);
00250                 
00251         
00252         
00253         
00254 
00255 
00256         
00257         // ===> Attribute receiverBand
00258         
00259         
00260         
00261 
00262         
00267         ReceiverBand getReceiverBand() const;
00268         
00269  
00270         
00271         
00277         void setReceiverBand (ReceiverBand receiverBand);
00278                 
00279         
00280         
00281         
00282 
00283 
00284         
00285         // ===> Attribute antennaName
00286         
00287         
00288         
00289 
00290         
00295         string getAntennaName() const;
00296         
00297  
00298         
00299         
00306         void setAntennaName (string antennaName) throw(IllegalAccessException);
00307                 
00308         
00309         
00310         
00311 
00312 
00313         
00314         // ===> Attribute atmPhaseCorrections
00315         
00316         
00317         
00318 
00319         
00324         vector<AtmPhaseCorrection > getAtmPhaseCorrections() const;
00325         
00326  
00327         
00328         
00334         void setAtmPhaseCorrections (vector<AtmPhaseCorrection > atmPhaseCorrections);
00335                 
00336         
00337         
00338         
00339 
00340 
00341         
00342         // ===> Attribute polarizationTypes
00343         
00344         
00345         
00346 
00347         
00352         vector<PolarizationType > getPolarizationTypes() const;
00353         
00354  
00355         
00356         
00362         void setPolarizationTypes (vector<PolarizationType > polarizationTypes);
00363                 
00364         
00365         
00366         
00367 
00368 
00369         
00370         // ===> Attribute startValidTime
00371         
00372         
00373         
00374 
00375         
00380         ArrayTime getStartValidTime() const;
00381         
00382  
00383         
00384         
00390         void setStartValidTime (ArrayTime startValidTime);
00391                 
00392         
00393         
00394         
00395 
00396 
00397         
00398         // ===> Attribute endValidTime
00399         
00400         
00401         
00402 
00403         
00408         ArrayTime getEndValidTime() const;
00409         
00410  
00411         
00412         
00418         void setEndValidTime (ArrayTime endValidTime);
00419                 
00420         
00421         
00422         
00423 
00424 
00425         
00426         // ===> Attribute frequencyRange
00427         
00428         
00429         
00430 
00431         
00436         vector<Frequency > getFrequencyRange() const;
00437         
00438  
00439         
00440         
00446         void setFrequencyRange (vector<Frequency > frequencyRange);
00447                 
00448         
00449         
00450         
00451 
00452 
00453         
00454         // ===> Attribute apertureEfficiency, which is optional
00455         
00456         
00457         
00462         bool isApertureEfficiencyExists() const;
00463         
00464 
00465         
00471         vector<vector<float > > getApertureEfficiency() const throw(IllegalAccessException);
00472         
00473  
00474         
00475         
00481         void setApertureEfficiency (vector<vector<float > > apertureEfficiency);
00482                 
00483         
00484         
00485         
00489         void clearApertureEfficiency ();
00490         
00491 
00492 
00493         
00494         // ===> Attribute apertureEfficiencyError, which is optional
00495         
00496         
00497         
00502         bool isApertureEfficiencyErrorExists() const;
00503         
00504 
00505         
00511         vector<vector<float > > getApertureEfficiencyError() const throw(IllegalAccessException);
00512         
00513  
00514         
00515         
00521         void setApertureEfficiencyError (vector<vector<float > > apertureEfficiencyError);
00522                 
00523         
00524         
00525         
00529         void clearApertureEfficiencyError ();
00530         
00531 
00532 
00533         
00534         // ===> Attribute correctionValidity, which is optional
00535         
00536         
00537         
00542         bool isCorrectionValidityExists() const;
00543         
00544 
00545         
00551         bool getCorrectionValidity() const throw(IllegalAccessException);
00552         
00553  
00554         
00555         
00561         void setCorrectionValidity (bool correctionValidity);
00562                 
00563         
00564         
00565         
00569         void clearCorrectionValidity ();
00570         
00571 
00572 
00574         // Extrinsic Table Attributes //
00576         
00577         
00578         // ===> Attribute calDataId
00579         
00580         
00581         
00582 
00583         
00588         Tag getCalDataId() const;
00589         
00590  
00591         
00592         
00599         void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00600                 
00601         
00602         
00603         
00604 
00605 
00606         
00607         // ===> Attribute calReductionId
00608         
00609         
00610         
00611 
00612         
00617         Tag getCalReductionId() const;
00618         
00619  
00620         
00621         
00628         void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00629                 
00630         
00631         
00632         
00633 
00634 
00636         // Links //
00638         
00639         
00640 
00641         
00642                 
00649          CalDataRow* getCalDataUsingCalDataId();
00650          
00651 
00652         
00653 
00654         
00655 
00656         
00657                 
00664          CalReductionRow* getCalReductionUsingCalReductionId();
00665          
00666 
00667         
00668 
00669         
00670         
00671         
00676         bool compareNoAutoInc(Tag calDataId, Tag calReductionId, string antennaName, int numAPC, int numReceptor, ReceiverBand receiverBand, vector<AtmPhaseCorrection > atmPhaseCorrections, vector<PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector<Frequency > frequencyRange);
00677         
00678         
00679 
00680         
00681         bool compareRequiredValue(int numAPC, int numReceptor, ReceiverBand receiverBand, vector<AtmPhaseCorrection > atmPhaseCorrections, vector<PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector<Frequency > frequencyRange); 
00682                  
00683         
00692         bool equalByRequiredValue(CalAmpliRow* x) ;
00693 
00694 private:
00698         CalAmpliTable &table;
00702         bool hasBeenAdded;
00703 
00704         // This method is used by the Table class when this row is added to the table.
00705         void isAdded();
00706 
00707 
00716         CalAmpliRow (CalAmpliTable &table);
00717 
00735          CalAmpliRow (CalAmpliTable &table, CalAmpliRow &row);
00736                 
00738         // Intrinsic Table Attributes //
00740         
00741         
00742         // ===> Attribute numAPC
00743         
00744         
00745 
00746         int numAPC;
00747 
00748         
00749         
00750         
00751 
00752         
00753         // ===> Attribute numReceptor
00754         
00755         
00756 
00757         int numReceptor;
00758 
00759         
00760         
00761         
00762 
00763         
00764         // ===> Attribute receiverBand
00765         
00766         
00767 
00768         ReceiverBand receiverBand;
00769 
00770         
00771         
00772         
00773 
00774         
00775         // ===> Attribute antennaName
00776         
00777         
00778 
00779         string antennaName;
00780 
00781         
00782         
00783         
00784 
00785         
00786         // ===> Attribute atmPhaseCorrections
00787         
00788         
00789 
00790         vector<AtmPhaseCorrection > atmPhaseCorrections;
00791 
00792         
00793         
00794         
00795 
00796         
00797         // ===> Attribute polarizationTypes
00798         
00799         
00800 
00801         vector<PolarizationType > polarizationTypes;
00802 
00803         
00804         
00805         
00806 
00807         
00808         // ===> Attribute startValidTime
00809         
00810         
00811 
00812         ArrayTime startValidTime;
00813 
00814         
00815         
00816         
00817 
00818         
00819         // ===> Attribute endValidTime
00820         
00821         
00822 
00823         ArrayTime endValidTime;
00824 
00825         
00826         
00827         
00828 
00829         
00830         // ===> Attribute frequencyRange
00831         
00832         
00833 
00834         vector<Frequency > frequencyRange;
00835 
00836         
00837         
00838         
00839 
00840         
00841         // ===> Attribute apertureEfficiency, which is optional
00842         
00843         
00844         bool apertureEfficiencyExists;
00845         
00846 
00847         vector<vector<float > > apertureEfficiency;
00848 
00849         
00850         
00851         
00852 
00853         
00854         // ===> Attribute apertureEfficiencyError, which is optional
00855         
00856         
00857         bool apertureEfficiencyErrorExists;
00858         
00859 
00860         vector<vector<float > > apertureEfficiencyError;
00861 
00862         
00863         
00864         
00865 
00866         
00867         // ===> Attribute correctionValidity, which is optional
00868         
00869         
00870         bool correctionValidityExists;
00871         
00872 
00873         bool correctionValidity;
00874 
00875         
00876         
00877         
00878 
00880         // Extrinsic Table Attributes //
00882         
00883         
00884         // ===> Attribute calDataId
00885         
00886         
00887 
00888         Tag calDataId;
00889 
00890         
00891         
00892         
00893 
00894         
00895         // ===> Attribute calReductionId
00896         
00897         
00898 
00899         Tag calReductionId;
00900 
00901         
00902         
00903         
00904 
00906         // Links //
00908         
00909         
00910                 
00911 
00912          
00913 
00914         
00915 
00916         
00917                 
00918 
00919          
00920 
00921         
00922 
00923 
00924 };
00925 
00926 } // End namespace asdm
00927 
00928 #endif /* CalAmpli_CLASS */

Generated on Thu Nov 29 16:46:45 2007 for ASDM C++ Implementation by  doxygen 1.5.1