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 CalFocusRow_CLASS
00035 #define CalFocusRow_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::CalFocusRowIDL;
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 #include "CReceiverBand.h"
00088 using namespace ReceiverBandMod;
00089
00090
00091
00092
00093
00094
00095
00096 #include "CFocusMethod.h"
00097 using namespace FocusMethodMod;
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108 using asdm::Angle;
00109 using asdm::AngularRate;
00110 using asdm::ArrayTime;
00111 using asdm::Complex;
00112 using asdm::Entity;
00113 using asdm::EntityId;
00114 using asdm::EntityRef;
00115 using asdm::Flux;
00116 using asdm::Frequency;
00117 using asdm::Humidity;
00118 using asdm::Interval;
00119 using asdm::Length;
00120 using asdm::Pressure;
00121 using asdm::Speed;
00122 using asdm::Tag;
00123 using asdm::Temperature;
00124 using asdm::ConversionException;
00125 using asdm::NoSuchRow;
00126 using asdm::IllegalAccessException;
00127
00128
00129
00130
00131
00132 namespace asdm {
00133
00134
00135
00136
00137
00138 class CalDataRow;
00139
00140
00141 class CalReductionRow;
00142
00143
00150 class CalFocusRow {
00151 friend class asdm::CalFocusTable;
00152
00153 public:
00154
00155 virtual ~CalFocusRow();
00156
00160 CalFocusTable &getTable() const;
00161
00162 #ifndef WITHOUT_ACS
00163
00167 CalFocusRowIDL *toIDL() const;
00168 #endif
00169
00170 #ifndef WITHOUT_ACS
00171
00175 void setFromIDL (CalFocusRowIDL x) throw(ConversionException);
00176 #endif
00177
00182 string toXML() const;
00183
00189 void setFromXML (string rowDoc) throw(ConversionException);
00190
00192
00194
00195
00196
00197
00198
00199
00200
00201
00206 string getAntennaName() const;
00207
00208
00209
00210
00218 void setAntennaName (string antennaName) throw(IllegalAccessException);
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00236 vector<Frequency > getFrequencyRange() const;
00237
00238
00239
00240
00248 void setFrequencyRange (vector<Frequency > frequencyRange) throw(IllegalAccessException);
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00266 ArrayTime getStartValidTime() const;
00267
00268
00269
00270
00278 void setStartValidTime (ArrayTime startValidTime) throw(IllegalAccessException);
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00296 ArrayTime getEndValidTime() const;
00297
00298
00299
00300
00308 void setEndValidTime (ArrayTime endValidTime) throw(IllegalAccessException);
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00326 ReceiverBandMod::ReceiverBand getReceiverBand() const;
00327
00328
00329
00330
00338 void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand) throw(IllegalAccessException);
00339
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00356 vector<Length > getOffset() const;
00357
00358
00359
00360
00368 void setOffset (vector<Length > offset) throw(IllegalAccessException);
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00386 vector<Length > getError() const;
00387
00388
00389
00390
00398 void setError (vector<Length > error) throw(IllegalAccessException);
00399
00400
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411
00416 FocusMethodMod::FocusMethod getFocusMethod() const;
00417
00418
00419
00420
00428 void setFocusMethod (FocusMethodMod::FocusMethod focusMethod) throw(IllegalAccessException);
00429
00430
00431
00432
00433
00434
00435
00436
00437
00438
00439
00440
00441
00446 vector<Angle > getPointingDirection() const;
00447
00448
00449
00450
00458 void setPointingDirection (vector<Angle > pointingDirection) throw(IllegalAccessException);
00459
00460
00461
00462
00463
00464
00465
00466
00467
00468
00469
00470
00471
00476 vector<bool > getWasFixed() const;
00477
00478
00479
00480
00488 void setWasFixed (vector<bool > wasFixed) throw(IllegalAccessException);
00489
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00506 Temperature getAmbientTemperature() const;
00507
00508
00509
00510
00518 void setAmbientTemperature (Temperature ambientTemperature) throw(IllegalAccessException);
00519
00520
00521
00522
00523
00524
00526
00528
00529
00530
00531
00532
00533
00534
00535
00540 Tag getCalDataId() const;
00541
00542
00543
00544
00552 void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565
00570 Tag getCalReductionId() const;
00571
00572
00573
00574
00582 void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00583
00584
00585
00586
00587
00588
00590
00592
00593
00594
00595
00596
00603 CalDataRow* getCalDataUsingCalDataId();
00604
00605
00606
00607
00608
00609
00610
00611
00618 CalReductionRow* getCalReductionUsingCalReductionId();
00619
00620
00621
00622
00623
00624
00625
00630 bool compareNoAutoInc(Tag calDataId, Tag calReductionId, string antennaName, vector<Frequency > frequencyRange, ArrayTime startValidTime, ArrayTime endValidTime, ReceiverBandMod::ReceiverBand receiverBand, vector<Length > offset, vector<Length > error, FocusMethodMod::FocusMethod focusMethod, vector<Angle > pointingDirection, vector<bool > wasFixed, Temperature ambientTemperature);
00631
00632
00633
00634
00635 bool compareRequiredValue(vector<Frequency > frequencyRange, ArrayTime startValidTime, ArrayTime endValidTime, ReceiverBandMod::ReceiverBand receiverBand, vector<Length > offset, vector<Length > error, FocusMethodMod::FocusMethod focusMethod, vector<Angle > pointingDirection, vector<bool > wasFixed, Temperature ambientTemperature);
00636
00637
00646 bool equalByRequiredValue(CalFocusRow* x) ;
00647
00648 private:
00652 CalFocusTable &table;
00656 bool hasBeenAdded;
00657
00658
00659 void isAdded();
00660
00661
00670 CalFocusRow (CalFocusTable &table);
00671
00689 CalFocusRow (CalFocusTable &table, CalFocusRow &row);
00690
00692
00694
00695
00696
00697
00698
00699
00700 string antennaName;
00701
00702
00703
00704
00705
00706
00707
00708
00709
00710
00711 vector<Frequency > frequencyRange;
00712
00713
00714
00715
00716
00717
00718
00719
00720
00721
00722 ArrayTime startValidTime;
00723
00724
00725
00726
00727
00728
00729
00730
00731
00732
00733 ArrayTime endValidTime;
00734
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744 ReceiverBandMod::ReceiverBand receiverBand;
00745
00746
00747
00748
00749
00750
00751
00752
00753
00754
00755 vector<Length > offset;
00756
00757
00758
00759
00760
00761
00762
00763
00764
00765
00766 vector<Length > error;
00767
00768
00769
00770
00771
00772
00773
00774
00775
00776
00777 FocusMethodMod::FocusMethod focusMethod;
00778
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788 vector<Angle > pointingDirection;
00789
00790
00791
00792
00793
00794
00795
00796
00797
00798
00799 vector<bool > wasFixed;
00800
00801
00802
00803
00804
00805
00806
00807
00808
00809
00810 Temperature ambientTemperature;
00811
00812
00813
00814
00815
00817
00819
00820
00821
00822
00823
00824
00825 Tag calDataId;
00826
00827
00828
00829
00830
00831
00832
00833
00834
00835
00836 Tag calReductionId;
00837
00838
00839
00840
00841
00843
00845
00846
00847
00848
00849
00850
00851
00852
00853
00854
00855
00856
00857
00858
00859
00860
00861 };
00862
00863 }
00864
00865 #endif