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 CalReductionRow_CLASS
00035 #define CalReductionRow_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::CalReductionRowIDL;
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
00099 #include "CInvalidatingCondition.h"
00100 using namespace InvalidatingConditionMod;
00101
00102
00103
00104
00105 using asdm::Angle;
00106 using asdm::AngularRate;
00107 using asdm::ArrayTime;
00108 using asdm::Complex;
00109 using asdm::Entity;
00110 using asdm::EntityId;
00111 using asdm::EntityRef;
00112 using asdm::Flux;
00113 using asdm::Frequency;
00114 using asdm::Humidity;
00115 using asdm::Interval;
00116 using asdm::Length;
00117 using asdm::Pressure;
00118 using asdm::Speed;
00119 using asdm::Tag;
00120 using asdm::Temperature;
00121 using asdm::ConversionException;
00122 using asdm::NoSuchRow;
00123 using asdm::IllegalAccessException;
00124
00125
00126
00127
00128
00129 namespace asdm {
00130
00131
00132
00133
00134
00141 class CalReductionRow {
00142 friend class asdm::CalReductionTable;
00143
00144 public:
00145
00146 virtual ~CalReductionRow();
00147
00151 CalReductionTable &getTable() const;
00152
00153 #ifndef WITHOUT_ACS
00154
00158 CalReductionRowIDL *toIDL() const;
00159 #endif
00160
00161 #ifndef WITHOUT_ACS
00162
00166 void setFromIDL (CalReductionRowIDL x) throw(ConversionException);
00167 #endif
00168
00173 string toXML() const;
00174
00180 void setFromXML (string rowDoc) throw(ConversionException);
00181
00183
00185
00186
00187
00188
00189
00190
00191
00192
00197 Tag getCalReductionId() const;
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00217 int getNumApplied() const;
00218
00219
00220
00221
00227 void setNumApplied (int numApplied);
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00245 int getNumParam() const;
00246
00247
00248
00249
00255 void setNumParam (int numParam);
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00273 ArrayTime getTimeReduced() const;
00274
00275
00276
00277
00283 void setTimeReduced (ArrayTime timeReduced);
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00301 vector<string > getCalAppliedArray() const;
00302
00303
00304
00305
00311 void setCalAppliedArray (vector<string > calAppliedArray);
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00329 vector<string > getParamSet() const;
00330
00331
00332
00333
00339 void setParamSet (vector<string > paramSet);
00340
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00357 string getMessages() const;
00358
00359
00360
00361
00367 void setMessages (string messages);
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00385 string getSoftware() const;
00386
00387
00388
00389
00395 void setSoftware (string software);
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407
00408
00413 string getSoftwareVersion() const;
00414
00415
00416
00417
00423 void setSoftwareVersion (string softwareVersion);
00424
00425
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436
00441 int getNumInvalidConditions() const;
00442
00443
00444
00445
00451 void setNumInvalidConditions (int numInvalidConditions);
00452
00453
00454
00455
00456
00457
00458
00459
00460
00461
00462
00463
00464
00469 vector<InvalidatingCondition > getInvalidConditions() const;
00470
00471
00472
00473
00479 void setInvalidConditions (vector<InvalidatingCondition > invalidConditions);
00480
00481
00482
00483
00484
00485
00487
00489
00491
00493
00494
00495
00496
00501 bool compareNoAutoInc(int numApplied, int numParam, ArrayTime timeReduced, vector<string > calAppliedArray, vector<string > paramSet, string messages, string software, string softwareVersion, int numInvalidConditions, vector<InvalidatingCondition > invalidConditions);
00502
00503
00504
00505
00506 bool compareRequiredValue(int numApplied, int numParam, ArrayTime timeReduced, vector<string > calAppliedArray, vector<string > paramSet, string messages, string software, string softwareVersion, int numInvalidConditions, vector<InvalidatingCondition > invalidConditions);
00507
00508
00517 bool equalByRequiredValue(CalReductionRow* x) ;
00518
00519 private:
00523 CalReductionTable &table;
00527 bool hasBeenAdded;
00528
00529
00530 void isAdded();
00531
00532
00541 CalReductionRow (CalReductionTable &table);
00542
00560 CalReductionRow (CalReductionTable &table, CalReductionRow &row);
00561
00563
00565
00566
00567
00568
00569
00570
00571 Tag calReductionId;
00572
00573
00574
00575
00582 void setCalReductionId (Tag calReductionId) throw(IllegalAccessException);
00583
00584
00585
00586
00587
00588
00589
00590
00591 int numApplied;
00592
00593
00594
00595
00596
00597
00598
00599
00600
00601
00602 int numParam;
00603
00604
00605
00606
00607
00608
00609
00610
00611
00612
00613 ArrayTime timeReduced;
00614
00615
00616
00617
00618
00619
00620
00621
00622
00623
00624 vector<string > calAppliedArray;
00625
00626
00627
00628
00629
00630
00631
00632
00633
00634
00635 vector<string > paramSet;
00636
00637
00638
00639
00640
00641
00642
00643
00644
00645
00646 string messages;
00647
00648
00649
00650
00651
00652
00653
00654
00655
00656
00657 string software;
00658
00659
00660
00661
00662
00663
00664
00665
00666
00667
00668 string softwareVersion;
00669
00670
00671
00672
00673
00674
00675
00676
00677
00678
00679 int numInvalidConditions;
00680
00681
00682
00683
00684
00685
00686
00687
00688
00689
00690 vector<InvalidatingCondition > invalidConditions;
00691
00692
00693
00694
00695
00697
00699
00701
00703
00704
00705 };
00706
00707 }
00708
00709 #endif