FreqOffsetRow.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 FreqOffsetRow.h
00032  */
00033  
00034 #ifndef FreqOffsetRow_CLASS
00035 #define FreqOffsetRow_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::FreqOffsetRowIDL;
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 using asdm::Angle;
00085 using asdm::AngularRate;
00086 using asdm::ArrayTime;
00087 using asdm::Complex;
00088 using asdm::Entity;
00089 using asdm::EntityId;
00090 using asdm::EntityRef;
00091 using asdm::Flux;
00092 using asdm::Frequency;
00093 using asdm::Humidity;
00094 using asdm::Interval;
00095 using asdm::Length;
00096 using asdm::Pressure;
00097 using asdm::Speed;
00098 using asdm::Tag;
00099 using asdm::Temperature;
00100 using asdm::ConversionException;
00101 using asdm::NoSuchRow;
00102 using asdm::IllegalAccessException;
00103 
00104 /*\file FreqOffset.h
00105     \brief Generated from model's revision "1.41", branch "HEAD"
00106 */
00107 
00108 namespace asdm {
00109 
00110 //class asdm::FreqOffsetTable;
00111 
00112 
00113 // class asdm::FeedRow;
00114 class FeedRow;
00115 
00116 // class asdm::AntennaRow;
00117 class AntennaRow;
00118 
00119 // class asdm::SpectralWindowRow;
00120 class SpectralWindowRow;
00121         
00122 
00129 class FreqOffsetRow {
00130 friend class asdm::FreqOffsetTable;
00131 
00132 public:
00133 
00134         virtual ~FreqOffsetRow();
00135 
00139         FreqOffsetTable &getTable() const;
00140         
00141 #ifndef WITHOUT_ACS
00142 
00146         FreqOffsetRowIDL *toIDL() const;
00147 #endif
00148         
00149 #ifndef WITHOUT_ACS
00150 
00154         void setFromIDL (FreqOffsetRowIDL x) throw(ConversionException);
00155 #endif
00156         
00161         string toXML() const;
00162 
00168         void setFromXML (string rowDoc) throw(ConversionException);
00169         
00171         // Intrinsic Table Attributes //
00173         
00174         
00175         // ===> Attribute timeInterval
00176         
00177         
00178         
00179 
00180         
00185         ArrayTimeInterval getTimeInterval() const;
00186         
00187  
00188         
00189         
00196         void setTimeInterval (ArrayTimeInterval timeInterval) throw(IllegalAccessException);
00197                 
00198         
00199         
00200         
00201 
00202 
00203         
00204         // ===> Attribute offset
00205         
00206         
00207         
00208 
00209         
00214         Frequency getOffset() const;
00215         
00216  
00217         
00218         
00224         void setOffset (Frequency offset);
00225                 
00226         
00227         
00228         
00229 
00230 
00232         // Extrinsic Table Attributes //
00234         
00235         
00236         // ===> Attribute antennaId
00237         
00238         
00239         
00240 
00241         
00246         Tag getAntennaId() const;
00247         
00248  
00249         
00250         
00257         void setAntennaId (Tag antennaId) throw(IllegalAccessException);
00258                 
00259         
00260         
00261         
00262 
00263 
00264         
00265         // ===> Attribute feedId
00266         
00267         
00268         
00269 
00270         
00275         int getFeedId() const;
00276         
00277  
00278         
00279         
00286         void setFeedId (int feedId) throw(IllegalAccessException);
00287                 
00288         
00289         
00290         
00291 
00292 
00293         
00294         // ===> Attribute spectralWindowId
00295         
00296         
00297         
00298 
00299         
00304         Tag getSpectralWindowId() const;
00305         
00306  
00307         
00308         
00315         void setSpectralWindowId (Tag spectralWindowId) throw(IllegalAccessException);
00316                 
00317         
00318         
00319         
00320 
00321 
00323         // Links //
00325         
00326         
00327 
00328         
00329                 
00330         // ===> Slice link from a row of FreqOffset table to a collection of row of Feed table.
00331         
00337         vector <FeedRow *> getFeeds();
00338         
00339         
00340 
00341         
00342 
00343         
00344 
00345         
00346                 
00353          AntennaRow* getAntennaUsingAntennaId();
00354          
00355 
00356         
00357 
00358         
00359 
00360         
00361                 
00368          SpectralWindowRow* getSpectralWindowUsingSpectralWindowId();
00369          
00370 
00371         
00372 
00373         
00374         
00375         
00380         bool compareNoAutoInc(Tag antennaId, int feedId, Tag spectralWindowId, ArrayTimeInterval timeInterval, Frequency offset);
00381         
00382         
00383 
00384         
00385         bool compareRequiredValue(Frequency offset); 
00386                  
00387         
00396         bool equalByRequiredValue(FreqOffsetRow* x) ;
00397 
00398 private:
00402         FreqOffsetTable &table;
00406         bool hasBeenAdded;
00407 
00408         // This method is used by the Table class when this row is added to the table.
00409         void isAdded();
00410 
00411 
00420         FreqOffsetRow (FreqOffsetTable &table);
00421 
00439          FreqOffsetRow (FreqOffsetTable &table, FreqOffsetRow &row);
00440                 
00442         // Intrinsic Table Attributes //
00444         
00445         
00446         // ===> Attribute timeInterval
00447         
00448         
00449 
00450         ArrayTimeInterval timeInterval;
00451 
00452         
00453         
00454         
00455 
00456         
00457         // ===> Attribute offset
00458         
00459         
00460 
00461         Frequency offset;
00462 
00463         
00464         
00465         
00466 
00468         // Extrinsic Table Attributes //
00470         
00471         
00472         // ===> Attribute antennaId
00473         
00474         
00475 
00476         Tag antennaId;
00477 
00478         
00479         
00480         
00481 
00482         
00483         // ===> Attribute feedId
00484         
00485         
00486 
00487         int feedId;
00488 
00489         
00490         
00491         
00492 
00493         
00494         // ===> Attribute spectralWindowId
00495         
00496         
00497 
00498         Tag spectralWindowId;
00499 
00500         
00501         
00502         
00503 
00505         // Links //
00507         
00508         
00509                 
00510 
00511 
00512         
00513 
00514         
00515                 
00516 
00517          
00518 
00519         
00520 
00521         
00522                 
00523 
00524          
00525 
00526         
00527 
00528 
00529 };
00530 
00531 } // End namespace asdm
00532 
00533 #endif /* FreqOffset_CLASS */

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