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 CalDelayRow_CLASS
00035 #define CalDelayRow_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::CalDelayRowIDL;
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 #include "CBasebandName.h"
00082 using namespace BasebandNameMod;
00083
00084
00085
00086
00087
00088
00089
00090 #include "CReceiverBand.h"
00091 using namespace ReceiverBandMod;
00092
00093
00094
00095 #include "CPolarizationType.h"
00096 using namespace PolarizationTypeMod;
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113 using asdm::Angle;
00114 using asdm::AngularRate;
00115 using asdm::ArrayTime;
00116 using asdm::Complex;
00117 using asdm::Entity;
00118 using asdm::EntityId;
00119 using asdm::EntityRef;
00120 using asdm::Flux;
00121 using asdm::Frequency;
00122 using asdm::Humidity;
00123 using asdm::Interval;
00124 using asdm::Length;
00125 using asdm::Pressure;
00126 using asdm::Speed;
00127 using asdm::Tag;
00128 using asdm::Temperature;
00129 using asdm::ConversionException;
00130 using asdm::NoSuchRow;
00131 using asdm::IllegalAccessException;
00132
00133
00134
00135
00136
00137 namespace asdm {
00138
00139
00140
00141
00142
00143 class CalReductionRow;
00144
00145
00146 class CalDataRow;
00147
00148
00155 class CalDelayRow {
00156 friend class asdm::CalDelayTable;
00157
00158 public:
00159
00160 virtual ~CalDelayRow();
00161
00165 CalDelayTable &getTable() const;
00166
00167 #ifndef WITHOUT_ACS
00168
00172 CalDelayRowIDL *toIDL() const;
00173 #endif
00174
00175 #ifndef WITHOUT_ACS
00176
00180 void setFromIDL (CalDelayRowIDL x) throw(ConversionException);
00181 #endif
00182
00187 string toXML() const;
00188
00194 void setFromXML (string rowDoc) throw(ConversionException);
00195
00197
00199
00200
00201
00202
00203
00204
00205
00206
00211 string getAntennaName() const;
00212
00213
00214
00215
00222 void setAntennaName (string antennaName) throw(IllegalAccessException);
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00240 BasebandName getBasebandName() const;
00241
00242
00243
00244
00251 void setBasebandName (BasebandName basebandName) throw(IllegalAccessException);
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00269 int getNumReceptor() const;
00270
00271
00272
00273
00279 void setNumReceptor (int numReceptor);
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00297 string getRefAntennaName() const;
00298
00299
00300
00301
00307 void setRefAntennaName (string refAntennaName);
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00325 ReceiverBand getReceiverBand() const;
00326
00327
00328
00329
00335 void setReceiverBand (ReceiverBand receiverBand);
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00353 vector<PolarizationType > getPolarizationTypes() const;
00354
00355
00356
00357
00363 void setPolarizationTypes (vector<PolarizationType > polarizationTypes);
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00381 ArrayTime getStartValidTime() const;
00382
00383
00384
00385
00391 void setStartValidTime (ArrayTime startValidTime);
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404
00409 ArrayTime getEndValidTime() const;
00410
00411
00412
00413
00419 void setEndValidTime (ArrayTime endValidTime);
00420
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00431
00432
00437 vector<double > getDelayOffset() const;
00438
00439
00440
00441
00447 void setDelayOffset (vector<double > delayOffset);
00448
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458
00459
00460
00465 vector<double > getDelayError() const;
00466
00467
00468
00469
00475 void setDelayError (vector<double > delayError);
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00493 double getCrossDelayOffset() const;
00494
00495
00496
00497
00503 void setCrossDelayOffset (double crossDelayOffset);
00504
00505
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515
00516
00521 double getCrossDelayOffsetError() const;
00522
00523
00524
00525
00531 void setCrossDelayOffsetError (double crossDelayOffsetError);
00532
00533
00534
00535
00536
00537
00539
00541
00542
00543
00544
00545
00546
00547
00548
00553 Tag getCalDataId() const;
00554
00555
00556
00557
00564 void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00565
00566
00567
00568
00569
00570
00571
00572
00573
00574
00575
00576
00577
00582 Tag getCalReductionId() const;
00583
00584
00585
00586
00593 void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00594
00595
00596
00597
00598
00599
00601
00603
00604
00605
00606
00607
00614 CalReductionRow* getCalReductionUsingCalReductionId();
00615
00616
00617
00618
00619
00620
00621
00622
00629 CalDataRow* getCalDataUsingCalDataId();
00630
00631
00632
00633
00634
00635
00636
00641 bool compareNoAutoInc(Tag calDataId, Tag calReductionId, string antennaName, BasebandName basebandName, int numReceptor, string refAntennaName, ReceiverBand receiverBand, vector<PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector<double > delayOffset, vector<double > delayError, double crossDelayOffset, double crossDelayOffsetError);
00642
00643
00644
00645
00646 bool compareRequiredValue(int numReceptor, string refAntennaName, ReceiverBand receiverBand, vector<PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, vector<double > delayOffset, vector<double > delayError, double crossDelayOffset, double crossDelayOffsetError);
00647
00648
00657 bool equalByRequiredValue(CalDelayRow* x) ;
00658
00659 private:
00663 CalDelayTable &table;
00667 bool hasBeenAdded;
00668
00669
00670 void isAdded();
00671
00672
00681 CalDelayRow (CalDelayTable &table);
00682
00700 CalDelayRow (CalDelayTable &table, CalDelayRow &row);
00701
00703
00705
00706
00707
00708
00709
00710
00711 string antennaName;
00712
00713
00714
00715
00716
00717
00718
00719
00720
00721
00722 BasebandName basebandName;
00723
00724
00725
00726
00727
00728
00729
00730
00731
00732
00733 int numReceptor;
00734
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744 string refAntennaName;
00745
00746
00747
00748
00749
00750
00751
00752
00753
00754
00755 ReceiverBand receiverBand;
00756
00757
00758
00759
00760
00761
00762
00763
00764
00765
00766 vector<PolarizationType > polarizationTypes;
00767
00768
00769
00770
00771
00772
00773
00774
00775
00776
00777 ArrayTime startValidTime;
00778
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788 ArrayTime endValidTime;
00789
00790
00791
00792
00793
00794
00795
00796
00797
00798
00799 vector<double > delayOffset;
00800
00801
00802
00803
00804
00805
00806
00807
00808
00809
00810 vector<double > delayError;
00811
00812
00813
00814
00815
00816
00817
00818
00819
00820
00821 double crossDelayOffset;
00822
00823
00824
00825
00826
00827
00828
00829
00830
00831
00832 double crossDelayOffsetError;
00833
00834
00835
00836
00837
00839
00841
00842
00843
00844
00845
00846
00847 Tag calDataId;
00848
00849
00850
00851
00852
00853
00854
00855
00856
00857
00858 Tag calReductionId;
00859
00860
00861
00862
00863
00865
00867
00868
00869
00870
00871
00872
00873
00874
00875
00876
00877
00878
00879
00880
00881
00882
00883 };
00884
00885 }
00886
00887 #endif