CalFluxRow.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 CalFluxRow.h
00032  */
00033  
00034 #ifndef CalFluxRow_CLASS
00035 #define CalFluxRow_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::CalFluxRowIDL;
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 
00084         
00085 
00086         
00087 
00088         
00089 #include "CStokesParameter.h"
00090 using namespace StokesParameterMod;
00091         
00092 
00093         
00094 
00095         
00096 
00097         
00098 
00099         
00100 
00101         
00102 
00103         
00104 
00105         
00106 #include "CFluxCalibrationMethod.h"
00107 using namespace FluxCalibrationMethodMod;
00108         
00109 
00110         
00111 
00112         
00113 #include "CSourceModel.h"
00114 using namespace SourceModelMod;
00115         
00116 
00117         
00118 
00119 
00120 
00121 using asdm::Angle;
00122 using asdm::AngularRate;
00123 using asdm::ArrayTime;
00124 using asdm::Complex;
00125 using asdm::Entity;
00126 using asdm::EntityId;
00127 using asdm::EntityRef;
00128 using asdm::Flux;
00129 using asdm::Frequency;
00130 using asdm::Humidity;
00131 using asdm::Interval;
00132 using asdm::Length;
00133 using asdm::Pressure;
00134 using asdm::Speed;
00135 using asdm::Tag;
00136 using asdm::Temperature;
00137 using asdm::ConversionException;
00138 using asdm::NoSuchRow;
00139 using asdm::IllegalAccessException;
00140 
00141 /*\file CalFlux.h
00142     \brief Generated from model's revision "1.41", branch "HEAD"
00143 */
00144 
00145 namespace asdm {
00146 
00147 //class asdm::CalFluxTable;
00148 
00149 
00150 // class asdm::CalDataRow;
00151 class CalDataRow;
00152 
00153 // class asdm::CalReductionRow;
00154 class CalReductionRow;
00155         
00156 
00163 class CalFluxRow {
00164 friend class asdm::CalFluxTable;
00165 
00166 public:
00167 
00168         virtual ~CalFluxRow();
00169 
00173         CalFluxTable &getTable() const;
00174         
00175 #ifndef WITHOUT_ACS
00176 
00180         CalFluxRowIDL *toIDL() const;
00181 #endif
00182         
00183 #ifndef WITHOUT_ACS
00184 
00188         void setFromIDL (CalFluxRowIDL x) throw(ConversionException);
00189 #endif
00190         
00195         string toXML() const;
00196 
00202         void setFromXML (string rowDoc) throw(ConversionException);
00203         
00205         // Intrinsic Table Attributes //
00207         
00208         
00209         // ===> Attribute sourceName
00210         
00211         
00212         
00213 
00214         
00219         string getSourceName() const;
00220         
00221  
00222         
00223         
00230         void setSourceName (string sourceName) throw(IllegalAccessException);
00231                 
00232         
00233         
00234         
00235 
00236 
00237         
00238         // ===> Attribute numFrequency
00239         
00240         
00241         
00242 
00243         
00248         int getNumFrequency() const;
00249         
00250  
00251         
00252         
00258         void setNumFrequency (int numFrequency);
00259                 
00260         
00261         
00262         
00263 
00264 
00265         
00266         // ===> Attribute numStokes
00267         
00268         
00269         
00270 
00271         
00276         int getNumStokes() const;
00277         
00278  
00279         
00280         
00286         void setNumStokes (int numStokes);
00287                 
00288         
00289         
00290         
00291 
00292 
00293         
00294         // ===> Attribute startValidTime
00295         
00296         
00297         
00298 
00299         
00304         ArrayTime getStartValidTime() const;
00305         
00306  
00307         
00308         
00314         void setStartValidTime (ArrayTime startValidTime);
00315                 
00316         
00317         
00318         
00319 
00320 
00321         
00322         // ===> Attribute endValidTime
00323         
00324         
00325         
00326 
00327         
00332         ArrayTime getEndValidTime() const;
00333         
00334  
00335         
00336         
00342         void setEndValidTime (ArrayTime endValidTime);
00343                 
00344         
00345         
00346         
00347 
00348 
00349         
00350         // ===> Attribute stokes
00351         
00352         
00353         
00354 
00355         
00360         vector<StokesParameter > getStokes() const;
00361         
00362  
00363         
00364         
00370         void setStokes (vector<StokesParameter > stokes);
00371                 
00372         
00373         
00374         
00375 
00376 
00377         
00378         // ===> Attribute flux
00379         
00380         
00381         
00382 
00383         
00388         vector<vector<double > > getFlux() const;
00389         
00390  
00391         
00392         
00398         void setFlux (vector<vector<double > > flux);
00399                 
00400         
00401         
00402         
00403 
00404 
00405         
00406         // ===> Attribute fluxError
00407         
00408         
00409         
00410 
00411         
00416         vector<vector<double > > getFluxError() const;
00417         
00418  
00419         
00420         
00426         void setFluxError (vector<vector<double > > fluxError);
00427                 
00428         
00429         
00430         
00431 
00432 
00433         
00434         // ===> Attribute size, which is optional
00435         
00436         
00437         
00442         bool isSizeExists() const;
00443         
00444 
00445         
00451         vector<vector<vector<Angle > > > getSize() const throw(IllegalAccessException);
00452         
00453  
00454         
00455         
00461         void setSize (vector<vector<vector<Angle > > > size);
00462                 
00463         
00464         
00465         
00469         void clearSize ();
00470         
00471 
00472 
00473         
00474         // ===> Attribute sizeError, which is optional
00475         
00476         
00477         
00482         bool isSizeErrorExists() const;
00483         
00484 
00485         
00491         vector<vector<vector<Angle > > > getSizeError() const throw(IllegalAccessException);
00492         
00493  
00494         
00495         
00501         void setSizeError (vector<vector<vector<Angle > > > sizeError);
00502                 
00503         
00504         
00505         
00509         void clearSizeError ();
00510         
00511 
00512 
00513         
00514         // ===> Attribute PA, which is optional
00515         
00516         
00517         
00522         bool isPAExists() const;
00523         
00524 
00525         
00531         vector<vector<Angle > > getPA() const throw(IllegalAccessException);
00532         
00533  
00534         
00535         
00541         void setPA (vector<vector<Angle > > PA);
00542                 
00543         
00544         
00545         
00549         void clearPA ();
00550         
00551 
00552 
00553         
00554         // ===> Attribute PAError, which is optional
00555         
00556         
00557         
00562         bool isPAErrorExists() const;
00563         
00564 
00565         
00571         vector<vector<Angle > > getPAError() const throw(IllegalAccessException);
00572         
00573  
00574         
00575         
00581         void setPAError (vector<vector<Angle > > PAError);
00582                 
00583         
00584         
00585         
00589         void clearPAError ();
00590         
00591 
00592 
00593         
00594         // ===> Attribute fluxMethod
00595         
00596         
00597         
00598 
00599         
00604         FluxCalibrationMethod getFluxMethod() const;
00605         
00606  
00607         
00608         
00614         void setFluxMethod (FluxCalibrationMethod fluxMethod);
00615                 
00616         
00617         
00618         
00619 
00620 
00621         
00622         // ===> Attribute direction, which is optional
00623         
00624         
00625         
00630         bool isDirectionExists() const;
00631         
00632 
00633         
00639         vector<Angle > getDirection() const throw(IllegalAccessException);
00640         
00641  
00642         
00643         
00649         void setDirection (vector<Angle > direction);
00650                 
00651         
00652         
00653         
00657         void clearDirection ();
00658         
00659 
00660 
00661         
00662         // ===> Attribute sourceModel, which is optional
00663         
00664         
00665         
00670         bool isSourceModelExists() const;
00671         
00672 
00673         
00679         SourceModel getSourceModel() const throw(IllegalAccessException);
00680         
00681  
00682         
00683         
00689         void setSourceModel (SourceModel sourceModel);
00690                 
00691         
00692         
00693         
00697         void clearSourceModel ();
00698         
00699 
00700 
00701         
00702         // ===> Attribute frequencyRange
00703         
00704         
00705         
00706 
00707         
00712         vector<Frequency > getFrequencyRange() const;
00713         
00714  
00715         
00716         
00722         void setFrequencyRange (vector<Frequency > frequencyRange);
00723                 
00724         
00725         
00726         
00727 
00728 
00730         // Extrinsic Table Attributes //
00732         
00733         
00734         // ===> Attribute calDataId
00735         
00736         
00737         
00738 
00739         
00744         Tag getCalDataId() const;
00745         
00746  
00747         
00748         
00755         void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00756                 
00757         
00758         
00759         
00760 
00761 
00762         
00763         // ===> Attribute calReductionId
00764         
00765         
00766         
00767 
00768         
00773         Tag getCalReductionId() const;
00774         
00775  
00776         
00777         
00784         void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00785                 
00786         
00787         
00788         
00789 
00790 
00792         // Links //
00794         
00795         
00796 
00797         
00798                 
00805          CalDataRow* getCalDataUsingCalDataId();
00806          
00807 
00808         
00809 
00810         
00811 
00812         
00813                 
00820          CalReductionRow* getCalReductionUsingCalReductionId();
00821          
00822 
00823         
00824 
00825         
00826         
00827         
00832         bool compareNoAutoInc(Tag calDataId, Tag calReductionId, string sourceName, int numFrequency, int numStokes, ArrayTime startValidTime, ArrayTime endValidTime, vector<StokesParameter > stokes, vector<vector<double > > flux, vector<vector<double > > fluxError, FluxCalibrationMethod fluxMethod, vector<Frequency > frequencyRange);
00833         
00834         
00835 
00836         
00837         bool compareRequiredValue(int numFrequency, int numStokes, ArrayTime startValidTime, ArrayTime endValidTime, vector<StokesParameter > stokes, vector<vector<double > > flux, vector<vector<double > > fluxError, FluxCalibrationMethod fluxMethod, vector<Frequency > frequencyRange); 
00838                  
00839         
00848         bool equalByRequiredValue(CalFluxRow* x) ;
00849 
00850 private:
00854         CalFluxTable &table;
00858         bool hasBeenAdded;
00859 
00860         // This method is used by the Table class when this row is added to the table.
00861         void isAdded();
00862 
00863 
00872         CalFluxRow (CalFluxTable &table);
00873 
00891          CalFluxRow (CalFluxTable &table, CalFluxRow &row);
00892                 
00894         // Intrinsic Table Attributes //
00896         
00897         
00898         // ===> Attribute sourceName
00899         
00900         
00901 
00902         string sourceName;
00903 
00904         
00905         
00906         
00907 
00908         
00909         // ===> Attribute numFrequency
00910         
00911         
00912 
00913         int numFrequency;
00914 
00915         
00916         
00917         
00918 
00919         
00920         // ===> Attribute numStokes
00921         
00922         
00923 
00924         int numStokes;
00925 
00926         
00927         
00928         
00929 
00930         
00931         // ===> Attribute startValidTime
00932         
00933         
00934 
00935         ArrayTime startValidTime;
00936 
00937         
00938         
00939         
00940 
00941         
00942         // ===> Attribute endValidTime
00943         
00944         
00945 
00946         ArrayTime endValidTime;
00947 
00948         
00949         
00950         
00951 
00952         
00953         // ===> Attribute stokes
00954         
00955         
00956 
00957         vector<StokesParameter > stokes;
00958 
00959         
00960         
00961         
00962 
00963         
00964         // ===> Attribute flux
00965         
00966         
00967 
00968         vector<vector<double > > flux;
00969 
00970         
00971         
00972         
00973 
00974         
00975         // ===> Attribute fluxError
00976         
00977         
00978 
00979         vector<vector<double > > fluxError;
00980 
00981         
00982         
00983         
00984 
00985         
00986         // ===> Attribute size, which is optional
00987         
00988         
00989         bool sizeExists;
00990         
00991 
00992         vector<vector<vector<Angle > > > size;
00993 
00994         
00995         
00996         
00997 
00998         
00999         // ===> Attribute sizeError, which is optional
01000         
01001         
01002         bool sizeErrorExists;
01003         
01004 
01005         vector<vector<vector<Angle > > > sizeError;
01006 
01007         
01008         
01009         
01010 
01011         
01012         // ===> Attribute PA, which is optional
01013         
01014         
01015         bool PAExists;
01016         
01017 
01018         vector<vector<Angle > > PA;
01019 
01020         
01021         
01022         
01023 
01024         
01025         // ===> Attribute PAError, which is optional
01026         
01027         
01028         bool PAErrorExists;
01029         
01030 
01031         vector<vector<Angle > > PAError;
01032 
01033         
01034         
01035         
01036 
01037         
01038         // ===> Attribute fluxMethod
01039         
01040         
01041 
01042         FluxCalibrationMethod fluxMethod;
01043 
01044         
01045         
01046         
01047 
01048         
01049         // ===> Attribute direction, which is optional
01050         
01051         
01052         bool directionExists;
01053         
01054 
01055         vector<Angle > direction;
01056 
01057         
01058         
01059         
01060 
01061         
01062         // ===> Attribute sourceModel, which is optional
01063         
01064         
01065         bool sourceModelExists;
01066         
01067 
01068         SourceModel sourceModel;
01069 
01070         
01071         
01072         
01073 
01074         
01075         // ===> Attribute frequencyRange
01076         
01077         
01078 
01079         vector<Frequency > frequencyRange;
01080 
01081         
01082         
01083         
01084 
01086         // Extrinsic Table Attributes //
01088         
01089         
01090         // ===> Attribute calDataId
01091         
01092         
01093 
01094         Tag calDataId;
01095 
01096         
01097         
01098         
01099 
01100         
01101         // ===> Attribute calReductionId
01102         
01103         
01104 
01105         Tag calReductionId;
01106 
01107         
01108         
01109         
01110 
01112         // Links //
01114         
01115         
01116                 
01117 
01118          
01119 
01120         
01121 
01122         
01123                 
01124 
01125          
01126 
01127         
01128 
01129 
01130 };
01131 
01132 } // End namespace asdm
01133 
01134 #endif /* CalFlux_CLASS */

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