WVMCalRow.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 WVMCalRow.h
00032  */
00033  
00034 #ifndef WVMCalRow_CLASS
00035 #define WVMCalRow_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::WVMCalRowIDL;
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 
00090         
00091 
00092 
00093 
00094 using asdm::Angle;
00095 using asdm::AngularRate;
00096 using asdm::ArrayTime;
00097 using asdm::Complex;
00098 using asdm::Entity;
00099 using asdm::EntityId;
00100 using asdm::EntityRef;
00101 using asdm::Flux;
00102 using asdm::Frequency;
00103 using asdm::Humidity;
00104 using asdm::Interval;
00105 using asdm::Length;
00106 using asdm::Pressure;
00107 using asdm::Speed;
00108 using asdm::Tag;
00109 using asdm::Temperature;
00110 using asdm::ConversionException;
00111 using asdm::NoSuchRow;
00112 using asdm::IllegalAccessException;
00113 
00114 /*\file WVMCal.h
00115     \brief Generated from model's revision "1.41", branch "HEAD"
00116 */
00117 
00118 namespace asdm {
00119 
00120 //class asdm::WVMCalTable;
00121 
00122 
00123 // class asdm::SpectralWindowRow;
00124 class SpectralWindowRow;
00125 
00126 // class asdm::AntennaRow;
00127 class AntennaRow;
00128         
00129 
00136 class WVMCalRow {
00137 friend class asdm::WVMCalTable;
00138 
00139 public:
00140 
00141         virtual ~WVMCalRow();
00142 
00146         WVMCalTable &getTable() const;
00147         
00148 #ifndef WITHOUT_ACS
00149 
00153         WVMCalRowIDL *toIDL() const;
00154 #endif
00155         
00156 #ifndef WITHOUT_ACS
00157 
00161         void setFromIDL (WVMCalRowIDL x) throw(ConversionException);
00162 #endif
00163         
00168         string toXML() const;
00169 
00175         void setFromXML (string rowDoc) throw(ConversionException);
00176         
00178         // Intrinsic Table Attributes //
00180         
00181         
00182         // ===> Attribute operationMode, which is optional
00183         
00184         
00185         
00190         bool isOperationModeExists() const;
00191         
00192 
00193         
00199         string getOperationMode() const throw(IllegalAccessException);
00200         
00201  
00202         
00203         
00209         void setOperationMode (string operationMode);
00210                 
00211         
00212         
00213         
00217         void clearOperationMode ();
00218         
00219 
00220 
00221         
00222         // ===> Attribute numPoly
00223         
00224         
00225         
00226 
00227         
00232         int getNumPoly() const;
00233         
00234  
00235         
00236         
00242         void setNumPoly (int numPoly);
00243                 
00244         
00245         
00246         
00247 
00248 
00249         
00250         // ===> Attribute freqOrigin
00251         
00252         
00253         
00254 
00255         
00260         Frequency getFreqOrigin() const;
00261         
00262  
00263         
00264         
00270         void setFreqOrigin (Frequency freqOrigin);
00271                 
00272         
00273         
00274         
00275 
00276 
00277         
00278         // ===> Attribute timeInterval
00279         
00280         
00281         
00282 
00283         
00288         ArrayTimeInterval getTimeInterval() const;
00289         
00290  
00291         
00292         
00299         void setTimeInterval (ArrayTimeInterval timeInterval) throw(IllegalAccessException);
00300                 
00301         
00302         
00303         
00304 
00305 
00306         
00307         // ===> Attribute pathCoeff
00308         
00309         
00310         
00311 
00312         
00317         vector<double > getPathCoeff() const;
00318         
00319  
00320         
00321         
00327         void setPathCoeff (vector<double > pathCoeff);
00328                 
00329         
00330         
00331         
00332 
00333 
00334         
00335         // ===> Attribute calibrationMode
00336         
00337         
00338         
00339 
00340         
00345         string getCalibrationMode() const;
00346         
00347  
00348         
00349         
00355         void setCalibrationMode (string calibrationMode);
00356                 
00357         
00358         
00359         
00360 
00361 
00362         
00363         // ===> Attribute wvrefModel, which is optional
00364         
00365         
00366         
00371         bool isWvrefModelExists() const;
00372         
00373 
00374         
00380         float getWvrefModel() const throw(IllegalAccessException);
00381         
00382  
00383         
00384         
00390         void setWvrefModel (float wvrefModel);
00391                 
00392         
00393         
00394         
00398         void clearWvrefModel ();
00399         
00400 
00401 
00403         // Extrinsic Table Attributes //
00405         
00406         
00407         // ===> Attribute antennaId
00408         
00409         
00410         
00411 
00412         
00417         Tag getAntennaId() const;
00418         
00419  
00420         
00421         
00428         void setAntennaId (Tag antennaId) throw(IllegalAccessException);
00429                 
00430         
00431         
00432         
00433 
00434 
00435         
00436         // ===> Attribute spectralWindowId
00437         
00438         
00439         
00440 
00441         
00446         Tag getSpectralWindowId() const;
00447         
00448  
00449         
00450         
00457         void setSpectralWindowId (Tag spectralWindowId) throw(IllegalAccessException);
00458                 
00459         
00460         
00461         
00462 
00463 
00465         // Links //
00467         
00468         
00469 
00470         
00471                 
00478          SpectralWindowRow* getSpectralWindowUsingSpectralWindowId();
00479          
00480 
00481         
00482 
00483         
00484 
00485         
00486                 
00493          AntennaRow* getAntennaUsingAntennaId();
00494          
00495 
00496         
00497 
00498         
00499         
00500         
00505         bool compareNoAutoInc(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int numPoly, Frequency freqOrigin, vector<double > pathCoeff, string calibrationMode);
00506         
00507         
00508 
00509         
00510         bool compareRequiredValue(int numPoly, Frequency freqOrigin, vector<double > pathCoeff, string calibrationMode); 
00511                  
00512         
00521         bool equalByRequiredValue(WVMCalRow* x) ;
00522 
00523 private:
00527         WVMCalTable &table;
00531         bool hasBeenAdded;
00532 
00533         // This method is used by the Table class when this row is added to the table.
00534         void isAdded();
00535 
00536 
00545         WVMCalRow (WVMCalTable &table);
00546 
00564          WVMCalRow (WVMCalTable &table, WVMCalRow &row);
00565                 
00567         // Intrinsic Table Attributes //
00569         
00570         
00571         // ===> Attribute operationMode, which is optional
00572         
00573         
00574         bool operationModeExists;
00575         
00576 
00577         string operationMode;
00578 
00579         
00580         
00581         
00582 
00583         
00584         // ===> Attribute numPoly
00585         
00586         
00587 
00588         int numPoly;
00589 
00590         
00591         
00592         
00593 
00594         
00595         // ===> Attribute freqOrigin
00596         
00597         
00598 
00599         Frequency freqOrigin;
00600 
00601         
00602         
00603         
00604 
00605         
00606         // ===> Attribute timeInterval
00607         
00608         
00609 
00610         ArrayTimeInterval timeInterval;
00611 
00612         
00613         
00614         
00615 
00616         
00617         // ===> Attribute pathCoeff
00618         
00619         
00620 
00621         vector<double > pathCoeff;
00622 
00623         
00624         
00625         
00626 
00627         
00628         // ===> Attribute calibrationMode
00629         
00630         
00631 
00632         string calibrationMode;
00633 
00634         
00635         
00636         
00637 
00638         
00639         // ===> Attribute wvrefModel, which is optional
00640         
00641         
00642         bool wvrefModelExists;
00643         
00644 
00645         float wvrefModel;
00646 
00647         
00648         
00649         
00650 
00652         // Extrinsic Table Attributes //
00654         
00655         
00656         // ===> Attribute antennaId
00657         
00658         
00659 
00660         Tag antennaId;
00661 
00662         
00663         
00664         
00665 
00666         
00667         // ===> Attribute spectralWindowId
00668         
00669         
00670 
00671         Tag spectralWindowId;
00672 
00673         
00674         
00675         
00676 
00678         // Links //
00680         
00681         
00682                 
00683 
00684          
00685 
00686         
00687 
00688         
00689                 
00690 
00691          
00692 
00693         
00694 
00695 
00696 };
00697 
00698 } // End namespace asdm
00699 
00700 #endif /* WVMCal_CLASS */

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