SwitchCycleRow.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 SwitchCycleRow.h
00032  */
00033  
00034 #ifndef SwitchCycleRow_CLASS
00035 #define SwitchCycleRow_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::SwitchCycleRowIDL;
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 using asdm::Angle;
00093 using asdm::AngularRate;
00094 using asdm::ArrayTime;
00095 using asdm::Complex;
00096 using asdm::Entity;
00097 using asdm::EntityId;
00098 using asdm::EntityRef;
00099 using asdm::Flux;
00100 using asdm::Frequency;
00101 using asdm::Humidity;
00102 using asdm::Interval;
00103 using asdm::Length;
00104 using asdm::Pressure;
00105 using asdm::Speed;
00106 using asdm::Tag;
00107 using asdm::Temperature;
00108 using asdm::ConversionException;
00109 using asdm::NoSuchRow;
00110 using asdm::IllegalAccessException;
00111 
00112 /*\file SwitchCycle.h
00113     \brief Generated from model's revision "1.41", branch "HEAD"
00114 */
00115 
00116 namespace asdm {
00117 
00118 //class asdm::SwitchCycleTable;
00119 
00120         
00121 
00128 class SwitchCycleRow {
00129 friend class asdm::SwitchCycleTable;
00130 
00131 public:
00132 
00133         virtual ~SwitchCycleRow();
00134 
00138         SwitchCycleTable &getTable() const;
00139         
00140 #ifndef WITHOUT_ACS
00141 
00145         SwitchCycleRowIDL *toIDL() const;
00146 #endif
00147         
00148 #ifndef WITHOUT_ACS
00149 
00153         void setFromIDL (SwitchCycleRowIDL x) throw(ConversionException);
00154 #endif
00155         
00160         string toXML() const;
00161 
00167         void setFromXML (string rowDoc) throw(ConversionException);
00168         
00170         // Intrinsic Table Attributes //
00172         
00173         
00174         // ===> Attribute switchCycleId
00175         
00176         
00177         
00178 
00179         
00184         Tag getSwitchCycleId() const;
00185         
00186  
00187         
00188         
00189         
00190         
00191 
00192 
00193         
00194         // ===> Attribute numStep
00195         
00196         
00197         
00198 
00199         
00204         int getNumStep() const;
00205         
00206  
00207         
00208         
00214         void setNumStep (int numStep);
00215                 
00216         
00217         
00218         
00219 
00220 
00221         
00222         // ===> Attribute weightArray
00223         
00224         
00225         
00226 
00227         
00232         vector<float > getWeightArray() const;
00233         
00234  
00235         
00236         
00242         void setWeightArray (vector<float > weightArray);
00243                 
00244         
00245         
00246         
00247 
00248 
00249         
00250         // ===> Attribute dirOffsetArray
00251         
00252         
00253         
00254 
00255         
00260         vector<vector<Angle > > getDirOffsetArray() const;
00261         
00262  
00263         
00264         
00270         void setDirOffsetArray (vector<vector<Angle > > dirOffsetArray);
00271                 
00272         
00273         
00274         
00275 
00276 
00277         
00278         // ===> Attribute freqOffsetArray
00279         
00280         
00281         
00282 
00283         
00288         vector<Frequency > getFreqOffsetArray() const;
00289         
00290  
00291         
00292         
00298         void setFreqOffsetArray (vector<Frequency > freqOffsetArray);
00299                 
00300         
00301         
00302         
00303 
00304 
00305         
00306         // ===> Attribute stepDurationArray
00307         
00308         
00309         
00310 
00311         
00316         vector<Interval > getStepDurationArray() const;
00317         
00318  
00319         
00320         
00326         void setStepDurationArray (vector<Interval > stepDurationArray);
00327                 
00328         
00329         
00330         
00331 
00332 
00334         // Extrinsic Table Attributes //
00336         
00338         // Links //
00340         
00341         
00342         
00343         
00348         bool compareNoAutoInc(int numStep, vector<float > weightArray, vector<vector<Angle > > dirOffsetArray, vector<Frequency > freqOffsetArray, vector<Interval > stepDurationArray);
00349         
00350         
00351 
00352         
00353         bool compareRequiredValue(int numStep, vector<float > weightArray, vector<vector<Angle > > dirOffsetArray, vector<Frequency > freqOffsetArray, vector<Interval > stepDurationArray); 
00354                  
00355         
00364         bool equalByRequiredValue(SwitchCycleRow* x) ;
00365 
00366 private:
00370         SwitchCycleTable &table;
00374         bool hasBeenAdded;
00375 
00376         // This method is used by the Table class when this row is added to the table.
00377         void isAdded();
00378 
00379 
00388         SwitchCycleRow (SwitchCycleTable &table);
00389 
00407          SwitchCycleRow (SwitchCycleTable &table, SwitchCycleRow &row);
00408                 
00410         // Intrinsic Table Attributes //
00412         
00413         
00414         // ===> Attribute switchCycleId
00415         
00416         
00417 
00418         Tag switchCycleId;
00419 
00420         
00421         
00422         
00429         void setSwitchCycleId (Tag switchCycleId) throw(IllegalAccessException);
00430                 
00431         
00432 
00433         
00434         // ===> Attribute numStep
00435         
00436         
00437 
00438         int numStep;
00439 
00440         
00441         
00442         
00443 
00444         
00445         // ===> Attribute weightArray
00446         
00447         
00448 
00449         vector<float > weightArray;
00450 
00451         
00452         
00453         
00454 
00455         
00456         // ===> Attribute dirOffsetArray
00457         
00458         
00459 
00460         vector<vector<Angle > > dirOffsetArray;
00461 
00462         
00463         
00464         
00465 
00466         
00467         // ===> Attribute freqOffsetArray
00468         
00469         
00470 
00471         vector<Frequency > freqOffsetArray;
00472 
00473         
00474         
00475         
00476 
00477         
00478         // ===> Attribute stepDurationArray
00479         
00480         
00481 
00482         vector<Interval > stepDurationArray;
00483 
00484         
00485         
00486         
00487 
00489         // Extrinsic Table Attributes //
00491         
00493         // Links //
00495         
00496 
00497 };
00498 
00499 } // End namespace asdm
00500 
00501 #endif /* SwitchCycle_CLASS */

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