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 CalFocusModelRow_CLASS
00035 #define CalFocusModelRow_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::CalFocusModelRowIDL;
00047 #endif
00048
00049
00050
00051
00052
00053
00054 #include <ArrayTime.h>
00055 using asdm::ArrayTime;
00056
00057 #include <Tag.h>
00058 using asdm::Tag;
00059
00060 #include <Length.h>
00061 using asdm::Length;
00062
00063
00064
00065
00066
00067
00068
00069 #include "CReceiverBand.h"
00070 using namespace ReceiverBandMod;
00071
00072
00073
00074 #include "CPolarizationType.h"
00075 using namespace PolarizationTypeMod;
00076
00077
00078
00079
00080
00081
00082
00083 #include "CAntennaMake.h"
00084 using namespace AntennaMakeMod;
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 #include <ConversionException.h>
00110 #include <NoSuchRow.h>
00111 #include <IllegalAccessException.h>
00112
00113
00114
00115
00116
00117
00118 namespace asdm {
00119
00120
00121
00122
00123
00124 class CalReductionRow;
00125
00126
00127 class CalDataRow;
00128
00129
00130 class CalFocusModelRow;
00131 typedef void (CalFocusModelRow::*CalFocusModelAttributeFromBin) (EndianISStream& eiss);
00132
00139 class CalFocusModelRow {
00140 friend class asdm::CalFocusModelTable;
00141
00142 public:
00143
00144 virtual ~CalFocusModelRow();
00145
00149 CalFocusModelTable &getTable() const;
00150
00155 bool isAdded() const;
00156
00158
00160
00161
00162
00163
00164
00165
00166
00167
00172 string getAntennaName() const;
00173
00174
00175
00176
00186 void setAntennaName (string antennaName);
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00204 ReceiverBandMod::ReceiverBand getReceiverBand() const;
00205
00206
00207
00208
00218 void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00236 PolarizationTypeMod::PolarizationType getPolarizationType() const;
00237
00238
00239
00240
00250 void setPolarizationType (PolarizationTypeMod::PolarizationType polarizationType);
00251
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00268 ArrayTime getStartValidTime() const;
00269
00270
00271
00272
00280 void setStartValidTime (ArrayTime startValidTime);
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00298 ArrayTime getEndValidTime() const;
00299
00300
00301
00302
00310 void setEndValidTime (ArrayTime endValidTime);
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00328 AntennaMakeMod::AntennaMake getAntennaMake() const;
00329
00330
00331
00332
00340 void setAntennaMake (AntennaMakeMod::AntennaMake antennaMake);
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00358 int getNumCoeff() const;
00359
00360
00361
00362
00370 void setNumCoeff (int numCoeff);
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00388 int getNumSourceObs() const;
00389
00390
00391
00392
00400 void setNumSourceObs (int numSourceObs);
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413
00418 vector<string > getCoeffName() const;
00419
00420
00421
00422
00430 void setCoeffName (vector<string > coeffName);
00431
00432
00433
00434
00435
00436
00437
00438
00439
00440
00441
00442
00443
00448 vector<string > getCoeffFormula() const;
00449
00450
00451
00452
00460 void setCoeffFormula (vector<string > coeffFormula);
00461
00462
00463
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00478 vector<float > getCoeffValue() const;
00479
00480
00481
00482
00490 void setCoeffValue (vector<float > coeffValue);
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00508 vector<float > getCoeffError() const;
00509
00510
00511
00512
00520 void setCoeffError (vector<float > coeffError);
00521
00522
00523
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533
00538 vector<bool > getCoeffFixed() const;
00539
00540
00541
00542
00550 void setCoeffFixed (vector<bool > coeffFixed);
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00568 string getFocusModel() const;
00569
00570
00571
00572
00580 void setFocusModel (string focusModel);
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591
00592
00593
00598 vector<Length > getFocusRMS() const;
00599
00600
00601
00602
00610 void setFocusRMS (vector<Length > focusRMS);
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622
00623
00628 double getReducedChiSquared() const;
00629
00630
00631
00632
00640 void setReducedChiSquared (double reducedChiSquared);
00641
00642
00643
00644
00645
00646
00648
00650
00651
00652
00653
00654
00655
00656
00657
00662 Tag getCalDataId() const;
00663
00664
00665
00666
00676 void setCalDataId (Tag calDataId);
00677
00678
00679
00680
00681
00682
00683
00684
00685
00686
00687
00688
00689
00694 Tag getCalReductionId() const;
00695
00696
00697
00698
00708 void setCalReductionId (Tag calReductionId);
00709
00710
00711
00712
00713
00714
00716
00718
00719
00720
00721
00722
00729 CalReductionRow* getCalReductionUsingCalReductionId();
00730
00731
00732
00733
00734
00735
00736
00737
00744 CalDataRow* getCalDataUsingCalDataId();
00745
00746
00747
00748
00749
00750
00751
00793 bool compareNoAutoInc(string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, int numCoeff, int numSourceObs, vector<string > coeffName, vector<string > coeffFormula, vector<float > coeffValue, vector<float > coeffError, vector<bool > coeffFixed, string focusModel, vector<Length > focusRMS, double reducedChiSquared);
00794
00795
00796
00797
00829 bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, int numCoeff, int numSourceObs, vector<string > coeffName, vector<string > coeffFormula, vector<float > coeffValue, vector<float > coeffError, vector<bool > coeffFixed, string focusModel, vector<Length > focusRMS, double reducedChiSquared);
00830
00831
00840 bool equalByRequiredValue(CalFocusModelRow* x) ;
00841
00842 #ifndef WITHOUT_ACS
00843
00847 CalFocusModelRowIDL *toIDL() const;
00848 #endif
00849
00850 #ifndef WITHOUT_ACS
00851
00856 void setFromIDL (CalFocusModelRowIDL x) ;
00857 #endif
00858
00863 string toXML() const;
00864
00871 void setFromXML (string rowDoc) ;
00872
00873 private:
00877 CalFocusModelTable &table;
00881 bool hasBeenAdded;
00882
00883
00884 void isAdded(bool added);
00885
00886
00895 CalFocusModelRow (CalFocusModelTable &table);
00896
00914 CalFocusModelRow (CalFocusModelTable &table, CalFocusModelRow &row);
00915
00917
00919
00920
00921
00922
00923
00924
00925 string antennaName;
00926
00927
00928
00929
00930
00931
00932
00933
00934
00935
00936 ReceiverBandMod::ReceiverBand receiverBand;
00937
00938
00939
00940
00941
00942
00943
00944
00945
00946
00947 PolarizationTypeMod::PolarizationType polarizationType;
00948
00949
00950
00951
00952
00953
00954
00955
00956
00957
00958 ArrayTime startValidTime;
00959
00960
00961
00962
00963
00964
00965
00966
00967
00968
00969 ArrayTime endValidTime;
00970
00971
00972
00973
00974
00975
00976
00977
00978
00979
00980 AntennaMakeMod::AntennaMake antennaMake;
00981
00982
00983
00984
00985
00986
00987
00988
00989
00990
00991 int numCoeff;
00992
00993
00994
00995
00996
00997
00998
00999
01000
01001
01002 int numSourceObs;
01003
01004
01005
01006
01007
01008
01009
01010
01011
01012
01013 vector<string > coeffName;
01014
01015
01016
01017
01018
01019
01020
01021
01022
01023
01024 vector<string > coeffFormula;
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034
01035 vector<float > coeffValue;
01036
01037
01038
01039
01040
01041
01042
01043
01044
01045
01046 vector<float > coeffError;
01047
01048
01049
01050
01051
01052
01053
01054
01055
01056
01057 vector<bool > coeffFixed;
01058
01059
01060
01061
01062
01063
01064
01065
01066
01067
01068 string focusModel;
01069
01070
01071
01072
01073
01074
01075
01076
01077
01078
01079 vector<Length > focusRMS;
01080
01081
01082
01083
01084
01085
01086
01087
01088
01089
01090 double reducedChiSquared;
01091
01092
01093
01094
01095
01097
01099
01100
01101
01102
01103
01104
01105 Tag calDataId;
01106
01107
01108
01109
01110
01111
01112
01113
01114
01115
01116 Tag calReductionId;
01117
01118
01119
01120
01121
01123
01125
01126
01127
01128
01129
01130
01131
01132
01133
01134
01135
01136
01137
01138
01139
01140
01142
01144 map<string, CalFocusModelAttributeFromBin> fromBinMethods;
01145 void antennaNameFromBin( EndianISStream& eiss);
01146 void receiverBandFromBin( EndianISStream& eiss);
01147 void polarizationTypeFromBin( EndianISStream& eiss);
01148 void calDataIdFromBin( EndianISStream& eiss);
01149 void calReductionIdFromBin( EndianISStream& eiss);
01150 void startValidTimeFromBin( EndianISStream& eiss);
01151 void endValidTimeFromBin( EndianISStream& eiss);
01152 void antennaMakeFromBin( EndianISStream& eiss);
01153 void numCoeffFromBin( EndianISStream& eiss);
01154 void numSourceObsFromBin( EndianISStream& eiss);
01155 void coeffNameFromBin( EndianISStream& eiss);
01156 void coeffFormulaFromBin( EndianISStream& eiss);
01157 void coeffValueFromBin( EndianISStream& eiss);
01158 void coeffErrorFromBin( EndianISStream& eiss);
01159 void coeffFixedFromBin( EndianISStream& eiss);
01160 void focusModelFromBin( EndianISStream& eiss);
01161 void focusRMSFromBin( EndianISStream& eiss);
01162 void reducedChiSquaredFromBin( EndianISStream& eiss);
01163
01164
01165
01170 void toBin(EndianOSStream& eoss);
01171
01179 static CalFocusModelRow* fromBin(EndianISStream& eiss, CalFocusModelTable& table, const vector<string>& attributesSeq);
01180
01181 };
01182
01183 }
01184
01185 #endif