CalPositionRow.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 CalPositionRow.h
00032  */
00033  
00034 #ifndef CalPositionRow_CLASS
00035 #define CalPositionRow_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::CalPositionRowIDL;
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         
00095 
00096         
00097 
00098         
00099 
00100         
00101 #include "CPositionMethod.h"
00102 using namespace PositionMethodMod;
00103         
00104 
00105         
00106 
00107         
00108 
00109         
00110 
00111         
00112 
00113 
00114 
00115 using asdm::Angle;
00116 using asdm::AngularRate;
00117 using asdm::ArrayTime;
00118 using asdm::Complex;
00119 using asdm::Entity;
00120 using asdm::EntityId;
00121 using asdm::EntityRef;
00122 using asdm::Flux;
00123 using asdm::Frequency;
00124 using asdm::Humidity;
00125 using asdm::Interval;
00126 using asdm::Length;
00127 using asdm::Pressure;
00128 using asdm::Speed;
00129 using asdm::Tag;
00130 using asdm::Temperature;
00131 using asdm::ConversionException;
00132 using asdm::NoSuchRow;
00133 using asdm::IllegalAccessException;
00134 
00135 /*\file CalPosition.h
00136     \brief Generated from model's revision "1.41", branch "HEAD"
00137 */
00138 
00139 namespace asdm {
00140 
00141 //class asdm::CalPositionTable;
00142 
00143 
00144 // class asdm::CalReductionRow;
00145 class CalReductionRow;
00146 
00147 // class asdm::CalDataRow;
00148 class CalDataRow;
00149         
00150 
00157 class CalPositionRow {
00158 friend class asdm::CalPositionTable;
00159 
00160 public:
00161 
00162         virtual ~CalPositionRow();
00163 
00167         CalPositionTable &getTable() const;
00168         
00169 #ifndef WITHOUT_ACS
00170 
00174         CalPositionRowIDL *toIDL() const;
00175 #endif
00176         
00177 #ifndef WITHOUT_ACS
00178 
00182         void setFromIDL (CalPositionRowIDL x) throw(ConversionException);
00183 #endif
00184         
00189         string toXML() const;
00190 
00196         void setFromXML (string rowDoc) throw(ConversionException);
00197         
00199         // Intrinsic Table Attributes //
00201         
00202         
00203         // ===> Attribute antennaName
00204         
00205         
00206         
00207 
00208         
00213         string getAntennaName() const;
00214         
00215  
00216         
00217         
00224         void setAntennaName (string antennaName) throw(IllegalAccessException);
00225                 
00226         
00227         
00228         
00229 
00230 
00231         
00232         // ===> Attribute numAntenna
00233         
00234         
00235         
00236 
00237         
00242         int getNumAntenna() const;
00243         
00244  
00245         
00246         
00252         void setNumAntenna (int numAntenna);
00253                 
00254         
00255         
00256         
00257 
00258 
00259         
00260         // ===> Attribute startValidTime
00261         
00262         
00263         
00264 
00265         
00270         ArrayTime getStartValidTime() const;
00271         
00272  
00273         
00274         
00280         void setStartValidTime (ArrayTime startValidTime);
00281                 
00282         
00283         
00284         
00285 
00286 
00287         
00288         // ===> Attribute endValidTime
00289         
00290         
00291         
00292 
00293         
00298         ArrayTime getEndValidTime() const;
00299         
00300  
00301         
00302         
00308         void setEndValidTime (ArrayTime endValidTime);
00309                 
00310         
00311         
00312         
00313 
00314 
00315         
00316         // ===> Attribute positionOffset
00317         
00318         
00319         
00320 
00321         
00326         vector<Length > getPositionOffset() const;
00327         
00328  
00329         
00330         
00336         void setPositionOffset (vector<Length > positionOffset);
00337                 
00338         
00339         
00340         
00341 
00342 
00343         
00344         // ===> Attribute positionErr
00345         
00346         
00347         
00348 
00349         
00354         vector<Length > getPositionErr() const;
00355         
00356  
00357         
00358         
00364         void setPositionErr (vector<Length > positionErr);
00365                 
00366         
00367         
00368         
00369 
00370 
00371         
00372         // ===> Attribute delayRms
00373         
00374         
00375         
00376 
00377         
00382         Interval getDelayRms() const;
00383         
00384  
00385         
00386         
00392         void setDelayRms (Interval delayRms);
00393                 
00394         
00395         
00396         
00397 
00398 
00399         
00400         // ===> Attribute phaseRms
00401         
00402         
00403         
00404 
00405         
00410         Angle getPhaseRms() const;
00411         
00412  
00413         
00414         
00420         void setPhaseRms (Angle phaseRms);
00421                 
00422         
00423         
00424         
00425 
00426 
00427         
00428         // ===> Attribute axesOffset
00429         
00430         
00431         
00432 
00433         
00438         Length getAxesOffset() const;
00439         
00440  
00441         
00442         
00448         void setAxesOffset (Length axesOffset);
00449                 
00450         
00451         
00452         
00453 
00454 
00455         
00456         // ===> Attribute axesOffsetFixed
00457         
00458         
00459         
00460 
00461         
00466         bool getAxesOffsetFixed() const;
00467         
00468  
00469         
00470         
00476         void setAxesOffsetFixed (bool axesOffsetFixed);
00477                 
00478         
00479         
00480         
00481 
00482 
00483         
00484         // ===> Attribute axesOffsetErr
00485         
00486         
00487         
00488 
00489         
00494         Length getAxesOffsetErr() const;
00495         
00496  
00497         
00498         
00504         void setAxesOffsetErr (Length axesOffsetErr);
00505                 
00506         
00507         
00508         
00509 
00510 
00511         
00512         // ===> Attribute positionMethod
00513         
00514         
00515         
00516 
00517         
00522         PositionMethod getPositionMethod() const;
00523         
00524  
00525         
00526         
00532         void setPositionMethod (PositionMethod positionMethod);
00533                 
00534         
00535         
00536         
00537 
00538 
00539         
00540         // ===> Attribute refAntennaNames
00541         
00542         
00543         
00544 
00545         
00550         vector<string > getRefAntennaNames() const;
00551         
00552  
00553         
00554         
00560         void setRefAntennaNames (vector<string > refAntennaNames);
00561                 
00562         
00563         
00564         
00565 
00566 
00567         
00568         // ===> Attribute stationName
00569         
00570         
00571         
00572 
00573         
00578         string getStationName() const;
00579         
00580  
00581         
00582         
00588         void setStationName (string stationName);
00589                 
00590         
00591         
00592         
00593 
00594 
00595         
00596         // ===> Attribute antennaPosition
00597         
00598         
00599         
00600 
00601         
00606         vector<Length > getAntennaPosition() const;
00607         
00608  
00609         
00610         
00616         void setAntennaPosition (vector<Length > antennaPosition);
00617                 
00618         
00619         
00620         
00621 
00622 
00623         
00624         // ===> Attribute stationPosition
00625         
00626         
00627         
00628 
00629         
00634         vector<Length > getStationPosition() const;
00635         
00636  
00637         
00638         
00644         void setStationPosition (vector<Length > stationPosition);
00645                 
00646         
00647         
00648         
00649 
00650 
00652         // Extrinsic Table Attributes //
00654         
00655         
00656         // ===> Attribute calDataId
00657         
00658         
00659         
00660 
00661         
00666         Tag getCalDataId() const;
00667         
00668  
00669         
00670         
00677         void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00678                 
00679         
00680         
00681         
00682 
00683 
00684         
00685         // ===> Attribute calReductionId
00686         
00687         
00688         
00689 
00690         
00695         Tag getCalReductionId() const;
00696         
00697  
00698         
00699         
00706         void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00707                 
00708         
00709         
00710         
00711 
00712 
00714         // Links //
00716         
00717         
00718 
00719         
00720                 
00727          CalReductionRow* getCalReductionUsingCalReductionId();
00728          
00729 
00730         
00731 
00732         
00733 
00734         
00735                 
00742          CalDataRow* getCalDataUsingCalDataId();
00743          
00744 
00745         
00746 
00747         
00748         
00749         
00754         bool compareNoAutoInc(Tag calDataId, Tag calReductionId, string antennaName, int numAntenna, ArrayTime startValidTime, ArrayTime endValidTime, vector<Length > positionOffset, vector<Length > positionErr, Interval delayRms, Angle phaseRms, Length axesOffset, bool axesOffsetFixed, Length axesOffsetErr, PositionMethod positionMethod, vector<string > refAntennaNames, string stationName, vector<Length > antennaPosition, vector<Length > stationPosition);
00755         
00756         
00757 
00758         
00759         bool compareRequiredValue(int numAntenna, ArrayTime startValidTime, ArrayTime endValidTime, vector<Length > positionOffset, vector<Length > positionErr, Interval delayRms, Angle phaseRms, Length axesOffset, bool axesOffsetFixed, Length axesOffsetErr, PositionMethod positionMethod, vector<string > refAntennaNames, string stationName, vector<Length > antennaPosition, vector<Length > stationPosition); 
00760                  
00761         
00770         bool equalByRequiredValue(CalPositionRow* x) ;
00771 
00772 private:
00776         CalPositionTable &table;
00780         bool hasBeenAdded;
00781 
00782         // This method is used by the Table class when this row is added to the table.
00783         void isAdded();
00784 
00785 
00794         CalPositionRow (CalPositionTable &table);
00795 
00813          CalPositionRow (CalPositionTable &table, CalPositionRow &row);
00814                 
00816         // Intrinsic Table Attributes //
00818         
00819         
00820         // ===> Attribute antennaName
00821         
00822         
00823 
00824         string antennaName;
00825 
00826         
00827         
00828         
00829 
00830         
00831         // ===> Attribute numAntenna
00832         
00833         
00834 
00835         int numAntenna;
00836 
00837         
00838         
00839         
00840 
00841         
00842         // ===> Attribute startValidTime
00843         
00844         
00845 
00846         ArrayTime startValidTime;
00847 
00848         
00849         
00850         
00851 
00852         
00853         // ===> Attribute endValidTime
00854         
00855         
00856 
00857         ArrayTime endValidTime;
00858 
00859         
00860         
00861         
00862 
00863         
00864         // ===> Attribute positionOffset
00865         
00866         
00867 
00868         vector<Length > positionOffset;
00869 
00870         
00871         
00872         
00873 
00874         
00875         // ===> Attribute positionErr
00876         
00877         
00878 
00879         vector<Length > positionErr;
00880 
00881         
00882         
00883         
00884 
00885         
00886         // ===> Attribute delayRms
00887         
00888         
00889 
00890         Interval delayRms;
00891 
00892         
00893         
00894         
00895 
00896         
00897         // ===> Attribute phaseRms
00898         
00899         
00900 
00901         Angle phaseRms;
00902 
00903         
00904         
00905         
00906 
00907         
00908         // ===> Attribute axesOffset
00909         
00910         
00911 
00912         Length axesOffset;
00913 
00914         
00915         
00916         
00917 
00918         
00919         // ===> Attribute axesOffsetFixed
00920         
00921         
00922 
00923         bool axesOffsetFixed;
00924 
00925         
00926         
00927         
00928 
00929         
00930         // ===> Attribute axesOffsetErr
00931         
00932         
00933 
00934         Length axesOffsetErr;
00935 
00936         
00937         
00938         
00939 
00940         
00941         // ===> Attribute positionMethod
00942         
00943         
00944 
00945         PositionMethod positionMethod;
00946 
00947         
00948         
00949         
00950 
00951         
00952         // ===> Attribute refAntennaNames
00953         
00954         
00955 
00956         vector<string > refAntennaNames;
00957 
00958         
00959         
00960         
00961 
00962         
00963         // ===> Attribute stationName
00964         
00965         
00966 
00967         string stationName;
00968 
00969         
00970         
00971         
00972 
00973         
00974         // ===> Attribute antennaPosition
00975         
00976         
00977 
00978         vector<Length > antennaPosition;
00979 
00980         
00981         
00982         
00983 
00984         
00985         // ===> Attribute stationPosition
00986         
00987         
00988 
00989         vector<Length > stationPosition;
00990 
00991         
00992         
00993         
00994 
00996         // Extrinsic Table Attributes //
00998         
00999         
01000         // ===> Attribute calDataId
01001         
01002         
01003 
01004         Tag calDataId;
01005 
01006         
01007         
01008         
01009 
01010         
01011         // ===> Attribute calReductionId
01012         
01013         
01014 
01015         Tag calReductionId;
01016 
01017         
01018         
01019         
01020 
01022         // Links //
01024         
01025         
01026                 
01027 
01028          
01029 
01030         
01031 
01032         
01033                 
01034 
01035          
01036 
01037         
01038 
01039 
01040 };
01041 
01042 } // End namespace asdm
01043 
01044 #endif /* CalPosition_CLASS */

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