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 SysCalRow_CLASS
00035 #define SysCalRow_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::SysCalRowIDL;
00047 #endif
00048
00049
00050
00051
00052
00053
00054 #include <Tag.h>
00055 using asdm::Tag;
00056
00057 #include <Temperature.h>
00058 using asdm::Temperature;
00059
00060 #include <ArrayTimeInterval.h>
00061 using asdm::ArrayTimeInterval;
00062
00063
00064
00065
00066
00067
00068
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
00094
00095
00096
00097
00098
00099
00100
00101
00102 #include <ConversionException.h>
00103 #include <NoSuchRow.h>
00104 #include <IllegalAccessException.h>
00105
00106
00107
00108
00109
00110
00111 namespace asdm {
00112
00113
00114
00115
00116
00117 class AntennaRow;
00118
00119
00120 class FeedRow;
00121
00122
00123 class SpectralWindowRow;
00124
00125
00126 class SysCalRow;
00127 typedef void (SysCalRow::*SysCalAttributeFromBin) (EndianISStream& eiss);
00128
00135 class SysCalRow {
00136 friend class asdm::SysCalTable;
00137
00138 public:
00139
00140 virtual ~SysCalRow();
00141
00145 SysCalTable &getTable() const;
00146
00151 bool isAdded() const;
00152
00154
00156
00157
00158
00159
00160
00161
00162
00163
00168 ArrayTimeInterval getTimeInterval() const;
00169
00170
00171
00172
00182 void setTimeInterval (ArrayTimeInterval timeInterval);
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00200 int getNumReceptor() const;
00201
00202
00203
00204
00212 void setNumReceptor (int numReceptor);
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00230 int getNumChan() const;
00231
00232
00233
00234
00242 void setNumChan (int numChan);
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00258 bool isTcalFlagExists() const;
00259
00260
00261
00267 bool getTcalFlag() const;
00268
00269
00270
00271
00278 void setTcalFlag (bool tcalFlag);
00279
00280
00281
00282
00286 void clearTcalFlag ();
00287
00288
00289
00290
00291
00292
00293
00294
00299 bool isTcalSpectrumExists() const;
00300
00301
00302
00308 vector<vector<Temperature > > getTcalSpectrum() const;
00309
00310
00311
00312
00319 void setTcalSpectrum (vector<vector<Temperature > > tcalSpectrum);
00320
00321
00322
00323
00327 void clearTcalSpectrum ();
00328
00329
00330
00331
00332
00333
00334
00335
00340 bool isTrxFlagExists() const;
00341
00342
00343
00349 bool getTrxFlag() const;
00350
00351
00352
00353
00360 void setTrxFlag (bool trxFlag);
00361
00362
00363
00364
00368 void clearTrxFlag ();
00369
00370
00371
00372
00373
00374
00375
00376
00381 bool isTrxSpectrumExists() const;
00382
00383
00384
00390 vector<vector<Temperature > > getTrxSpectrum() const;
00391
00392
00393
00394
00401 void setTrxSpectrum (vector<vector<Temperature > > trxSpectrum);
00402
00403
00404
00405
00409 void clearTrxSpectrum ();
00410
00411
00412
00413
00414
00415
00416
00417
00422 bool isTskyFlagExists() const;
00423
00424
00425
00431 bool getTskyFlag() const;
00432
00433
00434
00435
00442 void setTskyFlag (bool tskyFlag);
00443
00444
00445
00446
00450 void clearTskyFlag ();
00451
00452
00453
00454
00455
00456
00457
00458
00463 bool isTskySpectrumExists() const;
00464
00465
00466
00472 vector<vector<Temperature > > getTskySpectrum() const;
00473
00474
00475
00476
00483 void setTskySpectrum (vector<vector<Temperature > > tskySpectrum);
00484
00485
00486
00487
00491 void clearTskySpectrum ();
00492
00493
00494
00495
00496
00497
00498
00499
00504 bool isTsysFlagExists() const;
00505
00506
00507
00513 bool getTsysFlag() const;
00514
00515
00516
00517
00524 void setTsysFlag (bool tsysFlag);
00525
00526
00527
00528
00532 void clearTsysFlag ();
00533
00534
00535
00536
00537
00538
00539
00540
00545 bool isTsysSpectrumExists() const;
00546
00547
00548
00554 vector<vector<Temperature > > getTsysSpectrum() const;
00555
00556
00557
00558
00565 void setTsysSpectrum (vector<vector<Temperature > > tsysSpectrum);
00566
00567
00568
00569
00573 void clearTsysSpectrum ();
00574
00575
00576
00577
00578
00579
00580
00581
00586 bool isTantFlagExists() const;
00587
00588
00589
00595 bool getTantFlag() const;
00596
00597
00598
00599
00606 void setTantFlag (bool tantFlag);
00607
00608
00609
00610
00614 void clearTantFlag ();
00615
00616
00617
00618
00619
00620
00621
00622
00627 bool isTantSpectrumExists() const;
00628
00629
00630
00636 vector<vector<float > > getTantSpectrum() const;
00637
00638
00639
00640
00647 void setTantSpectrum (vector<vector<float > > tantSpectrum);
00648
00649
00650
00651
00655 void clearTantSpectrum ();
00656
00657
00658
00659
00660
00661
00662
00663
00668 bool isTantTsysFlagExists() const;
00669
00670
00671
00677 bool getTantTsysFlag() const;
00678
00679
00680
00681
00688 void setTantTsysFlag (bool tantTsysFlag);
00689
00690
00691
00692
00696 void clearTantTsysFlag ();
00697
00698
00699
00700
00701
00702
00703
00704
00709 bool isTantTsysSpectrumExists() const;
00710
00711
00712
00718 vector<vector<float > > getTantTsysSpectrum() const;
00719
00720
00721
00722
00729 void setTantTsysSpectrum (vector<vector<float > > tantTsysSpectrum);
00730
00731
00732
00733
00737 void clearTantTsysSpectrum ();
00738
00739
00740
00741
00742
00743
00744
00745
00750 bool isPhaseDiffFlagExists() const;
00751
00752
00753
00759 bool getPhaseDiffFlag() const;
00760
00761
00762
00763
00770 void setPhaseDiffFlag (bool phaseDiffFlag);
00771
00772
00773
00774
00778 void clearPhaseDiffFlag ();
00779
00780
00781
00782
00783
00784
00785
00786
00791 bool isPhaseDiffSpectrumExists() const;
00792
00793
00794
00800 vector<vector<float > > getPhaseDiffSpectrum() const;
00801
00802
00803
00804
00811 void setPhaseDiffSpectrum (vector<vector<float > > phaseDiffSpectrum);
00812
00813
00814
00815
00819 void clearPhaseDiffSpectrum ();
00820
00821
00822
00824
00826
00827
00828
00829
00830
00831
00832
00833
00838 Tag getAntennaId() const;
00839
00840
00841
00842
00852 void setAntennaId (Tag antennaId);
00853
00854
00855
00856
00857
00858
00859
00860
00861
00862
00863
00864
00865
00870 int getFeedId() const;
00871
00872
00873
00874
00884 void setFeedId (int feedId);
00885
00886
00887
00888
00889
00890
00891
00892
00893
00894
00895
00896
00897
00902 Tag getSpectralWindowId() const;
00903
00904
00905
00906
00916 void setSpectralWindowId (Tag spectralWindowId);
00917
00918
00919
00920
00921
00922
00924
00926
00927
00928
00929
00930
00937 AntennaRow* getAntennaUsingAntennaId();
00938
00939
00940
00941
00942
00943
00944
00945
00946
00947
00953 vector <FeedRow *> getFeeds();
00954
00955
00956
00957
00958
00959
00960
00961
00962
00969 SpectralWindowRow* getSpectralWindowUsingSpectralWindowId();
00970
00971
00972
00973
00974
00975
00976
00994 bool compareNoAutoInc(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numReceptor, int numChan);
00995
00996
00997
00998
01008 bool compareRequiredValue(int numReceptor, int numChan);
01009
01010
01019 bool equalByRequiredValue(SysCalRow* x) ;
01020
01021 #ifndef WITHOUT_ACS
01022
01026 SysCalRowIDL *toIDL() const;
01027 #endif
01028
01029 #ifndef WITHOUT_ACS
01030
01035 void setFromIDL (SysCalRowIDL x) ;
01036 #endif
01037
01042 string toXML() const;
01043
01050 void setFromXML (string rowDoc) ;
01051
01052 private:
01056 SysCalTable &table;
01060 bool hasBeenAdded;
01061
01062
01063 void isAdded(bool added);
01064
01065
01074 SysCalRow (SysCalTable &table);
01075
01093 SysCalRow (SysCalTable &table, SysCalRow &row);
01094
01096
01098
01099
01100
01101
01102
01103
01104 ArrayTimeInterval timeInterval;
01105
01106
01107
01108
01109
01110
01111
01112
01113
01114
01115 int numReceptor;
01116
01117
01118
01119
01120
01121
01122
01123
01124
01125
01126 int numChan;
01127
01128
01129
01130
01131
01132
01133
01134
01135
01136 bool tcalFlagExists;
01137
01138
01139 bool tcalFlag;
01140
01141
01142
01143
01144
01145
01146
01147
01148
01149 bool tcalSpectrumExists;
01150
01151
01152 vector<vector<Temperature > > tcalSpectrum;
01153
01154
01155
01156
01157
01158
01159
01160
01161
01162 bool trxFlagExists;
01163
01164
01165 bool trxFlag;
01166
01167
01168
01169
01170
01171
01172
01173
01174
01175 bool trxSpectrumExists;
01176
01177
01178 vector<vector<Temperature > > trxSpectrum;
01179
01180
01181
01182
01183
01184
01185
01186
01187
01188 bool tskyFlagExists;
01189
01190
01191 bool tskyFlag;
01192
01193
01194
01195
01196
01197
01198
01199
01200
01201 bool tskySpectrumExists;
01202
01203
01204 vector<vector<Temperature > > tskySpectrum;
01205
01206
01207
01208
01209
01210
01211
01212
01213
01214 bool tsysFlagExists;
01215
01216
01217 bool tsysFlag;
01218
01219
01220
01221
01222
01223
01224
01225
01226
01227 bool tsysSpectrumExists;
01228
01229
01230 vector<vector<Temperature > > tsysSpectrum;
01231
01232
01233
01234
01235
01236
01237
01238
01239
01240 bool tantFlagExists;
01241
01242
01243 bool tantFlag;
01244
01245
01246
01247
01248
01249
01250
01251
01252
01253 bool tantSpectrumExists;
01254
01255
01256 vector<vector<float > > tantSpectrum;
01257
01258
01259
01260
01261
01262
01263
01264
01265
01266 bool tantTsysFlagExists;
01267
01268
01269 bool tantTsysFlag;
01270
01271
01272
01273
01274
01275
01276
01277
01278
01279 bool tantTsysSpectrumExists;
01280
01281
01282 vector<vector<float > > tantTsysSpectrum;
01283
01284
01285
01286
01287
01288
01289
01290
01291
01292 bool phaseDiffFlagExists;
01293
01294
01295 bool phaseDiffFlag;
01296
01297
01298
01299
01300
01301
01302
01303
01304
01305 bool phaseDiffSpectrumExists;
01306
01307
01308 vector<vector<float > > phaseDiffSpectrum;
01309
01310
01311
01312
01313
01315
01317
01318
01319
01320
01321
01322
01323 Tag antennaId;
01324
01325
01326
01327
01328
01329
01330
01331
01332
01333
01334 int feedId;
01335
01336
01337
01338
01339
01340
01341
01342
01343
01344
01345 Tag spectralWindowId;
01346
01347
01348
01349
01350
01352
01354
01355
01356
01357
01358
01359
01360
01361
01362
01363
01364
01365
01366
01367
01368
01369
01370
01371
01372
01373
01374
01375
01377
01379 map<string, SysCalAttributeFromBin> fromBinMethods;
01380 void antennaIdFromBin( EndianISStream& eiss);
01381 void spectralWindowIdFromBin( EndianISStream& eiss);
01382 void timeIntervalFromBin( EndianISStream& eiss);
01383 void feedIdFromBin( EndianISStream& eiss);
01384 void numReceptorFromBin( EndianISStream& eiss);
01385 void numChanFromBin( EndianISStream& eiss);
01386
01387 void tcalFlagFromBin( EndianISStream& eiss);
01388 void tcalSpectrumFromBin( EndianISStream& eiss);
01389 void trxFlagFromBin( EndianISStream& eiss);
01390 void trxSpectrumFromBin( EndianISStream& eiss);
01391 void tskyFlagFromBin( EndianISStream& eiss);
01392 void tskySpectrumFromBin( EndianISStream& eiss);
01393 void tsysFlagFromBin( EndianISStream& eiss);
01394 void tsysSpectrumFromBin( EndianISStream& eiss);
01395 void tantFlagFromBin( EndianISStream& eiss);
01396 void tantSpectrumFromBin( EndianISStream& eiss);
01397 void tantTsysFlagFromBin( EndianISStream& eiss);
01398 void tantTsysSpectrumFromBin( EndianISStream& eiss);
01399 void phaseDiffFlagFromBin( EndianISStream& eiss);
01400 void phaseDiffSpectrumFromBin( EndianISStream& eiss);
01401
01402
01407 void toBin(EndianOSStream& eoss);
01408
01416 static SysCalRow* fromBin(EndianISStream& eiss, SysCalTable& table, const vector<string>& attributesSeq);
01417
01418 };
01419
01420 }
01421
01422 #endif