ReceiverRow.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 ReceiverRow.h 00032 */ 00033 00034 #ifndef ReceiverRow_CLASS 00035 #define ReceiverRow_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::ReceiverRowIDL; 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 #include "CReceiverBand.h" 00086 using namespace ReceiverBandMod; 00087 00088 00089 00090 00091 00092 #include "CReceiverSideband.h" 00093 using namespace ReceiverSidebandMod; 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 using asdm::Angle; 00113 using asdm::AngularRate; 00114 using asdm::ArrayTime; 00115 using asdm::Complex; 00116 using asdm::Entity; 00117 using asdm::EntityId; 00118 using asdm::EntityRef; 00119 using asdm::Flux; 00120 using asdm::Frequency; 00121 using asdm::Humidity; 00122 using asdm::Interval; 00123 using asdm::Length; 00124 using asdm::Pressure; 00125 using asdm::Speed; 00126 using asdm::Tag; 00127 using asdm::Temperature; 00128 using asdm::ConversionException; 00129 using asdm::NoSuchRow; 00130 using asdm::IllegalAccessException; 00131 00132 /*\file Receiver.h 00133 \brief Generated from model's revision "1.46", branch "HEAD" 00134 */ 00135 00136 namespace asdm { 00137 00138 //class asdm::ReceiverTable; 00139 00140 00141 // class asdm::SpectralWindowRow; 00142 class SpectralWindowRow; 00143 00144 00151 class ReceiverRow { 00152 friend class asdm::ReceiverTable; 00153 00154 public: 00155 00156 virtual ~ReceiverRow(); 00157 00161 ReceiverTable &getTable() const; 00162 00163 #ifndef WITHOUT_ACS 00164 00168 ReceiverRowIDL *toIDL() const; 00169 #endif 00170 00171 #ifndef WITHOUT_ACS 00172 00176 void setFromIDL (ReceiverRowIDL x) throw(ConversionException); 00177 #endif 00178 00183 string toXML() const; 00184 00190 void setFromXML (string rowDoc) throw(ConversionException); 00191 00193 // Intrinsic Table Attributes // 00195 00196 00197 // ===> Attribute timeInterval 00198 00199 00200 00201 00202 00207 ArrayTimeInterval getTimeInterval() const; 00208 00209 00210 00211 00221 void setTimeInterval (ArrayTimeInterval timeInterval); 00222 00223 00224 00225 00226 00227 00228 00229 // ===> Attribute numLo 00230 00231 00232 00233 00234 00239 int getNumLo() const; 00240 00241 00242 00243 00251 void setNumLo (int numLo); 00252 00253 00254 00255 00256 00257 00258 00259 // ===> Attribute name 00260 00261 00262 00263 00264 00269 string getName() const; 00270 00271 00272 00273 00281 void setName (string name); 00282 00283 00284 00285 00286 00287 00288 00289 // ===> Attribute frequencyBand 00290 00291 00292 00293 00294 00299 ReceiverBandMod::ReceiverBand getFrequencyBand() const; 00300 00301 00302 00303 00311 void setFrequencyBand (ReceiverBandMod::ReceiverBand frequencyBand); 00312 00313 00314 00315 00316 00317 00318 00319 // ===> Attribute freqLo 00320 00321 00322 00323 00324 00329 vector<Frequency > getFreqLo() const; 00330 00331 00332 00333 00341 void setFreqLo (vector<Frequency > freqLo); 00342 00343 00344 00345 00346 00347 00348 00349 // ===> Attribute receiverSideband 00350 00351 00352 00353 00354 00359 ReceiverSidebandMod::ReceiverSideband getReceiverSideband() const; 00360 00361 00362 00363 00371 void setReceiverSideband (ReceiverSidebandMod::ReceiverSideband receiverSideband); 00372 00373 00374 00375 00376 00377 00378 00379 // ===> Attribute sidebandLo 00380 00381 00382 00383 00384 00389 vector<int > getSidebandLo() const; 00390 00391 00392 00393 00401 void setSidebandLo (vector<int > sidebandLo); 00402 00403 00404 00405 00406 00407 00408 00409 // ===> Attribute dewarName, which is optional 00410 00411 00412 00417 bool isDewarNameExists() const; 00418 00419 00420 00426 string getDewarName() const throw(IllegalAccessException); 00427 00428 00429 00430 00437 void setDewarName (string dewarName); 00438 00439 00440 00441 00445 void clearDewarName (); 00446 00447 00448 00449 00450 // ===> Attribute tDewar 00451 00452 00453 00454 00455 00460 Temperature getTDewar() const; 00461 00462 00463 00464 00472 void setTDewar (Temperature tDewar); 00473 00474 00475 00476 00477 00478 00479 00480 // ===> Attribute stabilityDuration 00481 00482 00483 00484 00485 00490 Interval getStabilityDuration() const; 00491 00492 00493 00494 00502 void setStabilityDuration (Interval stabilityDuration); 00503 00504 00505 00506 00507 00508 00509 00510 // ===> Attribute stability 00511 00512 00513 00514 00515 00520 double getStability() const; 00521 00522 00523 00524 00532 void setStability (double stability); 00533 00534 00535 00536 00537 00538 00539 00540 // ===> Attribute stabilityflag, which is optional 00541 00542 00543 00548 bool isStabilityflagExists() const; 00549 00550 00551 00557 bool getStabilityflag() const throw(IllegalAccessException); 00558 00559 00560 00561 00568 void setStabilityflag (bool stabilityflag); 00569 00570 00571 00572 00576 void clearStabilityflag (); 00577 00578 00579 00580 00581 // ===> Attribute receiverId 00582 00583 00584 00585 00586 00591 int getReceiverId() const; 00592 00593 00594 00595 00596 00597 00598 00599 00601 // Extrinsic Table Attributes // 00603 00604 00605 // ===> Attribute spectralWindowId 00606 00607 00608 00609 00610 00615 Tag getSpectralWindowId() const; 00616 00617 00618 00619 00629 void setSpectralWindowId (Tag spectralWindowId); 00630 00631 00632 00633 00634 00635 00637 // Links // 00639 00640 00641 00642 00643 00650 SpectralWindowRow* getSpectralWindowUsingSpectralWindowId(); 00651 00652 00653 00654 00655 00656 00657 00662 bool compareNoAutoInc(Tag spectralWindowId, ArrayTimeInterval timeInterval, int numLo, string name, ReceiverBandMod::ReceiverBand frequencyBand, vector<Frequency > freqLo, ReceiverSidebandMod::ReceiverSideband receiverSideband, vector<int > sidebandLo, Temperature tDewar, Interval stabilityDuration, double stability); 00663 00664 00665 00666 00667 bool compareRequiredValue(int numLo, string name, ReceiverBandMod::ReceiverBand frequencyBand, vector<Frequency > freqLo, ReceiverSidebandMod::ReceiverSideband receiverSideband, vector<int > sidebandLo, Temperature tDewar, Interval stabilityDuration, double stability); 00668 00669 00678 bool equalByRequiredValue(ReceiverRow* x) ; 00679 00680 private: 00684 ReceiverTable &table; 00688 bool hasBeenAdded; 00689 00690 // This method is used by the Table class when this row is added to the table. 00691 void isAdded(); 00692 00693 00702 ReceiverRow (ReceiverTable &table); 00703 00721 ReceiverRow (ReceiverTable &table, ReceiverRow &row); 00722 00724 // Intrinsic Table Attributes // 00726 00727 00728 // ===> Attribute timeInterval 00729 00730 00731 00732 ArrayTimeInterval timeInterval; 00733 00734 00735 00736 00737 00738 00739 // ===> Attribute numLo 00740 00741 00742 00743 int numLo; 00744 00745 00746 00747 00748 00749 00750 // ===> Attribute name 00751 00752 00753 00754 string name; 00755 00756 00757 00758 00759 00760 00761 // ===> Attribute frequencyBand 00762 00763 00764 00765 ReceiverBandMod::ReceiverBand frequencyBand; 00766 00767 00768 00769 00770 00771 00772 // ===> Attribute freqLo 00773 00774 00775 00776 vector<Frequency > freqLo; 00777 00778 00779 00780 00781 00782 00783 // ===> Attribute receiverSideband 00784 00785 00786 00787 ReceiverSidebandMod::ReceiverSideband receiverSideband; 00788 00789 00790 00791 00792 00793 00794 // ===> Attribute sidebandLo 00795 00796 00797 00798 vector<int > sidebandLo; 00799 00800 00801 00802 00803 00804 00805 // ===> Attribute dewarName, which is optional 00806 00807 00808 bool dewarNameExists; 00809 00810 00811 string dewarName; 00812 00813 00814 00815 00816 00817 00818 // ===> Attribute tDewar 00819 00820 00821 00822 Temperature tDewar; 00823 00824 00825 00826 00827 00828 00829 // ===> Attribute stabilityDuration 00830 00831 00832 00833 Interval stabilityDuration; 00834 00835 00836 00837 00838 00839 00840 // ===> Attribute stability 00841 00842 00843 00844 double stability; 00845 00846 00847 00848 00849 00850 00851 // ===> Attribute stabilityflag, which is optional 00852 00853 00854 bool stabilityflagExists; 00855 00856 00857 bool stabilityflag; 00858 00859 00860 00861 00862 00863 00864 // ===> Attribute receiverId 00865 00866 00867 00868 int receiverId; 00869 00870 00871 00872 00882 void setReceiverId (int receiverId); 00883 00884 00885 00887 // Extrinsic Table Attributes // 00889 00890 00891 // ===> Attribute spectralWindowId 00892 00893 00894 00895 Tag spectralWindowId; 00896 00897 00898 00899 00900 00902 // Links // 00904 00905 00906 00907 00908 00909 00910 00911 00912 00913 }; 00914 00915 } // End namespace asdm 00916 00917 #endif /* Receiver_CLASS */

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