SourceParameterRow.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 SourceParameterRow.h
00032  */
00033  
00034 #ifndef SourceParameterRow_CLASS
00035 #define SourceParameterRow_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::SourceParameterRowIDL;
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 #include "CStokesParameter.h"
00088 using namespace StokesParameterMod;
00089         
00090 
00091         
00092 
00093         
00094 
00095         
00096 
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 SourceParameter.h
00134     \brief Generated from model's revision "1.41", branch "HEAD"
00135 */
00136 
00137 namespace asdm {
00138 
00139 //class asdm::SourceParameterTable;
00140 
00141 
00142 // class asdm::SourceRow;
00143 class SourceRow;
00144         
00145 
00152 class SourceParameterRow {
00153 friend class asdm::SourceParameterTable;
00154 
00155 public:
00156 
00157         virtual ~SourceParameterRow();
00158 
00162         SourceParameterTable &getTable() const;
00163         
00164 #ifndef WITHOUT_ACS
00165 
00169         SourceParameterRowIDL *toIDL() const;
00170 #endif
00171         
00172 #ifndef WITHOUT_ACS
00173 
00177         void setFromIDL (SourceParameterRowIDL x) throw(ConversionException);
00178 #endif
00179         
00184         string toXML() const;
00185 
00191         void setFromXML (string rowDoc) throw(ConversionException);
00192         
00194         // Intrinsic Table Attributes //
00196         
00197         
00198         // ===> Attribute timeInterval
00199         
00200         
00201         
00202 
00203         
00208         ArrayTimeInterval getTimeInterval() const;
00209         
00210  
00211         
00212         
00219         void setTimeInterval (ArrayTimeInterval timeInterval) throw(IllegalAccessException);
00220                 
00221         
00222         
00223         
00224 
00225 
00226         
00227         // ===> Attribute numFreq
00228         
00229         
00230         
00231 
00232         
00237         int getNumFreq() const;
00238         
00239  
00240         
00241         
00247         void setNumFreq (int numFreq);
00248                 
00249         
00250         
00251         
00252 
00253 
00254         
00255         // ===> Attribute numStokes
00256         
00257         
00258         
00259 
00260         
00265         int getNumStokes() const;
00266         
00267  
00268         
00269         
00275         void setNumStokes (int numStokes);
00276                 
00277         
00278         
00279         
00280 
00281 
00282         
00283         // ===> Attribute numDep
00284         
00285         
00286         
00287 
00288         
00293         int getNumDep() const;
00294         
00295  
00296         
00297         
00303         void setNumDep (int numDep);
00304                 
00305         
00306         
00307         
00308 
00309 
00310         
00311         // ===> Attribute stokesParameter
00312         
00313         
00314         
00315 
00316         
00321         vector<StokesParameter > getStokesParameter() const;
00322         
00323  
00324         
00325         
00331         void setStokesParameter (vector<StokesParameter > stokesParameter);
00332                 
00333         
00334         
00335         
00336 
00337 
00338         
00339         // ===> Attribute flux
00340         
00341         
00342         
00343 
00344         
00349         vector<vector<Flux > > getFlux() const;
00350         
00351  
00352         
00353         
00359         void setFlux (vector<vector<Flux > > flux);
00360                 
00361         
00362         
00363         
00364 
00365 
00366         
00367         // ===> Attribute size, which is optional
00368         
00369         
00370         
00375         bool isSizeExists() const;
00376         
00377 
00378         
00384         vector<vector<Angle > > getSize() const throw(IllegalAccessException);
00385         
00386  
00387         
00388         
00394         void setSize (vector<vector<Angle > > size);
00395                 
00396         
00397         
00398         
00402         void clearSize ();
00403         
00404 
00405 
00406         
00407         // ===> Attribute positionAngle, which is optional
00408         
00409         
00410         
00415         bool isPositionAngleExists() const;
00416         
00417 
00418         
00424         vector<Angle > getPositionAngle() const throw(IllegalAccessException);
00425         
00426  
00427         
00428         
00434         void setPositionAngle (vector<Angle > positionAngle);
00435                 
00436         
00437         
00438         
00442         void clearPositionAngle ();
00443         
00444 
00445 
00446         
00447         // ===> Attribute sourceParameterId
00448         
00449         
00450         
00451 
00452         
00457         int getSourceParameterId() const;
00458         
00459  
00460         
00461         
00462         
00463         
00464 
00465 
00466         
00467         // ===> Attribute frequency
00468         
00469         
00470         
00471 
00472         
00477         vector<Frequency > getFrequency() const;
00478         
00479  
00480         
00481         
00487         void setFrequency (vector<Frequency > frequency);
00488                 
00489         
00490         
00491         
00492 
00493 
00494         
00495         // ===> Attribute frequencyInterval
00496         
00497         
00498         
00499 
00500         
00505         vector<Frequency > getFrequencyInterval() const;
00506         
00507  
00508         
00509         
00515         void setFrequencyInterval (vector<Frequency > frequencyInterval);
00516                 
00517         
00518         
00519         
00520 
00521 
00522         
00523         // ===> Attribute fluxErr
00524         
00525         
00526         
00527 
00528         
00533         vector<vector<Flux > > getFluxErr() const;
00534         
00535  
00536         
00537         
00543         void setFluxErr (vector<vector<Flux > > fluxErr);
00544                 
00545         
00546         
00547         
00548 
00549 
00550         
00551         // ===> Attribute sizeErr, which is optional
00552         
00553         
00554         
00559         bool isSizeErrExists() const;
00560         
00561 
00562         
00568         vector<vector<Angle > > getSizeErr() const throw(IllegalAccessException);
00569         
00570  
00571         
00572         
00578         void setSizeErr (vector<vector<Angle > > sizeErr);
00579                 
00580         
00581         
00582         
00586         void clearSizeErr ();
00587         
00588 
00589 
00590         
00591         // ===> Attribute positionAngleErr, which is optional
00592         
00593         
00594         
00599         bool isPositionAngleErrExists() const;
00600         
00601 
00602         
00608         vector<Angle > getPositionAngleErr() const throw(IllegalAccessException);
00609         
00610  
00611         
00612         
00618         void setPositionAngleErr (vector<Angle > positionAngleErr);
00619                 
00620         
00621         
00622         
00626         void clearPositionAngleErr ();
00627         
00628 
00629 
00630         
00631         // ===> Attribute depSourceParameterId, which is optional
00632         
00633         
00634         
00639         bool isDepSourceParameterIdExists() const;
00640         
00641 
00642         
00648         vector<int > getDepSourceParameterId() const throw(IllegalAccessException);
00649         
00650  
00651         
00652         
00658         void setDepSourceParameterId (vector<int > depSourceParameterId);
00659                 
00660         
00661         
00662         
00666         void clearDepSourceParameterId ();
00667         
00668 
00669 
00671         // Extrinsic Table Attributes //
00673         
00674         
00675         // ===> Attribute sourceId
00676         
00677         
00678         
00679 
00680         
00685         int getSourceId() const;
00686         
00687  
00688         
00689         
00696         void setSourceId (int sourceId) throw(IllegalAccessException);
00697                 
00698         
00699         
00700         
00701 
00702 
00704         // Links //
00706         
00707         
00708 
00709         
00710                 
00711         // ===> Slice link from a row of SourceParameter table to a collection of row of Source table.
00712         
00718         vector <SourceRow *> getSources();
00719         
00720         
00721 
00722         
00723 
00724         
00725         
00726         
00731         bool compareNoAutoInc(int sourceId, ArrayTimeInterval timeInterval, int numFreq, int numStokes, int numDep, vector<StokesParameter > stokesParameter, vector<vector<Flux > > flux, vector<Frequency > frequency, vector<Frequency > frequencyInterval, vector<vector<Flux > > fluxErr);
00732         
00733         
00734 
00735         
00736         bool compareRequiredValue(int numFreq, int numStokes, int numDep, vector<StokesParameter > stokesParameter, vector<vector<Flux > > flux, vector<Frequency > frequency, vector<Frequency > frequencyInterval, vector<vector<Flux > > fluxErr); 
00737                  
00738         
00747         bool equalByRequiredValue(SourceParameterRow* x) ;
00748 
00749 private:
00753         SourceParameterTable &table;
00757         bool hasBeenAdded;
00758 
00759         // This method is used by the Table class when this row is added to the table.
00760         void isAdded();
00761 
00762 
00771         SourceParameterRow (SourceParameterTable &table);
00772 
00790          SourceParameterRow (SourceParameterTable &table, SourceParameterRow &row);
00791                 
00793         // Intrinsic Table Attributes //
00795         
00796         
00797         // ===> Attribute timeInterval
00798         
00799         
00800 
00801         ArrayTimeInterval timeInterval;
00802 
00803         
00804         
00805         
00806 
00807         
00808         // ===> Attribute numFreq
00809         
00810         
00811 
00812         int numFreq;
00813 
00814         
00815         
00816         
00817 
00818         
00819         // ===> Attribute numStokes
00820         
00821         
00822 
00823         int numStokes;
00824 
00825         
00826         
00827         
00828 
00829         
00830         // ===> Attribute numDep
00831         
00832         
00833 
00834         int numDep;
00835 
00836         
00837         
00838         
00839 
00840         
00841         // ===> Attribute stokesParameter
00842         
00843         
00844 
00845         vector<StokesParameter > stokesParameter;
00846 
00847         
00848         
00849         
00850 
00851         
00852         // ===> Attribute flux
00853         
00854         
00855 
00856         vector<vector<Flux > > flux;
00857 
00858         
00859         
00860         
00861 
00862         
00863         // ===> Attribute size, which is optional
00864         
00865         
00866         bool sizeExists;
00867         
00868 
00869         vector<vector<Angle > > size;
00870 
00871         
00872         
00873         
00874 
00875         
00876         // ===> Attribute positionAngle, which is optional
00877         
00878         
00879         bool positionAngleExists;
00880         
00881 
00882         vector<Angle > positionAngle;
00883 
00884         
00885         
00886         
00887 
00888         
00889         // ===> Attribute sourceParameterId
00890         
00891         
00892 
00893         int sourceParameterId;
00894 
00895         
00896         
00897         
00904         void setSourceParameterId (int sourceParameterId) throw(IllegalAccessException);
00905                 
00906         
00907 
00908         
00909         // ===> Attribute frequency
00910         
00911         
00912 
00913         vector<Frequency > frequency;
00914 
00915         
00916         
00917         
00918 
00919         
00920         // ===> Attribute frequencyInterval
00921         
00922         
00923 
00924         vector<Frequency > frequencyInterval;
00925 
00926         
00927         
00928         
00929 
00930         
00931         // ===> Attribute fluxErr
00932         
00933         
00934 
00935         vector<vector<Flux > > fluxErr;
00936 
00937         
00938         
00939         
00940 
00941         
00942         // ===> Attribute sizeErr, which is optional
00943         
00944         
00945         bool sizeErrExists;
00946         
00947 
00948         vector<vector<Angle > > sizeErr;
00949 
00950         
00951         
00952         
00953 
00954         
00955         // ===> Attribute positionAngleErr, which is optional
00956         
00957         
00958         bool positionAngleErrExists;
00959         
00960 
00961         vector<Angle > positionAngleErr;
00962 
00963         
00964         
00965         
00966 
00967         
00968         // ===> Attribute depSourceParameterId, which is optional
00969         
00970         
00971         bool depSourceParameterIdExists;
00972         
00973 
00974         vector<int > depSourceParameterId;
00975 
00976         
00977         
00978         
00979 
00981         // Extrinsic Table Attributes //
00983         
00984         
00985         // ===> Attribute sourceId
00986         
00987         
00988 
00989         int sourceId;
00990 
00991         
00992         
00993         
00994 
00996         // Links //
00998         
00999         
01000                 
01001 
01002 
01003         
01004 
01005 
01006 };
01007 
01008 } // End namespace asdm
01009 
01010 #endif /* SourceParameter_CLASS */

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