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 CalDeviceRow.h 00032 */ 00033 00034 #ifndef CalDeviceRow_CLASS 00035 #define CalDeviceRow_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::CalDeviceRowIDL; 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 #include "CCalibrationDevice.h" 00090 using namespace CalibrationDeviceMod; 00091 00092 00093 00094 00095 using asdm::Angle; 00096 using asdm::AngularRate; 00097 using asdm::ArrayTime; 00098 using asdm::Complex; 00099 using asdm::Entity; 00100 using asdm::EntityId; 00101 using asdm::EntityRef; 00102 using asdm::Flux; 00103 using asdm::Frequency; 00104 using asdm::Humidity; 00105 using asdm::Interval; 00106 using asdm::Length; 00107 using asdm::Pressure; 00108 using asdm::Speed; 00109 using asdm::Tag; 00110 using asdm::Temperature; 00111 using asdm::ConversionException; 00112 using asdm::NoSuchRow; 00113 using asdm::IllegalAccessException; 00114 00115 /*\file CalDevice.h 00116 \brief Generated from model's revision "1.46", branch "ALMA-5_1_1-B" 00117 */ 00118 00119 namespace asdm { 00120 00121 //class asdm::CalDeviceTable; 00122 00123 00124 // class asdm::AntennaRow; 00125 class AntennaRow; 00126 00127 // class asdm::SpectralWindowRow; 00128 class SpectralWindowRow; 00129 00130 // class asdm::FeedRow; 00131 class FeedRow; 00132 00133 00140 class CalDeviceRow { 00141 friend class asdm::CalDeviceTable; 00142 00143 public: 00144 00145 virtual ~CalDeviceRow(); 00146 00150 CalDeviceTable &getTable() const; 00151 00152 #ifndef WITHOUT_ACS 00153 00157 CalDeviceRowIDL *toIDL() const; 00158 #endif 00159 00160 #ifndef WITHOUT_ACS 00161 00165 void setFromIDL (CalDeviceRowIDL x) throw(ConversionException); 00166 #endif 00167 00172 string toXML() const; 00173 00179 void setFromXML (string rowDoc) throw(ConversionException); 00180 00182 // Intrinsic Table Attributes // 00184 00185 00186 // ===> Attribute timeInterval 00187 00188 00189 00190 00191 00196 ArrayTimeInterval getTimeInterval() const; 00197 00198 00199 00200 00208 void setTimeInterval (ArrayTimeInterval timeInterval) throw(IllegalAccessException); 00209 00210 00211 00212 00213 00214 00215 00216 // ===> Attribute numCalload 00217 00218 00219 00220 00221 00226 int getNumCalload() const; 00227 00228 00229 00230 00238 void setNumCalload (int numCalload) throw(IllegalAccessException); 00239 00240 00241 00242 00243 00244 00245 00246 // ===> Attribute noiseCal, which is optional 00247 00248 00249 00254 bool isNoiseCalExists() const; 00255 00256 00257 00263 vector<double > getNoiseCal() const throw(IllegalAccessException); 00264 00265 00266 00267 00274 void setNoiseCal (vector<double > noiseCal); 00275 00276 00277 00278 00282 void clearNoiseCal (); 00283 00284 00285 00286 00287 // ===> Attribute temperatureLoad, which is optional 00288 00289 00290 00295 bool isTemperatureLoadExists() const; 00296 00297 00298 00304 vector<Temperature > getTemperatureLoad() const throw(IllegalAccessException); 00305 00306 00307 00308 00315 void setTemperatureLoad (vector<Temperature > temperatureLoad); 00316 00317 00318 00319 00323 void clearTemperatureLoad (); 00324 00325 00326 00327 00328 // ===> Attribute calEff, which is optional 00329 00330 00331 00336 bool isCalEffExists() const; 00337 00338 00339 00345 vector<vector<float > > getCalEff() const throw(IllegalAccessException); 00346 00347 00348 00349 00356 void setCalEff (vector<vector<float > > calEff); 00357 00358 00359 00360 00364 void clearCalEff (); 00365 00366 00367 00368 00369 // ===> Attribute calLoadName 00370 00371 00372 00373 00374 00379 vector<CalibrationDeviceMod::CalibrationDevice > getCalLoadName() const; 00380 00381 00382 00383 00391 void setCalLoadName (vector<CalibrationDeviceMod::CalibrationDevice > calLoadName) throw(IllegalAccessException); 00392 00393 00394 00395 00396 00397 00399 // Extrinsic Table Attributes // 00401 00402 00403 // ===> Attribute antennaId 00404 00405 00406 00407 00408 00413 Tag getAntennaId() const; 00414 00415 00416 00417 00425 void setAntennaId (Tag antennaId) throw(IllegalAccessException); 00426 00427 00428 00429 00430 00431 00432 00433 // ===> Attribute feedId 00434 00435 00436 00437 00438 00443 int getFeedId() const; 00444 00445 00446 00447 00455 void setFeedId (int feedId) throw(IllegalAccessException); 00456 00457 00458 00459 00460 00461 00462 00463 // ===> Attribute spectralWindowId 00464 00465 00466 00467 00468 00473 Tag getSpectralWindowId() const; 00474 00475 00476 00477 00485 void setSpectralWindowId (Tag spectralWindowId) throw(IllegalAccessException); 00486 00487 00488 00489 00490 00491 00493 // Links // 00495 00496 00497 00498 00499 00506 AntennaRow* getAntennaUsingAntennaId(); 00507 00508 00509 00510 00511 00512 00513 00514 00521 SpectralWindowRow* getSpectralWindowUsingSpectralWindowId(); 00522 00523 00524 00525 00526 00527 00528 00529 00530 // ===> Slice link from a row of CalDevice table to a collection of row of Feed table. 00531 00537 vector <FeedRow *> getFeeds(); 00538 00539 00540 00541 00542 00543 00544 00545 00550 bool compareNoAutoInc(Tag antennaId, int feedId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int numCalload, vector<CalibrationDeviceMod::CalibrationDevice > calLoadName); 00551 00552 00553 00554 00555 bool compareRequiredValue(int numCalload, vector<CalibrationDeviceMod::CalibrationDevice > calLoadName); 00556 00557 00566 bool equalByRequiredValue(CalDeviceRow* x) ; 00567 00568 private: 00572 CalDeviceTable &table; 00576 bool hasBeenAdded; 00577 00578 // This method is used by the Table class when this row is added to the table. 00579 void isAdded(); 00580 00581 00590 CalDeviceRow (CalDeviceTable &table); 00591 00609 CalDeviceRow (CalDeviceTable &table, CalDeviceRow &row); 00610 00612 // Intrinsic Table Attributes // 00614 00615 00616 // ===> Attribute timeInterval 00617 00618 00619 00620 ArrayTimeInterval timeInterval; 00621 00622 00623 00624 00625 00626 00627 // ===> Attribute numCalload 00628 00629 00630 00631 int numCalload; 00632 00633 00634 00635 00636 00637 00638 // ===> Attribute noiseCal, which is optional 00639 00640 00641 bool noiseCalExists; 00642 00643 00644 vector<double > noiseCal; 00645 00646 00647 00648 00649 00650 00651 // ===> Attribute temperatureLoad, which is optional 00652 00653 00654 bool temperatureLoadExists; 00655 00656 00657 vector<Temperature > temperatureLoad; 00658 00659 00660 00661 00662 00663 00664 // ===> Attribute calEff, which is optional 00665 00666 00667 bool calEffExists; 00668 00669 00670 vector<vector<float > > calEff; 00671 00672 00673 00674 00675 00676 00677 // ===> Attribute calLoadName 00678 00679 00680 00681 vector<CalibrationDeviceMod::CalibrationDevice > calLoadName; 00682 00683 00684 00685 00686 00688 // Extrinsic Table Attributes // 00690 00691 00692 // ===> Attribute antennaId 00693 00694 00695 00696 Tag antennaId; 00697 00698 00699 00700 00701 00702 00703 // ===> Attribute feedId 00704 00705 00706 00707 int feedId; 00708 00709 00710 00711 00712 00713 00714 // ===> Attribute spectralWindowId 00715 00716 00717 00718 Tag spectralWindowId; 00719 00720 00721 00722 00723 00725 // Links // 00727 00728 00729 00730 00731 00732 00733 00734 00735 00736 00737 00738 00739 00740 00741 00742 00743 00744 00745 00746 00747 00748 00749 }; 00750 00751 } // End namespace asdm 00752 00753 #endif /* CalDevice_CLASS */
1.5.1