CalHolographyRow.h
Go to the documentation of this file.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 CalHolographyRow_CLASS
00035 #define CalHolographyRow_CLASS
00036
00037 #include <vector>
00038 #include <string>
00039 #include <set>
00040
00041 #ifndef WITHOUT_ACS
00042 #include <asdmIDLC.h>
00043 #endif
00044
00045
00046
00047
00048
00049
00050
00051 #include <ArrayTime.h>
00052
00053
00054
00055 #include <Temperature.h>
00056
00057
00058
00059 #include <Angle.h>
00060
00061
00062
00063 #include <Tag.h>
00064
00065
00066
00067 #include <Length.h>
00068
00069
00070
00071 #include <Frequency.h>
00072
00073
00074
00075 #include <EntityRef.h>
00076
00077
00078
00079
00080
00081
00082
00083
00084 #include "CAntennaMake.h"
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102 #include "CPolarizationType.h"
00103
00104
00105
00106
00107
00108 #include "CReceiverBand.h"
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139 #include <ConversionException.h>
00140 #include <NoSuchRow.h>
00141 #include <IllegalAccessException.h>
00142
00143 #include <RowTransformer.h>
00144
00145
00146
00147
00148
00149
00150 namespace asdm {
00151
00152
00153
00154
00155
00156 class CalReductionRow;
00157
00158
00159 class CalDataRow;
00160
00161
00162 class CalHolographyRow;
00163 typedef void (CalHolographyRow::*CalHolographyAttributeFromBin) (EndianIStream& eis);
00164 typedef void (CalHolographyRow::*CalHolographyAttributeFromText) (const string& s);
00165
00172 class CalHolographyRow {
00173 friend class asdm::CalHolographyTable;
00174 friend class asdm::RowTransformer<CalHolographyRow>;
00175
00176
00177 public:
00178
00179 virtual ~CalHolographyRow();
00180
00184 CalHolographyTable &getTable() const;
00185
00190 bool isAdded() const;
00191
00193
00195
00196
00197
00198
00199
00200
00201
00202
00207 string getAntennaName() const;
00208
00209
00210
00211
00221 void setAntennaName (string antennaName);
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00239 AntennaMakeMod::AntennaMake getAntennaMake() const;
00240
00241
00242
00243
00251 void setAntennaMake (AntennaMakeMod::AntennaMake antennaMake);
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00269 ArrayTime getStartValidTime() const;
00270
00271
00272
00273
00281 void setStartValidTime (ArrayTime startValidTime);
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00299 ArrayTime getEndValidTime() const;
00300
00301
00302
00303
00311 void setEndValidTime (ArrayTime endValidTime);
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00329 Temperature getAmbientTemperature() const;
00330
00331
00332
00333
00341 void setAmbientTemperature (Temperature ambientTemperature);
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00359 vector<Length > getFocusPosition() const;
00360
00361
00362
00363
00371 void setFocusPosition (vector<Length > focusPosition);
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00389 vector<Frequency > getFrequencyRange() const;
00390
00391
00392
00393
00401 void setFrequencyRange (vector<Frequency > frequencyRange);
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413
00414
00419 double getIlluminationTaper() const;
00420
00421
00422
00423
00431 void setIlluminationTaper (double illuminationTaper);
00432
00433
00434
00435
00436
00437
00438
00439
00440
00441
00442
00443
00444
00449 int getNumReceptor() const;
00450
00451
00452
00453
00461 void setNumReceptor (int numReceptor);
00462
00463
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00479 vector<PolarizationTypeMod::PolarizationType > getPolarizationTypes() const;
00480
00481
00482
00483
00491 void setPolarizationTypes (vector<PolarizationTypeMod::PolarizationType > polarizationTypes);
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00504
00509 int getNumPanelModes() const;
00510
00511
00512
00513
00521 void setNumPanelModes (int numPanelModes);
00522
00523
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533
00534
00539 ReceiverBandMod::ReceiverBand getReceiverBand() const;
00540
00541
00542
00543
00551 void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00569 EntityRef getBeamMapUID() const;
00570
00571
00572
00573
00581 void setBeamMapUID (EntityRef beamMapUID);
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591
00592
00593
00594
00599 Length getRawRMS() const;
00600
00601
00602
00603
00611 void setRawRMS (Length rawRMS);
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622
00623
00624
00629 Length getWeightedRMS() const;
00630
00631
00632
00633
00641 void setWeightedRMS (Length weightedRMS);
00642
00643
00644
00645
00646
00647
00648
00649
00650
00651
00652
00653
00654
00659 EntityRef getSurfaceMapUID() const;
00660
00661
00662
00663
00671 void setSurfaceMapUID (EntityRef surfaceMapUID);
00672
00673
00674
00675
00676
00677
00678
00679
00680
00681
00682
00683
00684
00689 vector<Angle > getDirection() const;
00690
00691
00692
00693
00701 void setDirection (vector<Angle > direction);
00702
00703
00704
00705
00706
00707
00708
00709
00710
00711
00712
00717 bool isNumScrewExists() const;
00718
00719
00720
00726 int getNumScrew() const;
00727
00728
00729
00730
00737 void setNumScrew (int numScrew);
00738
00739
00740
00741
00745 void clearNumScrew ();
00746
00747
00748
00749
00750
00751
00752
00753
00758 bool isScrewNameExists() const;
00759
00760
00761
00767 vector<string > getScrewName() const;
00768
00769
00770
00771
00778 void setScrewName (vector<string > screwName);
00779
00780
00781
00782
00786 void clearScrewName ();
00787
00788
00789
00790
00791
00792
00793
00794
00799 bool isScrewMotionExists() const;
00800
00801
00802
00808 vector<Length > getScrewMotion() const;
00809
00810
00811
00812
00819 void setScrewMotion (vector<Length > screwMotion);
00820
00821
00822
00823
00827 void clearScrewMotion ();
00828
00829
00830
00831
00832
00833
00834
00835
00840 bool isScrewMotionErrorExists() const;
00841
00842
00843
00849 vector<Length > getScrewMotionError() const;
00850
00851
00852
00853
00860 void setScrewMotionError (vector<Length > screwMotionError);
00861
00862
00863
00864
00868 void clearScrewMotionError ();
00869
00870
00871
00872
00873
00874
00875
00876
00881 bool isGravCorrectionExists() const;
00882
00883
00884
00890 bool getGravCorrection() const;
00891
00892
00893
00894
00901 void setGravCorrection (bool gravCorrection);
00902
00903
00904
00905
00909 void clearGravCorrection ();
00910
00911
00912
00913
00914
00915
00916
00917
00922 bool isGravOptRangeExists() const;
00923
00924
00925
00931 vector<Angle > getGravOptRange() const;
00932
00933
00934
00935
00942 void setGravOptRange (vector<Angle > gravOptRange);
00943
00944
00945
00946
00950 void clearGravOptRange ();
00951
00952
00953
00954
00955
00956
00957
00958
00963 bool isTempCorrectionExists() const;
00964
00965
00966
00972 bool getTempCorrection() const;
00973
00974
00975
00976
00983 void setTempCorrection (bool tempCorrection);
00984
00985
00986
00987
00991 void clearTempCorrection ();
00992
00993
00994
00995
00996
00997
00998
00999
01004 bool isTempOptRangeExists() const;
01005
01006
01007
01013 vector<Temperature > getTempOptRange() const;
01014
01015
01016
01017
01024 void setTempOptRange (vector<Temperature > tempOptRange);
01025
01026
01027
01028
01032 void clearTempOptRange ();
01033
01034
01035
01037
01039
01040
01041
01042
01043
01044
01045
01046
01051 Tag getCalDataId() const;
01052
01053
01054
01055
01065 void setCalDataId (Tag calDataId);
01066
01067
01068
01069
01070
01071
01072
01073
01074
01075
01076
01077
01078
01083 Tag getCalReductionId() const;
01084
01085
01086
01087
01097 void setCalReductionId (Tag calReductionId);
01098
01099
01100
01101
01102
01103
01105
01107
01108
01109
01110
01111
01118 CalReductionRow* getCalReductionUsingCalReductionId();
01119
01120
01121
01122
01123
01124
01125
01126
01133 CalDataRow* getCalDataUsingCalDataId();
01134
01135
01136
01137
01138
01139
01140
01184 bool compareNoAutoInc(string antennaName, Tag calDataId, Tag calReductionId, AntennaMakeMod::AntennaMake antennaMake, ArrayTime startValidTime, ArrayTime endValidTime, Temperature ambientTemperature, vector<Length > focusPosition, vector<Frequency > frequencyRange, double illuminationTaper, int numReceptor, vector<PolarizationTypeMod::PolarizationType > polarizationTypes, int numPanelModes, ReceiverBandMod::ReceiverBand receiverBand, EntityRef beamMapUID, Length rawRMS, Length weightedRMS, EntityRef surfaceMapUID, vector<Angle > direction);
01185
01186
01187
01188
01226 bool compareRequiredValue(AntennaMakeMod::AntennaMake antennaMake, ArrayTime startValidTime, ArrayTime endValidTime, Temperature ambientTemperature, vector<Length > focusPosition, vector<Frequency > frequencyRange, double illuminationTaper, int numReceptor, vector<PolarizationTypeMod::PolarizationType > polarizationTypes, int numPanelModes, ReceiverBandMod::ReceiverBand receiverBand, EntityRef beamMapUID, Length rawRMS, Length weightedRMS, EntityRef surfaceMapUID, vector<Angle > direction);
01227
01228
01237 bool equalByRequiredValue(CalHolographyRow* x) ;
01238
01239 #ifndef WITHOUT_ACS
01240
01244 asdmIDL::CalHolographyRowIDL *toIDL() const;
01245
01253 void toIDL(asdmIDL::CalHolographyRowIDL& x) const;
01254 #endif
01255
01256 #ifndef WITHOUT_ACS
01257
01262 void setFromIDL (asdmIDL::CalHolographyRowIDL x) ;
01263 #endif
01264
01269 std::string toXML() const;
01270
01277 void setFromXML (std::string rowDoc) ;
01278
01281
01283
01284 std::map<std::string, CalHolographyAttributeFromBin> fromBinMethods;
01285 void antennaNameFromBin( EndianIStream& eis);
01286 void calDataIdFromBin( EndianIStream& eis);
01287 void calReductionIdFromBin( EndianIStream& eis);
01288 void antennaMakeFromBin( EndianIStream& eis);
01289 void startValidTimeFromBin( EndianIStream& eis);
01290 void endValidTimeFromBin( EndianIStream& eis);
01291 void ambientTemperatureFromBin( EndianIStream& eis);
01292 void focusPositionFromBin( EndianIStream& eis);
01293 void frequencyRangeFromBin( EndianIStream& eis);
01294 void illuminationTaperFromBin( EndianIStream& eis);
01295 void numReceptorFromBin( EndianIStream& eis);
01296 void polarizationTypesFromBin( EndianIStream& eis);
01297 void numPanelModesFromBin( EndianIStream& eis);
01298 void receiverBandFromBin( EndianIStream& eis);
01299 void beamMapUIDFromBin( EndianIStream& eis);
01300 void rawRMSFromBin( EndianIStream& eis);
01301 void weightedRMSFromBin( EndianIStream& eis);
01302 void surfaceMapUIDFromBin( EndianIStream& eis);
01303 void directionFromBin( EndianIStream& eis);
01304
01305 void numScrewFromBin( EndianIStream& eis);
01306 void screwNameFromBin( EndianIStream& eis);
01307 void screwMotionFromBin( EndianIStream& eis);
01308 void screwMotionErrorFromBin( EndianIStream& eis);
01309 void gravCorrectionFromBin( EndianIStream& eis);
01310 void gravOptRangeFromBin( EndianIStream& eis);
01311 void tempCorrectionFromBin( EndianIStream& eis);
01312 void tempOptRangeFromBin( EndianIStream& eis);
01313
01314
01322 static CalHolographyRow* fromBin(EndianIStream& eis, CalHolographyTable& table, const std::vector<std::string>& attributesSeq);
01323
01330 void fromText(const std::string& attributeName, const std::string& t);
01332
01333 private:
01337 CalHolographyTable &table;
01341 bool hasBeenAdded;
01342
01343
01344 void isAdded(bool added);
01345
01346
01355 CalHolographyRow (CalHolographyTable &table);
01356
01374 CalHolographyRow (CalHolographyTable &table, CalHolographyRow &row);
01375
01377
01379
01380
01381
01382
01383
01384
01385 string antennaName;
01386
01387
01388
01389
01390
01391
01392
01393
01394
01395
01396 AntennaMakeMod::AntennaMake antennaMake;
01397
01398
01399
01400
01401
01402
01403
01404
01405
01406
01407 ArrayTime startValidTime;
01408
01409
01410
01411
01412
01413
01414
01415
01416
01417
01418 ArrayTime endValidTime;
01419
01420
01421
01422
01423
01424
01425
01426
01427
01428
01429 Temperature ambientTemperature;
01430
01431
01432
01433
01434
01435
01436
01437
01438
01439
01440 vector<Length > focusPosition;
01441
01442
01443
01444
01445
01446
01447
01448
01449
01450
01451 vector<Frequency > frequencyRange;
01452
01453
01454
01455
01456
01457
01458
01459
01460
01461
01462 double illuminationTaper;
01463
01464
01465
01466
01467
01468
01469
01470
01471
01472
01473 int numReceptor;
01474
01475
01476
01477
01478
01479
01480
01481
01482
01483
01484 vector<PolarizationTypeMod::PolarizationType > polarizationTypes;
01485
01486
01487
01488
01489
01490
01491
01492
01493
01494
01495 int numPanelModes;
01496
01497
01498
01499
01500
01501
01502
01503
01504
01505
01506 ReceiverBandMod::ReceiverBand receiverBand;
01507
01508
01509
01510
01511
01512
01513
01514
01515
01516
01517 EntityRef beamMapUID;
01518
01519
01520
01521
01522
01523
01524
01525
01526
01527
01528 Length rawRMS;
01529
01530
01531
01532
01533
01534
01535
01536
01537
01538
01539 Length weightedRMS;
01540
01541
01542
01543
01544
01545
01546
01547
01548
01549
01550 EntityRef surfaceMapUID;
01551
01552
01553
01554
01555
01556
01557
01558
01559
01560
01561 vector<Angle > direction;
01562
01563
01564
01565
01566
01567
01568
01569
01570
01571 bool numScrewExists;
01572
01573
01574 int numScrew;
01575
01576
01577
01578
01579
01580
01581
01582
01583
01584 bool screwNameExists;
01585
01586
01587 vector<string > screwName;
01588
01589
01590
01591
01592
01593
01594
01595
01596
01597 bool screwMotionExists;
01598
01599
01600 vector<Length > screwMotion;
01601
01602
01603
01604
01605
01606
01607
01608
01609
01610 bool screwMotionErrorExists;
01611
01612
01613 vector<Length > screwMotionError;
01614
01615
01616
01617
01618
01619
01620
01621
01622
01623 bool gravCorrectionExists;
01624
01625
01626 bool gravCorrection;
01627
01628
01629
01630
01631
01632
01633
01634
01635
01636 bool gravOptRangeExists;
01637
01638
01639 vector<Angle > gravOptRange;
01640
01641
01642
01643
01644
01645
01646
01647
01648
01649 bool tempCorrectionExists;
01650
01651
01652 bool tempCorrection;
01653
01654
01655
01656
01657
01658
01659
01660
01661
01662 bool tempOptRangeExists;
01663
01664
01665 vector<Temperature > tempOptRange;
01666
01667
01668
01669
01670
01672
01674
01675
01676
01677
01678
01679
01680 Tag calDataId;
01681
01682
01683
01684
01685
01686
01687
01688
01689
01690
01691 Tag calReductionId;
01692
01693
01694
01695
01696
01698
01700
01701
01702
01703
01704
01705
01706
01707
01708
01709
01710
01711
01712
01713
01714
01715
01716
01718
01720
01721
01722
01723
01724
01725
01726
01727
01728
01729
01730
01731
01732
01733
01734
01735
01736
01737
01738
01739
01740
01741
01742
01743
01744
01745
01746
01747
01748
01749
01750
01751
01753
01755 std::map<std::string, CalHolographyAttributeFromText> fromTextMethods;
01756
01757 void antennaNameFromText (const string & s);
01758
01759
01760 void calDataIdFromText (const string & s);
01761
01762
01763 void calReductionIdFromText (const string & s);
01764
01765
01766 void antennaMakeFromText (const string & s);
01767
01768
01769 void startValidTimeFromText (const string & s);
01770
01771
01772 void endValidTimeFromText (const string & s);
01773
01774
01775 void ambientTemperatureFromText (const string & s);
01776
01777
01778 void focusPositionFromText (const string & s);
01779
01780
01781 void frequencyRangeFromText (const string & s);
01782
01783
01784 void illuminationTaperFromText (const string & s);
01785
01786
01787 void numReceptorFromText (const string & s);
01788
01789
01790 void polarizationTypesFromText (const string & s);
01791
01792
01793 void numPanelModesFromText (const string & s);
01794
01795
01796 void receiverBandFromText (const string & s);
01797
01798
01799
01800 void rawRMSFromText (const string & s);
01801
01802
01803 void weightedRMSFromText (const string & s);
01804
01805
01806
01807 void directionFromText (const string & s);
01808
01809
01810
01811 void numScrewFromText (const string & s);
01812
01813
01814 void screwNameFromText (const string & s);
01815
01816
01817 void screwMotionFromText (const string & s);
01818
01819
01820 void screwMotionErrorFromText (const string & s);
01821
01822
01823 void gravCorrectionFromText (const string & s);
01824
01825
01826 void gravOptRangeFromText (const string & s);
01827
01828
01829 void tempCorrectionFromText (const string & s);
01830
01831
01832 void tempOptRangeFromText (const string & s);
01833
01834
01835
01840 void toBin(EndianOSStream& eoss);
01841
01851 };
01852
01853 }
01854
01855 #endif