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 CorrelatorModeRow_CLASS
00035 #define CorrelatorModeRow_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::CorrelatorModeRowIDL;
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 #include "CBasebandName.h"
00084 using namespace BasebandNameMod;
00085
00086
00087
00088
00089
00090 #include "CAccumMode.h"
00091 using namespace AccumModeMod;
00092
00093
00094
00095
00096
00097 #include "CAxisName.h"
00098 using namespace AxisNameMod;
00099
00100
00101
00102 #include "CFilterMode.h"
00103 using namespace FilterModeMod;
00104
00105
00106
00107 #include "CCorrelatorName.h"
00108 using namespace CorrelatorNameMod;
00109
00110
00111
00112
00113 using asdm::Angle;
00114 using asdm::AngularRate;
00115 using asdm::ArrayTime;
00116 using asdm::Complex;
00117 using asdm::Entity;
00118 using asdm::EntityId;
00119 using asdm::EntityRef;
00120 using asdm::Flux;
00121 using asdm::Frequency;
00122 using asdm::Humidity;
00123 using asdm::Interval;
00124 using asdm::Length;
00125 using asdm::Pressure;
00126 using asdm::Speed;
00127 using asdm::Tag;
00128 using asdm::Temperature;
00129 using asdm::ConversionException;
00130 using asdm::NoSuchRow;
00131 using asdm::IllegalAccessException;
00132
00133
00134
00135
00136
00137 namespace asdm {
00138
00139
00140
00141
00142
00149 class CorrelatorModeRow {
00150 friend class asdm::CorrelatorModeTable;
00151
00152 public:
00153
00154 virtual ~CorrelatorModeRow();
00155
00159 CorrelatorModeTable &getTable() const;
00160
00161 #ifndef WITHOUT_ACS
00162
00166 CorrelatorModeRowIDL *toIDL() const;
00167 #endif
00168
00169 #ifndef WITHOUT_ACS
00170
00174 void setFromIDL (CorrelatorModeRowIDL x) throw(ConversionException);
00175 #endif
00176
00181 string toXML() const;
00182
00188 void setFromXML (string rowDoc) throw(ConversionException);
00189
00191
00193
00194
00195
00196
00197
00198
00199
00200
00205 Tag getAlmaCorrelatorModeId() const;
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00225 int getNumBaseband() const;
00226
00227
00228
00229
00235 void setNumBaseband (int numBaseband);
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00253 vector<BasebandName > getBasebandNames() const;
00254
00255
00256
00257
00263 void setBasebandNames (vector<BasebandName > basebandNames);
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00281 vector<int > getBasebandConfig() const;
00282
00283
00284
00285
00291 void setBasebandConfig (vector<int > basebandConfig);
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304
00309 AccumMode getAccumMode() const;
00310
00311
00312
00313
00319 void setAccumMode (AccumMode accumMode);
00320
00321
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00337 int getBinMode() const;
00338
00339
00340
00341
00347 void setBinMode (int binMode);
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00365 vector<AxisName > getAxesOrderArray() const;
00366
00367
00368
00369
00375 void setAxesOrderArray (vector<AxisName > axesOrderArray);
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00393 vector<FilterMode > getFilterMode() const;
00394
00395
00396
00397
00403 void setFilterMode (vector<FilterMode > filterMode);
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413
00414
00415
00416
00421 CorrelatorName getCorrelatorName() const;
00422
00423
00424
00425
00431 void setCorrelatorName (CorrelatorName correlatorName);
00432
00433
00434
00435
00436
00437
00439
00441
00443
00445
00446
00447
00448
00453 bool compareNoAutoInc(int numBaseband, vector<BasebandName > basebandNames, vector<int > basebandConfig, AccumMode accumMode, int binMode, vector<AxisName > axesOrderArray, vector<FilterMode > filterMode, CorrelatorName correlatorName);
00454
00455
00456
00457
00458 bool compareRequiredValue(int numBaseband, vector<BasebandName > basebandNames, vector<int > basebandConfig, AccumMode accumMode, int binMode, vector<AxisName > axesOrderArray, vector<FilterMode > filterMode, CorrelatorName correlatorName);
00459
00460
00469 bool equalByRequiredValue(CorrelatorModeRow* x) ;
00470
00471 private:
00475 CorrelatorModeTable &table;
00479 bool hasBeenAdded;
00480
00481
00482 void isAdded();
00483
00484
00493 CorrelatorModeRow (CorrelatorModeTable &table);
00494
00512 CorrelatorModeRow (CorrelatorModeTable &table, CorrelatorModeRow &row);
00513
00515
00517
00518
00519
00520
00521
00522
00523 Tag almaCorrelatorModeId;
00524
00525
00526
00527
00534 void setAlmaCorrelatorModeId (Tag almaCorrelatorModeId) throw(IllegalAccessException);
00535
00536
00537
00538
00539
00540
00541
00542
00543 int numBaseband;
00544
00545
00546
00547
00548
00549
00550
00551
00552
00553
00554 vector<BasebandName > basebandNames;
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565 vector<int > basebandConfig;
00566
00567
00568
00569
00570
00571
00572
00573
00574
00575
00576 AccumMode accumMode;
00577
00578
00579
00580
00581
00582
00583
00584
00585
00586
00587 int binMode;
00588
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598 vector<AxisName > axesOrderArray;
00599
00600
00601
00602
00603
00604
00605
00606
00607
00608
00609 vector<FilterMode > filterMode;
00610
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620 CorrelatorName correlatorName;
00621
00622
00623
00624
00625
00627
00629
00631
00633
00634
00635 };
00636
00637 }
00638
00639 #endif