FocusRow.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 FocusRow.h 00032 */ 00033 00034 #ifndef FocusRow_CLASS 00035 #define FocusRow_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::FocusRowIDL; 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 using asdm::Angle; 00097 using asdm::AngularRate; 00098 using asdm::ArrayTime; 00099 using asdm::Complex; 00100 using asdm::Entity; 00101 using asdm::EntityId; 00102 using asdm::EntityRef; 00103 using asdm::Flux; 00104 using asdm::Frequency; 00105 using asdm::Humidity; 00106 using asdm::Interval; 00107 using asdm::Length; 00108 using asdm::Pressure; 00109 using asdm::Speed; 00110 using asdm::Tag; 00111 using asdm::Temperature; 00112 using asdm::ConversionException; 00113 using asdm::NoSuchRow; 00114 using asdm::IllegalAccessException; 00115 00116 /*\file Focus.h 00117 \brief Generated from model's revision "1.46", branch "HEAD" 00118 */ 00119 00120 namespace asdm { 00121 00122 //class asdm::FocusTable; 00123 00124 00125 // class asdm::FocusModelRow; 00126 class FocusModelRow; 00127 00128 // class asdm::FeedRow; 00129 class FeedRow; 00130 00131 // class asdm::AntennaRow; 00132 class AntennaRow; 00133 00134 00141 class FocusRow { 00142 friend class asdm::FocusTable; 00143 00144 public: 00145 00146 virtual ~FocusRow(); 00147 00151 FocusTable &getTable() const; 00152 00153 #ifndef WITHOUT_ACS 00154 00158 FocusRowIDL *toIDL() const; 00159 #endif 00160 00161 #ifndef WITHOUT_ACS 00162 00166 void setFromIDL (FocusRowIDL x) throw(ConversionException); 00167 #endif 00168 00173 string toXML() const; 00174 00180 void setFromXML (string rowDoc) throw(ConversionException); 00181 00183 // Intrinsic Table Attributes // 00185 00186 00187 // ===> Attribute timeInterval 00188 00189 00190 00191 00192 00197 ArrayTimeInterval getTimeInterval() const; 00198 00199 00200 00201 00211 void setTimeInterval (ArrayTimeInterval timeInterval); 00212 00213 00214 00215 00216 00217 00218 00219 // ===> Attribute xFocusPosition 00220 00221 00222 00223 00224 00229 Length getXFocusPosition() const; 00230 00231 00232 00233 00241 void setXFocusPosition (Length xFocusPosition); 00242 00243 00244 00245 00246 00247 00248 00249 // ===> Attribute yFocusPosition 00250 00251 00252 00253 00254 00259 Length getYFocusPosition() const; 00260 00261 00262 00263 00271 void setYFocusPosition (Length yFocusPosition); 00272 00273 00274 00275 00276 00277 00278 00279 // ===> Attribute zFocusPosition 00280 00281 00282 00283 00284 00289 Length getZFocusPosition() const; 00290 00291 00292 00293 00301 void setZFocusPosition (Length zFocusPosition); 00302 00303 00304 00305 00306 00307 00308 00309 // ===> Attribute focusTracking 00310 00311 00312 00313 00314 00319 bool getFocusTracking() const; 00320 00321 00322 00323 00331 void setFocusTracking (bool focusTracking); 00332 00333 00334 00335 00336 00337 00338 00339 // ===> Attribute xFocusOffset 00340 00341 00342 00343 00344 00349 Length getXFocusOffset() const; 00350 00351 00352 00353 00361 void setXFocusOffset (Length xFocusOffset); 00362 00363 00364 00365 00366 00367 00368 00369 // ===> Attribute yFocusOffset 00370 00371 00372 00373 00374 00379 Length getYFocusOffset() const; 00380 00381 00382 00383 00391 void setYFocusOffset (Length yFocusOffset); 00392 00393 00394 00395 00396 00397 00398 00399 // ===> Attribute zFocusOffset 00400 00401 00402 00403 00404 00409 Length getZFocusOffset() const; 00410 00411 00412 00413 00421 void setZFocusOffset (Length zFocusOffset); 00422 00423 00424 00425 00426 00427 00429 // Extrinsic Table Attributes // 00431 00432 00433 // ===> Attribute antennaId 00434 00435 00436 00437 00438 00443 Tag getAntennaId() const; 00444 00445 00446 00447 00457 void setAntennaId (Tag antennaId); 00458 00459 00460 00461 00462 00463 00464 00465 // ===> Attribute feedId 00466 00467 00468 00469 00470 00475 int getFeedId() const; 00476 00477 00478 00479 00489 void setFeedId (int feedId); 00490 00491 00492 00493 00494 00495 00496 00497 // ===> Attribute focusModelId 00498 00499 00500 00501 00502 00507 Tag getFocusModelId() const; 00508 00509 00510 00511 00519 void setFocusModelId (Tag focusModelId); 00520 00521 00522 00523 00524 00525 00527 // Links // 00529 00530 00531 00532 00533 00540 FocusModelRow* getFocusModelUsingFocusModelId(); 00541 00542 00543 00544 00545 00546 00547 00548 00549 // ===> Slice link from a row of Focus table to a collection of row of Feed table. 00550 00556 vector <FeedRow *> getFeeds(); 00557 00558 00559 00560 00561 00562 00563 00564 00565 00572 AntennaRow* getAntennaUsingAntennaId(); 00573 00574 00575 00576 00577 00578 00579 00584 bool compareNoAutoInc(Tag antennaId, int feedId, ArrayTimeInterval timeInterval, Tag focusModelId, Length xFocusPosition, Length yFocusPosition, Length zFocusPosition, bool focusTracking, Length xFocusOffset, Length yFocusOffset, Length zFocusOffset); 00585 00586 00587 00588 00589 bool compareRequiredValue(Tag focusModelId, Length xFocusPosition, Length yFocusPosition, Length zFocusPosition, bool focusTracking, Length xFocusOffset, Length yFocusOffset, Length zFocusOffset); 00590 00591 00600 bool equalByRequiredValue(FocusRow* x) ; 00601 00602 private: 00606 FocusTable &table; 00610 bool hasBeenAdded; 00611 00612 // This method is used by the Table class when this row is added to the table. 00613 void isAdded(); 00614 00615 00624 FocusRow (FocusTable &table); 00625 00643 FocusRow (FocusTable &table, FocusRow &row); 00644 00646 // Intrinsic Table Attributes // 00648 00649 00650 // ===> Attribute timeInterval 00651 00652 00653 00654 ArrayTimeInterval timeInterval; 00655 00656 00657 00658 00659 00660 00661 // ===> Attribute xFocusPosition 00662 00663 00664 00665 Length xFocusPosition; 00666 00667 00668 00669 00670 00671 00672 // ===> Attribute yFocusPosition 00673 00674 00675 00676 Length yFocusPosition; 00677 00678 00679 00680 00681 00682 00683 // ===> Attribute zFocusPosition 00684 00685 00686 00687 Length zFocusPosition; 00688 00689 00690 00691 00692 00693 00694 // ===> Attribute focusTracking 00695 00696 00697 00698 bool focusTracking; 00699 00700 00701 00702 00703 00704 00705 // ===> Attribute xFocusOffset 00706 00707 00708 00709 Length xFocusOffset; 00710 00711 00712 00713 00714 00715 00716 // ===> Attribute yFocusOffset 00717 00718 00719 00720 Length yFocusOffset; 00721 00722 00723 00724 00725 00726 00727 // ===> Attribute zFocusOffset 00728 00729 00730 00731 Length zFocusOffset; 00732 00733 00734 00735 00736 00738 // Extrinsic Table Attributes // 00740 00741 00742 // ===> Attribute antennaId 00743 00744 00745 00746 Tag antennaId; 00747 00748 00749 00750 00751 00752 00753 // ===> Attribute feedId 00754 00755 00756 00757 int feedId; 00758 00759 00760 00761 00762 00763 00764 // ===> Attribute focusModelId 00765 00766 00767 00768 Tag focusModelId; 00769 00770 00771 00772 00773 00775 // Links // 00777 00778 00779 00780 00781 00782 00783 00784 00785 00786 00787 00788 00789 00790 00791 00792 00793 00794 00795 00796 00797 00798 00799 }; 00800 00801 } // End namespace asdm 00802 00803 #endif /* Focus_CLASS */

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