ExecBlockRow.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 ExecBlockRow.h 00032 */ 00033 00034 #ifndef ExecBlockRow_CLASS 00035 #define ExecBlockRow_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::ExecBlockRowIDL; 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 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 using asdm::Angle; 00125 using asdm::AngularRate; 00126 using asdm::ArrayTime; 00127 using asdm::Complex; 00128 using asdm::Entity; 00129 using asdm::EntityId; 00130 using asdm::EntityRef; 00131 using asdm::Flux; 00132 using asdm::Frequency; 00133 using asdm::Humidity; 00134 using asdm::Interval; 00135 using asdm::Length; 00136 using asdm::Pressure; 00137 using asdm::Speed; 00138 using asdm::Tag; 00139 using asdm::Temperature; 00140 using asdm::ConversionException; 00141 using asdm::NoSuchRow; 00142 using asdm::IllegalAccessException; 00143 00144 /*\file ExecBlock.h 00145 \brief Generated from model's revision "1.46", branch "HEAD" 00146 */ 00147 00148 namespace asdm { 00149 00150 //class asdm::ExecBlockTable; 00151 00152 00153 // class asdm::AntennaRow; 00154 class AntennaRow; 00155 00156 00163 class ExecBlockRow { 00164 friend class asdm::ExecBlockTable; 00165 00166 public: 00167 00168 virtual ~ExecBlockRow(); 00169 00173 ExecBlockTable &getTable() const; 00174 00175 #ifndef WITHOUT_ACS 00176 00180 ExecBlockRowIDL *toIDL() const; 00181 #endif 00182 00183 #ifndef WITHOUT_ACS 00184 00188 void setFromIDL (ExecBlockRowIDL 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 execBlockId 00210 00211 00212 00213 00214 00219 Tag getExecBlockId() const; 00220 00221 00222 00223 00224 00225 00226 00227 00228 00229 // ===> Attribute execBlockNum 00230 00231 00232 00233 00234 00239 int getExecBlockNum() const; 00240 00241 00242 00243 00251 void setExecBlockNum (int execBlockNum); 00252 00253 00254 00255 00256 00257 00258 00259 // ===> Attribute telescopeName 00260 00261 00262 00263 00264 00269 string getTelescopeName() const; 00270 00271 00272 00273 00281 void setTelescopeName (string telescopeName); 00282 00283 00284 00285 00286 00287 00288 00289 // ===> Attribute configName 00290 00291 00292 00293 00294 00299 string getConfigName() const; 00300 00301 00302 00303 00311 void setConfigName (string configName); 00312 00313 00314 00315 00316 00317 00318 00319 // ===> Attribute numAntenna 00320 00321 00322 00323 00324 00329 int getNumAntenna() const; 00330 00331 00332 00333 00341 void setNumAntenna (int numAntenna); 00342 00343 00344 00345 00346 00347 00348 00349 // ===> Attribute baseRangeMin 00350 00351 00352 00353 00354 00359 Length getBaseRangeMin() const; 00360 00361 00362 00363 00371 void setBaseRangeMin (Length baseRangeMin); 00372 00373 00374 00375 00376 00377 00378 00379 // ===> Attribute baseRangeMax 00380 00381 00382 00383 00384 00389 Length getBaseRangeMax() const; 00390 00391 00392 00393 00401 void setBaseRangeMax (Length baseRangeMax); 00402 00403 00404 00405 00406 00407 00408 00409 // ===> Attribute baseRmsMinor 00410 00411 00412 00413 00414 00419 Length getBaseRmsMinor() const; 00420 00421 00422 00423 00431 void setBaseRmsMinor (Length baseRmsMinor); 00432 00433 00434 00435 00436 00437 00438 00439 // ===> Attribute baseRmsMajor 00440 00441 00442 00443 00444 00449 Length getBaseRmsMajor() const; 00450 00451 00452 00453 00461 void setBaseRmsMajor (Length baseRmsMajor); 00462 00463 00464 00465 00466 00467 00468 00469 // ===> Attribute basePa 00470 00471 00472 00473 00474 00479 Angle getBasePa() const; 00480 00481 00482 00483 00491 void setBasePa (Angle basePa); 00492 00493 00494 00495 00496 00497 00498 00499 // ===> Attribute timeInterval 00500 00501 00502 00503 00504 00509 ArrayTimeInterval getTimeInterval() const; 00510 00511 00512 00513 00521 void setTimeInterval (ArrayTimeInterval timeInterval); 00522 00523 00524 00525 00526 00527 00528 00529 // ===> Attribute observerName 00530 00531 00532 00533 00534 00539 string getObserverName() const; 00540 00541 00542 00543 00551 void setObserverName (string observerName); 00552 00553 00554 00555 00556 00557 00558 00559 // ===> Attribute observingLog 00560 00561 00562 00563 00564 00569 vector<string > getObservingLog() const; 00570 00571 00572 00573 00581 void setObservingLog (vector<string > observingLog); 00582 00583 00584 00585 00586 00587 00588 00589 // ===> Attribute schedulerMode 00590 00591 00592 00593 00594 00599 vector<string > getSchedulerMode() const; 00600 00601 00602 00603 00611 void setSchedulerMode (vector<string > schedulerMode); 00612 00613 00614 00615 00616 00617 00618 00619 // ===> Attribute projectId 00620 00621 00622 00623 00624 00629 EntityRef getProjectId() const; 00630 00631 00632 00633 00641 void setProjectId (EntityRef projectId); 00642 00643 00644 00645 00646 00647 00648 00649 // ===> Attribute siteLongitude 00650 00651 00652 00653 00654 00659 Angle getSiteLongitude() const; 00660 00661 00662 00663 00671 void setSiteLongitude (Angle siteLongitude); 00672 00673 00674 00675 00676 00677 00678 00679 // ===> Attribute siteLatitude 00680 00681 00682 00683 00684 00689 Angle getSiteLatitude() const; 00690 00691 00692 00693 00701 void setSiteLatitude (Angle siteLatitude); 00702 00703 00704 00705 00706 00707 00708 00709 // ===> Attribute siteAltitude 00710 00711 00712 00713 00714 00719 Length getSiteAltitude() const; 00720 00721 00722 00723 00731 void setSiteAltitude (Length siteAltitude); 00732 00733 00734 00735 00736 00737 00738 00739 // ===> Attribute releaseDate, which is optional 00740 00741 00742 00747 bool isReleaseDateExists() const; 00748 00749 00750 00756 ArrayTime getReleaseDate() const throw(IllegalAccessException); 00757 00758 00759 00760 00767 void setReleaseDate (ArrayTime releaseDate); 00768 00769 00770 00771 00775 void clearReleaseDate (); 00776 00777 00778 00779 00780 // ===> Attribute flagRow 00781 00782 00783 00784 00785 00790 bool getFlagRow() const; 00791 00792 00793 00794 00802 void setFlagRow (bool flagRow); 00803 00804 00805 00806 00807 00808 00809 00810 // ===> Attribute execBlockUID 00811 00812 00813 00814 00815 00820 EntityRef getExecBlockUID() const; 00821 00822 00823 00824 00832 void setExecBlockUID (EntityRef execBlockUID); 00833 00834 00835 00836 00837 00838 00839 00840 // ===> Attribute aborted 00841 00842 00843 00844 00845 00850 bool getAborted() const; 00851 00852 00853 00854 00862 void setAborted (bool aborted); 00863 00864 00865 00866 00867 00868 00870 // Extrinsic Table Attributes // 00872 00873 00874 // ===> Attribute antennaId 00875 00876 00877 00878 00879 00884 vector<Tag> getAntennaId() const; 00885 00886 00887 00888 00896 void setAntennaId (vector<Tag> antennaId); 00897 00898 00899 00900 00901 00902 00904 // Links // 00906 00907 00908 00916 void setAntennaId (int i, Tag antennaId); 00917 00918 00919 00920 00921 00926 void addAntennaId(Tag id); 00927 00932 void addAntennaId(const vector<Tag> & id); 00933 00934 00940 const Tag getAntennaId(int i); 00941 00949 AntennaRow* getAntenna(int i); 00950 00955 vector<AntennaRow *> getAntennas(); 00956 00957 00958 00959 00960 00961 00962 00967 bool compareNoAutoInc(vector<Tag> antennaId, int execBlockNum, string telescopeName, string configName, int numAntenna, Length baseRangeMin, Length baseRangeMax, Length baseRmsMinor, Length baseRmsMajor, Angle basePa, ArrayTimeInterval timeInterval, string observerName, vector<string > observingLog, vector<string > schedulerMode, EntityRef projectId, Angle siteLongitude, Angle siteLatitude, Length siteAltitude, bool flagRow, EntityRef execBlockUID, bool aborted); 00968 00969 00970 00971 00972 bool compareRequiredValue(vector<Tag> antennaId, int execBlockNum, string telescopeName, string configName, int numAntenna, Length baseRangeMin, Length baseRangeMax, Length baseRmsMinor, Length baseRmsMajor, Angle basePa, ArrayTimeInterval timeInterval, string observerName, vector<string > observingLog, vector<string > schedulerMode, EntityRef projectId, Angle siteLongitude, Angle siteLatitude, Length siteAltitude, bool flagRow, EntityRef execBlockUID, bool aborted); 00973 00974 00983 bool equalByRequiredValue(ExecBlockRow* x) ; 00984 00985 private: 00989 ExecBlockTable &table; 00993 bool hasBeenAdded; 00994 00995 // This method is used by the Table class when this row is added to the table. 00996 void isAdded(); 00997 00998 01007 ExecBlockRow (ExecBlockTable &table); 01008 01026 ExecBlockRow (ExecBlockTable &table, ExecBlockRow &row); 01027 01029 // Intrinsic Table Attributes // 01031 01032 01033 // ===> Attribute execBlockId 01034 01035 01036 01037 Tag execBlockId; 01038 01039 01040 01041 01051 void setExecBlockId (Tag execBlockId); 01052 01053 01054 01055 01056 // ===> Attribute execBlockNum 01057 01058 01059 01060 int execBlockNum; 01061 01062 01063 01064 01065 01066 01067 // ===> Attribute telescopeName 01068 01069 01070 01071 string telescopeName; 01072 01073 01074 01075 01076 01077 01078 // ===> Attribute configName 01079 01080 01081 01082 string configName; 01083 01084 01085 01086 01087 01088 01089 // ===> Attribute numAntenna 01090 01091 01092 01093 int numAntenna; 01094 01095 01096 01097 01098 01099 01100 // ===> Attribute baseRangeMin 01101 01102 01103 01104 Length baseRangeMin; 01105 01106 01107 01108 01109 01110 01111 // ===> Attribute baseRangeMax 01112 01113 01114 01115 Length baseRangeMax; 01116 01117 01118 01119 01120 01121 01122 // ===> Attribute baseRmsMinor 01123 01124 01125 01126 Length baseRmsMinor; 01127 01128 01129 01130 01131 01132 01133 // ===> Attribute baseRmsMajor 01134 01135 01136 01137 Length baseRmsMajor; 01138 01139 01140 01141 01142 01143 01144 // ===> Attribute basePa 01145 01146 01147 01148 Angle basePa; 01149 01150 01151 01152 01153 01154 01155 // ===> Attribute timeInterval 01156 01157 01158 01159 ArrayTimeInterval timeInterval; 01160 01161 01162 01163 01164 01165 01166 // ===> Attribute observerName 01167 01168 01169 01170 string observerName; 01171 01172 01173 01174 01175 01176 01177 // ===> Attribute observingLog 01178 01179 01180 01181 vector<string > observingLog; 01182 01183 01184 01185 01186 01187 01188 // ===> Attribute schedulerMode 01189 01190 01191 01192 vector<string > schedulerMode; 01193 01194 01195 01196 01197 01198 01199 // ===> Attribute projectId 01200 01201 01202 01203 EntityRef projectId; 01204 01205 01206 01207 01208 01209 01210 // ===> Attribute siteLongitude 01211 01212 01213 01214 Angle siteLongitude; 01215 01216 01217 01218 01219 01220 01221 // ===> Attribute siteLatitude 01222 01223 01224 01225 Angle siteLatitude; 01226 01227 01228 01229 01230 01231 01232 // ===> Attribute siteAltitude 01233 01234 01235 01236 Length siteAltitude; 01237 01238 01239 01240 01241 01242 01243 // ===> Attribute releaseDate, which is optional 01244 01245 01246 bool releaseDateExists; 01247 01248 01249 ArrayTime releaseDate; 01250 01251 01252 01253 01254 01255 01256 // ===> Attribute flagRow 01257 01258 01259 01260 bool flagRow; 01261 01262 01263 01264 01265 01266 01267 // ===> Attribute execBlockUID 01268 01269 01270 01271 EntityRef execBlockUID; 01272 01273 01274 01275 01276 01277 01278 // ===> Attribute aborted 01279 01280 01281 01282 bool aborted; 01283 01284 01285 01286 01287 01289 // Extrinsic Table Attributes // 01291 01292 01293 // ===> Attribute antennaId 01294 01295 01296 01297 vector<Tag> antennaId; 01298 01299 01300 01301 01302 01304 // Links // 01306 01307 01308 01309 01310 01311 01312 01313 01314 }; 01315 01316 } // End namespace asdm 01317 01318 #endif /* ExecBlock_CLASS */

Generated on Tue Nov 18 17:43:41 2008 for ASDM C++ Implementation by doxygen 1.3.8