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 CalGainRow_CLASS
00035 #define CalGainRow_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::CalGainRowIDL;
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
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098 using asdm::Angle;
00099 using asdm::AngularRate;
00100 using asdm::ArrayTime;
00101 using asdm::Complex;
00102 using asdm::Entity;
00103 using asdm::EntityId;
00104 using asdm::EntityRef;
00105 using asdm::Flux;
00106 using asdm::Frequency;
00107 using asdm::Humidity;
00108 using asdm::Interval;
00109 using asdm::Length;
00110 using asdm::Pressure;
00111 using asdm::Speed;
00112 using asdm::Tag;
00113 using asdm::Temperature;
00114 using asdm::ConversionException;
00115 using asdm::NoSuchRow;
00116 using asdm::IllegalAccessException;
00117
00118
00119
00120
00121
00122 namespace asdm {
00123
00124
00125
00126
00127
00128 class CalDataRow;
00129
00130
00131 class CalReductionRow;
00132
00133
00140 class CalGainRow {
00141 friend class asdm::CalGainTable;
00142
00143 public:
00144
00145 virtual ~CalGainRow();
00146
00150 CalGainTable &getTable() const;
00151
00152 #ifndef WITHOUT_ACS
00153
00157 CalGainRowIDL *toIDL() const;
00158 #endif
00159
00160 #ifndef WITHOUT_ACS
00161
00165 void setFromIDL (CalGainRowIDL x) throw(ConversionException);
00166 #endif
00167
00172 string toXML() const;
00173
00179 void setFromXML (string rowDoc) throw(ConversionException);
00180
00182
00184
00185
00186
00187
00188
00189
00190
00191
00196 ArrayTime getStartValidTime() const;
00197
00198
00199
00200
00206 void setStartValidTime (ArrayTime startValidTime);
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00224 ArrayTime getEndValidTime() const;
00225
00226
00227
00228
00234 void setEndValidTime (ArrayTime endValidTime);
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00252 vector<vector<float > > getGain() const;
00253
00254
00255
00256
00262 void setGain (vector<vector<float > > gain);
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00280 vector<bool > getGainValid() const;
00281
00282
00283
00284
00290 void setGainValid (vector<bool > gainValid);
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00308 vector<vector<float > > getFit() const;
00309
00310
00311
00312
00318 void setFit (vector<vector<float > > fit);
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00336 vector<float > getFitWeight() const;
00337
00338
00339
00340
00346 void setFitWeight (vector<float > fitWeight);
00347
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00364 bool getTotalGainValid() const;
00365
00366
00367
00368
00374 void setTotalGainValid (bool totalGainValid);
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00392 float getTotalFit() const;
00393
00394
00395
00396
00402 void setTotalFit (float totalFit);
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413
00414
00415
00420 float getTotalFitWeight() const;
00421
00422
00423
00424
00430 void setTotalFitWeight (float totalFitWeight);
00431
00432
00433
00434
00435
00436
00438
00440
00441
00442
00443
00444
00445
00446
00447
00452 Tag getCalDataId() const;
00453
00454
00455
00456
00463 void setCalDataId (Tag calDataId) throw(IllegalAccessException);
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
00476
00481 Tag getCalReductionId() const;
00482
00483
00484
00485
00492 void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00493
00494
00495
00496
00497
00498
00500
00502
00503
00504
00505
00506
00513 CalDataRow* getCalDataUsingCalDataId();
00514
00515
00516
00517
00518
00519
00520
00521
00528 CalReductionRow* getCalReductionUsingCalReductionId();
00529
00530
00531
00532
00533
00534
00535
00540 bool compareNoAutoInc(Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, vector<vector<float > > gain, vector<bool > gainValid, vector<vector<float > > fit, vector<float > fitWeight, bool totalGainValid, float totalFit, float totalFitWeight);
00541
00542
00543
00544
00545 bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, vector<vector<float > > gain, vector<bool > gainValid, vector<vector<float > > fit, vector<float > fitWeight, bool totalGainValid, float totalFit, float totalFitWeight);
00546
00547
00556 bool equalByRequiredValue(CalGainRow* x) ;
00557
00558 private:
00562 CalGainTable &table;
00566 bool hasBeenAdded;
00567
00568
00569 void isAdded();
00570
00571
00580 CalGainRow (CalGainTable &table);
00581
00599 CalGainRow (CalGainTable &table, CalGainRow &row);
00600
00602
00604
00605
00606
00607
00608
00609
00610 ArrayTime startValidTime;
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621 ArrayTime endValidTime;
00622
00623
00624
00625
00626
00627
00628
00629
00630
00631
00632 vector<vector<float > > gain;
00633
00634
00635
00636
00637
00638
00639
00640
00641
00642
00643 vector<bool > gainValid;
00644
00645
00646
00647
00648
00649
00650
00651
00652
00653
00654 vector<vector<float > > fit;
00655
00656
00657
00658
00659
00660
00661
00662
00663
00664
00665 vector<float > fitWeight;
00666
00667
00668
00669
00670
00671
00672
00673
00674
00675
00676 bool totalGainValid;
00677
00678
00679
00680
00681
00682
00683
00684
00685
00686
00687 float totalFit;
00688
00689
00690
00691
00692
00693
00694
00695
00696
00697
00698 float totalFitWeight;
00699
00700
00701
00702
00703
00705
00707
00708
00709
00710
00711
00712
00713 Tag calDataId;
00714
00715
00716
00717
00718
00719
00720
00721
00722
00723
00724 Tag calReductionId;
00725
00726
00727
00728
00729
00731
00733
00734
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744
00745
00746
00747
00748
00749 };
00750
00751 }
00752
00753 #endif