00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef PointingModelRow_CLASS
00035 #define PointingModelRow_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::PointingModelRowIDL;
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
00072
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
00113
00114
00115
00116 namespace asdm {
00117
00118
00119
00120
00121
00122 class AntennaRow;
00123
00124
00131 class PointingModelRow {
00132 friend class asdm::PointingModelTable;
00133
00134 public:
00135
00136 virtual ~PointingModelRow();
00137
00141 PointingModelTable &getTable() const;
00142
00143 #ifndef WITHOUT_ACS
00144
00148 PointingModelRowIDL *toIDL() const;
00149 #endif
00150
00151 #ifndef WITHOUT_ACS
00152
00156 void setFromIDL (PointingModelRowIDL x) throw(ConversionException);
00157 #endif
00158
00163 string toXML() const;
00164
00170 void setFromXML (string rowDoc) throw(ConversionException);
00171
00173
00175
00176
00177
00178
00179
00180
00181
00182
00187 int getPointingModelId() const;
00188
00189
00190
00191
00198 void setPointingModelId (int pointingModelId) throw(IllegalAccessException);
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00216 int getNumCoeff() const;
00217
00218
00219
00220
00226 void setNumCoeff (int numCoeff);
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00244 vector<string > getCoeffName() const;
00245
00246
00247
00248
00254 void setCoeffName (vector<string > coeffName);
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00272 vector<float > getCoeffVal() const;
00273
00274
00275
00276
00282 void setCoeffVal (vector<float > coeffVal);
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00298 bool isNumFormulaExists() const;
00299
00300
00301
00307 int getNumFormula() const throw(IllegalAccessException);
00308
00309
00310
00311
00317 void setNumFormula (int numFormula);
00318
00319
00320
00321
00325 void clearNumFormula ();
00326
00327
00328
00329
00330
00331
00332
00333
00338 bool isCoeffFormulaExists() const;
00339
00340
00341
00347 vector<string > getCoeffFormula() const throw(IllegalAccessException);
00348
00349
00350
00351
00357 void setCoeffFormula (vector<string > coeffFormula);
00358
00359
00360
00361
00365 void clearCoeffFormula ();
00366
00367
00368
00370
00372
00373
00374
00375
00376
00377
00378
00379
00384 Tag getAntennaId() const;
00385
00386
00387
00388
00395 void setAntennaId (Tag antennaId) throw(IllegalAccessException);
00396
00397
00398
00399
00400
00401
00403
00405
00406
00407
00408
00409
00416 AntennaRow* getAntennaUsingAntennaId();
00417
00418
00419
00420
00421
00422
00423
00428 bool compareNoAutoInc(Tag antennaId, int pointingModelId, int numCoeff, vector<string > coeffName, vector<float > coeffVal);
00429
00430
00431
00432
00433 bool compareRequiredValue(int numCoeff, vector<string > coeffName, vector<float > coeffVal);
00434
00435
00444 bool equalByRequiredValue(PointingModelRow* x) ;
00445
00446 private:
00450 PointingModelTable &table;
00454 bool hasBeenAdded;
00455
00456
00457 void isAdded();
00458
00459
00468 PointingModelRow (PointingModelTable &table);
00469
00487 PointingModelRow (PointingModelTable &table, PointingModelRow &row);
00488
00490
00492
00493
00494
00495
00496
00497
00498 int pointingModelId;
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509 int numCoeff;
00510
00511
00512
00513
00514
00515
00516
00517
00518
00519
00520 vector<string > coeffName;
00521
00522
00523
00524
00525
00526
00527
00528
00529
00530
00531 vector<float > coeffVal;
00532
00533
00534
00535
00536
00537
00538
00539
00540
00541 bool numFormulaExists;
00542
00543
00544 int numFormula;
00545
00546
00547
00548
00549
00550
00551
00552
00553
00554 bool coeffFormulaExists;
00555
00556
00557 vector<string > coeffFormula;
00558
00559
00560
00561
00562
00564
00566
00567
00568
00569
00570
00571
00572 Tag antennaId;
00573
00574
00575
00576
00577
00579
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590 };
00591
00592 }
00593
00594 #endif