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
00237
void setNumBaseband (
int numBaseband);
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00255 vector<BasebandNameMod::BasebandName >
getBasebandNames()
const;
00256
00257
00258
00259
00267
void setBasebandNames (vector<BasebandNameMod::BasebandName > basebandNames);
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00285 vector<int >
getBasebandConfig()
const;
00286
00287
00288
00289
00297
void setBasebandConfig (vector<int > basebandConfig);
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310
00315 AccumModeMod::AccumMode
getAccumMode()
const;
00316
00317
00318
00319
00327
void setAccumMode (AccumModeMod::AccumMode accumMode);
00328
00329
00330
00331
00332
00333
00334
00335
00336
00337
00338
00339
00340
00345
int getBinMode()
const;
00346
00347
00348
00349
00357
void setBinMode (
int binMode);
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00369
00370
00375 vector<AxisNameMod::AxisName >
getAxesOrderArray()
const;
00376
00377
00378
00379
00387
void setAxesOrderArray (vector<AxisNameMod::AxisName > axesOrderArray);
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400
00405 vector<FilterModeMod::FilterMode >
getFilterMode()
const;
00406
00407
00408
00409
00417
void setFilterMode (vector<FilterModeMod::FilterMode > filterMode);
00418
00419
00420
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00435 CorrelatorNameMod::CorrelatorName
getCorrelatorName()
const;
00436
00437
00438
00439
00447
void setCorrelatorName (CorrelatorNameMod::CorrelatorName correlatorName);
00448
00449
00450
00451
00452
00453
00455
00457
00459
00461
00462
00463
00464
00469
bool compareNoAutoInc(
int numBaseband, vector<BasebandNameMod::BasebandName > basebandNames, vector<int > basebandConfig, AccumModeMod::AccumMode accumMode,
int binMode, vector<AxisNameMod::AxisName > axesOrderArray, vector<FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName);
00470
00471
00472
00473
00474
bool compareRequiredValue(
int numBaseband, vector<BasebandNameMod::BasebandName > basebandNames, vector<int > basebandConfig, AccumModeMod::AccumMode accumMode,
int binMode, vector<AxisNameMod::AxisName > axesOrderArray, vector<FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName);
00475
00476
00485
bool equalByRequiredValue(
CorrelatorModeRow* x) ;
00486
00487
private:
00491
CorrelatorModeTable &table;
00495
bool hasBeenAdded;
00496
00497
00498
void isAdded();
00499
00500
00509
CorrelatorModeRow (
CorrelatorModeTable &table);
00510
00528
CorrelatorModeRow (
CorrelatorModeTable &table,
CorrelatorModeRow &row);
00529
00531
00533
00534
00535
00536
00537
00538
00539
Tag almaCorrelatorModeId;
00540
00541
00542
00543
00553
void setAlmaCorrelatorModeId (
Tag almaCorrelatorModeId);
00554
00555
00556
00557
00558
00559
00560
00561
00562
int numBaseband;
00563
00564
00565
00566
00567
00568
00569
00570
00571
00572
00573 vector<BasebandNameMod::BasebandName > basebandNames;
00574
00575
00576
00577
00578
00579
00580
00581
00582
00583
00584 vector<int > basebandConfig;
00585
00586
00587
00588
00589
00590
00591
00592
00593
00594
00595 AccumModeMod::AccumMode accumMode;
00596
00597
00598
00599
00600
00601
00602
00603
00604
00605
00606
int binMode;
00607
00608
00609
00610
00611
00612
00613
00614
00615
00616
00617 vector<AxisNameMod::AxisName > axesOrderArray;
00618
00619
00620
00621
00622
00623
00624
00625
00626
00627
00628 vector<FilterModeMod::FilterMode > filterMode;
00629
00630
00631
00632
00633
00634
00635
00636
00637
00638
00639 CorrelatorNameMod::CorrelatorName correlatorName;
00640
00641
00642
00643
00644
00646
00648
00650
00652
00653
00654 };
00655
00656 }
00657
00658
#endif