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 CalCurveRow_CLASS
00035 #define CalCurveRow_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::CalCurveRowIDL;
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
00093 #include "CReceiverBand.h"
00094 using namespace ReceiverBandMod;
00095
00096
00097
00098 #include "CAtmPhaseCorrection.h"
00099 using namespace AtmPhaseCorrectionMod;
00100
00101
00102
00103 #include "CPolarizationType.h"
00104 using namespace PolarizationTypeMod;
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114 #include "CCalCurveType.h"
00115 using namespace CalCurveTypeMod;
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126 using asdm::Angle;
00127 using asdm::AngularRate;
00128 using asdm::ArrayTime;
00129 using asdm::Complex;
00130 using asdm::Entity;
00131 using asdm::EntityId;
00132 using asdm::EntityRef;
00133 using asdm::Flux;
00134 using asdm::Frequency;
00135 using asdm::Humidity;
00136 using asdm::Interval;
00137 using asdm::Length;
00138 using asdm::Pressure;
00139 using asdm::Speed;
00140 using asdm::Tag;
00141 using asdm::Temperature;
00142 using asdm::ConversionException;
00143 using asdm::NoSuchRow;
00144 using asdm::IllegalAccessException;
00145
00146
00147
00148
00149
00150 namespace asdm {
00151
00152
00153
00154
00155
00156 class CalDataRow;
00157
00158
00159 class CalReductionRow;
00160
00161
00168 class CalCurveRow {
00169 friend class asdm::CalCurveTable;
00170
00171 public:
00172
00173 virtual ~CalCurveRow();
00174
00178 CalCurveTable &getTable() const;
00179
00180 #ifndef WITHOUT_ACS
00181
00185 CalCurveRowIDL *toIDL() const;
00186 #endif
00187
00188 #ifndef WITHOUT_ACS
00189
00193 void setFromIDL (CalCurveRowIDL x) throw(ConversionException);
00194 #endif
00195
00200 string toXML() const;
00201
00207 void setFromXML (string rowDoc) throw(ConversionException);
00208
00210
00212
00213
00214
00215
00216
00217
00218
00219
00224 int getNumAntenna() const;
00225
00226
00227
00228
00234 void setNumAntenna (int numAntenna);
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00252 int getNumBaseline() const;
00253
00254
00255
00256
00262 void setNumBaseline (int numBaseline);
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00280 int getNumAPC() const;
00281
00282
00283
00284
00290 void setNumAPC (int numAPC);
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00308 int getNumReceptor() const;
00309
00310
00311
00312
00318 void setNumReceptor (int numReceptor);
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00336 int getNumPoly() const;
00337
00338
00339
00340
00346 void setNumPoly (int numPoly);
00347
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00364 vector<string > getAntennaNames() const;
00365
00366
00367
00368
00374 void setAntennaNames (vector<string > antennaNames);
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00392 string getRefAntennaName() const;
00393
00394
00395
00396
00402 void setRefAntennaName (string refAntennaName);
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413
00414
00415
00420 ReceiverBand getReceiverBand() const;
00421
00422
00423
00424
00430 void setReceiverBand (ReceiverBand receiverBand);
00431
00432
00433
00434
00435
00436
00437
00438
00439
00440
00441
00442
00443
00448 vector<AtmPhaseCorrection > getAtmPhaseCorrections() const;
00449
00450
00451
00452
00458 void setAtmPhaseCorrections (vector<AtmPhaseCorrection > atmPhaseCorrections);
00459
00460
00461
00462
00463
00464
00465
00466
00467
00468
00469
00470
00471
00476 vector<PolarizationType > getPolarizationTypes() const;
00477
00478
00479
00480
00486 void setPolarizationTypes (vector<PolarizationType > polarizationTypes);
00487
00488
00489
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00504 ArrayTime getStartValidTime() const;
00505
00506
00507
00508
00514 void setStartValidTime (ArrayTime startValidTime);
00515
00516
00517
00518
00519
00520
00521
00522
00523
00524
00525
00526
00527
00532 ArrayTime getEndValidTime() const;
00533
00534
00535
00536
00542 void setEndValidTime (ArrayTime endValidTime);
00543
00544
00545
00546
00547
00548
00549
00550
00551
00552
00553
00554
00555
00560 vector<Frequency > getFrequencyRange() const;
00561
00562
00563
00564
00570 void setFrequencyRange (vector<Frequency > frequencyRange);
00571
00572
00573
00574
00575
00576
00577
00578
00579
00580
00581
00582
00583
00588 CalCurveType getTypeCurve() const;
00589
00590
00591
00592
00598 void setTypeCurve (CalCurveType typeCurve);
00599
00600
00601
00602
00603
00604
00605
00606
00607
00608
00609
00610
00611
00616 ArrayTime getTimeOrigin() const;
00617
00618
00619
00620
00626 void setTimeOrigin (ArrayTime timeOrigin);
00627
00628
00629
00630
00631
00632
00633
00634
00635
00636
00637
00638
00639
00644 vector<vector<vector<vector<float > > > > getCurve() const;
00645
00646
00647
00648
00654 void setCurve (vector<vector<vector<vector<float > > > > curve);
00655
00656
00657
00658
00659
00660
00661
00662
00663
00664
00665
00666
00667
00672 vector<vector<vector<float > > > getRms() const;
00673
00674
00675
00676
00682 void setRms (vector<vector<vector<float > > > rms);
00683
00684
00685
00686
00687
00688
00690
00692
00693
00694
00695
00696
00697
00698
00699
00704 Tag getCalDataId() const;
00705
00706
00707
00708
00715 void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00716
00717
00718
00719
00720
00721
00722
00723
00724
00725
00726
00727
00728
00733 Tag getCalReductionId() const;
00734
00735
00736
00737
00744 void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00745
00746
00747
00748
00749
00750
00752
00754
00755
00756
00757
00758
00765 CalDataRow* getCalDataUsingCalDataId();
00766
00767
00768
00769
00770
00771
00772
00773
00780 CalReductionRow* getCalReductionUsingCalReductionId();
00781
00782
00783
00784
00785
00786
00787
00792 bool compareNoAutoInc(Tag calDataId, Tag calReductionId, int numAntenna, int numBaseline, int numAPC, int numReceptor, int numPoly, vector<string > antennaNames, string refAntennaName, ReceiverBand receiverBand, vector<AtmPhaseCorrection > atmPhaseCorrections, vector<PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector<Frequency > frequencyRange, CalCurveType typeCurve, ArrayTime timeOrigin, vector<vector<vector<vector<float > > > > curve, vector<vector<vector<float > > > rms);
00793
00794
00795
00796
00797 bool compareRequiredValue(int numAntenna, int numBaseline, int numAPC, int numReceptor, int numPoly, vector<string > antennaNames, string refAntennaName, ReceiverBand receiverBand, vector<AtmPhaseCorrection > atmPhaseCorrections, vector<PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector<Frequency > frequencyRange, CalCurveType typeCurve, ArrayTime timeOrigin, vector<vector<vector<vector<float > > > > curve, vector<vector<vector<float > > > rms);
00798
00799
00808 bool equalByRequiredValue(CalCurveRow* x) ;
00809
00810 private:
00814 CalCurveTable &table;
00818 bool hasBeenAdded;
00819
00820
00821 void isAdded();
00822
00823
00832 CalCurveRow (CalCurveTable &table);
00833
00851 CalCurveRow (CalCurveTable &table, CalCurveRow &row);
00852
00854
00856
00857
00858
00859
00860
00861
00862 int numAntenna;
00863
00864
00865
00866
00867
00868
00869
00870
00871
00872
00873 int numBaseline;
00874
00875
00876
00877
00878
00879
00880
00881
00882
00883
00884 int numAPC;
00885
00886
00887
00888
00889
00890
00891
00892
00893
00894
00895 int numReceptor;
00896
00897
00898
00899
00900
00901
00902
00903
00904
00905
00906 int numPoly;
00907
00908
00909
00910
00911
00912
00913
00914
00915
00916
00917 vector<string > antennaNames;
00918
00919
00920
00921
00922
00923
00924
00925
00926
00927
00928 string refAntennaName;
00929
00930
00931
00932
00933
00934
00935
00936
00937
00938
00939 ReceiverBand receiverBand;
00940
00941
00942
00943
00944
00945
00946
00947
00948
00949
00950 vector<AtmPhaseCorrection > atmPhaseCorrections;
00951
00952
00953
00954
00955
00956
00957
00958
00959
00960
00961 vector<PolarizationType > polarizationTypes;
00962
00963
00964
00965
00966
00967
00968
00969
00970
00971
00972 ArrayTime startValidTime;
00973
00974
00975
00976
00977
00978
00979
00980
00981
00982
00983 ArrayTime endValidTime;
00984
00985
00986
00987
00988
00989
00990
00991
00992
00993
00994 vector<Frequency > frequencyRange;
00995
00996
00997
00998
00999
01000
01001
01002
01003
01004
01005 CalCurveType typeCurve;
01006
01007
01008
01009
01010
01011
01012
01013
01014
01015
01016 ArrayTime timeOrigin;
01017
01018
01019
01020
01021
01022
01023
01024
01025
01026
01027 vector<vector<vector<vector<float > > > > curve;
01028
01029
01030
01031
01032
01033
01034
01035
01036
01037
01038 vector<vector<vector<float > > > rms;
01039
01040
01041
01042
01043
01045
01047
01048
01049
01050
01051
01052
01053 Tag calDataId;
01054
01055
01056
01057
01058
01059
01060
01061
01062
01063
01064 Tag calReductionId;
01065
01066
01067
01068
01069
01071
01073
01074
01075
01076
01077
01078
01079
01080
01081
01082
01083
01084
01085
01086
01087
01088
01089 };
01090
01091 }
01092
01093 #endif