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 CalWVRRow_CLASS
00035 #define CalWVRRow_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::CalWVRRowIDL;
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 #include "CWVRMethod.h"
00090 using namespace WVRMethodMod;
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 using asdm::Angle;
00110 using asdm::AngularRate;
00111 using asdm::ArrayTime;
00112 using asdm::Complex;
00113 using asdm::Entity;
00114 using asdm::EntityId;
00115 using asdm::EntityRef;
00116 using asdm::Flux;
00117 using asdm::Frequency;
00118 using asdm::Humidity;
00119 using asdm::Interval;
00120 using asdm::Length;
00121 using asdm::Pressure;
00122 using asdm::Speed;
00123 using asdm::Tag;
00124 using asdm::Temperature;
00125 using asdm::ConversionException;
00126 using asdm::NoSuchRow;
00127 using asdm::IllegalAccessException;
00128
00129
00130
00131
00132
00133 namespace asdm {
00134
00135
00136
00137
00138
00139 class CalDataRow;
00140
00141
00142 class CalReductionRow;
00143
00144
00151 class CalWVRRow {
00152 friend class asdm::CalWVRTable;
00153
00154 public:
00155
00156 virtual ~CalWVRRow();
00157
00161 CalWVRTable &getTable() const;
00162
00163 #ifndef WITHOUT_ACS
00164
00168 CalWVRRowIDL *toIDL() const;
00169 #endif
00170
00171 #ifndef WITHOUT_ACS
00172
00176 void setFromIDL (CalWVRRowIDL x) throw(ConversionException);
00177 #endif
00178
00183 string toXML() const;
00184
00190 void setFromXML (string rowDoc) throw(ConversionException);
00191
00193
00195
00196
00197
00198
00199
00200
00201
00202
00207 string getAntennaName() const;
00208
00209
00210
00211
00218 void setAntennaName (string antennaName) throw(IllegalAccessException);
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00236 int getNumPoly() const;
00237
00238
00239
00240
00246 void setNumPoly (int numPoly);
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00264 int getNumChan() const;
00265
00266
00267
00268
00274 void setNumChan (int numChan);
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00292 ArrayTime getStartValidTime() const;
00293
00294
00295
00296
00302 void setStartValidTime (ArrayTime startValidTime);
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00320 ArrayTime getEndValidTime() const;
00321
00322
00323
00324
00330 void setEndValidTime (ArrayTime endValidTime);
00331
00332
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00348 WVRMethod getWvrMethod() const;
00349
00350
00351
00352
00358 void setWvrMethod (WVRMethod wvrMethod);
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00376 vector<Frequency > getFreqLimits() const;
00377
00378
00379
00380
00386 void setFreqLimits (vector<Frequency > freqLimits);
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00404 vector<vector<vector<float > > > getPathCoeff() const;
00405
00406
00407
00408
00414 void setPathCoeff (vector<vector<vector<float > > > pathCoeff);
00415
00416
00417
00418
00419
00420
00421
00422
00423
00424
00425
00426
00427
00432 vector<Frequency > getChanFreq() const;
00433
00434
00435
00436
00442 void setChanFreq (vector<Frequency > chanFreq);
00443
00444
00445
00446
00447
00448
00449
00450
00451
00452
00453
00454
00455
00460 vector<Frequency > getChanWidth() const;
00461
00462
00463
00464
00470 void setChanWidth (vector<Frequency > chanWidth);
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483
00488 int getNumInputAntenna() const;
00489
00490
00491
00492
00498 void setNumInputAntenna (int numInputAntenna);
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509
00510
00511
00516 vector<string > getInputAntennaNames() const;
00517
00518
00519
00520
00526 void setInputAntennaNames (vector<string > inputAntennaNames);
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538
00539
00544 vector<Frequency > getPolyFreqLimits() const;
00545
00546
00547
00548
00554 void setPolyFreqLimits (vector<Frequency > polyFreqLimits);
00555
00556
00557
00558
00559
00560
00562
00564
00565
00566
00567
00568
00569
00570
00571
00576 Tag getCalDataId() const;
00577
00578
00579
00580
00587 void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00588
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598
00599
00600
00605 Tag getCalReductionId() const;
00606
00607
00608
00609
00616 void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00617
00618
00619
00620
00621
00622
00624
00626
00627
00628
00629
00630
00637 CalDataRow* getCalDataUsingCalDataId();
00638
00639
00640
00641
00642
00643
00644
00645
00652 CalReductionRow* getCalReductionUsingCalReductionId();
00653
00654
00655
00656
00657
00658
00659
00664 bool compareNoAutoInc(Tag calDataId, Tag calReductionId, string antennaName, int numPoly, int numChan, ArrayTime startValidTime, ArrayTime endValidTime, WVRMethod wvrMethod, vector<Frequency > freqLimits, vector<vector<vector<float > > > pathCoeff, vector<Frequency > chanFreq, vector<Frequency > chanWidth, int numInputAntenna, vector<string > inputAntennaNames, vector<Frequency > polyFreqLimits);
00665
00666
00667
00668
00669 bool compareRequiredValue(int numPoly, int numChan, ArrayTime startValidTime, ArrayTime endValidTime, WVRMethod wvrMethod, vector<Frequency > freqLimits, vector<vector<vector<float > > > pathCoeff, vector<Frequency > chanFreq, vector<Frequency > chanWidth, int numInputAntenna, vector<string > inputAntennaNames, vector<Frequency > polyFreqLimits);
00670
00671
00680 bool equalByRequiredValue(CalWVRRow* x) ;
00681
00682 private:
00686 CalWVRTable &table;
00690 bool hasBeenAdded;
00691
00692
00693 void isAdded();
00694
00695
00704 CalWVRRow (CalWVRTable &table);
00705
00723 CalWVRRow (CalWVRTable &table, CalWVRRow &row);
00724
00726
00728
00729
00730
00731
00732
00733
00734 string antennaName;
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744
00745 int numPoly;
00746
00747
00748
00749
00750
00751
00752
00753
00754
00755
00756 int numChan;
00757
00758
00759
00760
00761
00762
00763
00764
00765
00766
00767 ArrayTime startValidTime;
00768
00769
00770
00771
00772
00773
00774
00775
00776
00777
00778 ArrayTime endValidTime;
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788
00789 WVRMethod wvrMethod;
00790
00791
00792
00793
00794
00795
00796
00797
00798
00799
00800 vector<Frequency > freqLimits;
00801
00802
00803
00804
00805
00806
00807
00808
00809
00810
00811 vector<vector<vector<float > > > pathCoeff;
00812
00813
00814
00815
00816
00817
00818
00819
00820
00821
00822 vector<Frequency > chanFreq;
00823
00824
00825
00826
00827
00828
00829
00830
00831
00832
00833 vector<Frequency > chanWidth;
00834
00835
00836
00837
00838
00839
00840
00841
00842
00843
00844 int numInputAntenna;
00845
00846
00847
00848
00849
00850
00851
00852
00853
00854
00855 vector<string > inputAntennaNames;
00856
00857
00858
00859
00860
00861
00862
00863
00864
00865
00866 vector<Frequency > polyFreqLimits;
00867
00868
00869
00870
00871
00873
00875
00876
00877
00878
00879
00880
00881 Tag calDataId;
00882
00883
00884
00885
00886
00887
00888
00889
00890
00891
00892 Tag calReductionId;
00893
00894
00895
00896
00897
00899
00901
00902
00903
00904
00905
00906
00907
00908
00909
00910
00911
00912
00913
00914
00915
00916
00917 };
00918
00919 }
00920
00921 #endif