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 FreqOffsetRow_CLASS
00035
#define FreqOffsetRow_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::FreqOffsetRowIDL;
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
using asdm::Angle;
00085
using asdm::AngularRate;
00086
using asdm::ArrayTime;
00087
using asdm::Complex;
00088
using asdm::Entity;
00089
using asdm::EntityId;
00090
using asdm::EntityRef;
00091
using asdm::Flux;
00092
using asdm::Frequency;
00093
using asdm::Humidity;
00094
using asdm::Interval;
00095
using asdm::Length;
00096
using asdm::Pressure;
00097
using asdm::Speed;
00098
using asdm::Tag;
00099
using asdm::Temperature;
00100
using asdm::ConversionException;
00101
using asdm::NoSuchRow;
00102
using asdm::IllegalAccessException;
00103
00104
00105
00106
00107
00108
namespace asdm {
00109
00110
00111
00112
00113
00114
class FeedRow;
00115
00116
00117
class AntennaRow;
00118
00119
00120
class SpectralWindowRow;
00121
00122
00129 class FreqOffsetRow {
00130
friend class asdm::FreqOffsetTable;
00131
00132
public:
00133
00134
virtual ~
FreqOffsetRow();
00135
00139
FreqOffsetTable &
getTable()
const;
00140
00141
#ifndef WITHOUT_ACS
00142
00146 FreqOffsetRowIDL *
toIDL()
const;
00147
#endif
00148
00149
#ifndef WITHOUT_ACS
00150
00154
void setFromIDL (FreqOffsetRowIDL x)
throw(
ConversionException);
00155
#endif
00156
00161 string
toXML()
const;
00162
00168
void setFromXML (string rowDoc)
throw(
ConversionException);
00169
00171
00173
00174
00175
00176
00177
00178
00179
00180
00185
ArrayTimeInterval getTimeInterval()
const;
00186
00187
00188
00189
00199
void setTimeInterval (
ArrayTimeInterval timeInterval);
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00217
Frequency getOffset()
const;
00218
00219
00220
00221
00229
void setOffset (
Frequency offset);
00230
00231
00232
00233
00234
00235
00237
00239
00240
00241
00242
00243
00244
00245
00246
00251
Tag getAntennaId()
const;
00252
00253
00254
00255
00265
void setAntennaId (
Tag antennaId);
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00283
int getFeedId()
const;
00284
00285
00286
00287
00297
void setFeedId (
int feedId);
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310
00315
Tag getSpectralWindowId()
const;
00316
00317
00318
00319
00329
void setSpectralWindowId (
Tag spectralWindowId);
00330
00331
00332
00333
00334
00335
00337
00339
00340
00341
00342
00343
00344
00345
00351 vector <FeedRow *>
getFeeds();
00352
00353
00354
00355
00356
00357
00358
00359
00360
00367
AntennaRow*
getAntennaUsingAntennaId();
00368
00369
00370
00371
00372
00373
00374
00375
00382
SpectralWindowRow*
getSpectralWindowUsingSpectralWindowId();
00383
00384
00385
00386
00387
00388
00389
00394
bool compareNoAutoInc(
Tag antennaId,
int feedId,
Tag spectralWindowId,
ArrayTimeInterval timeInterval,
Frequency offset);
00395
00396
00397
00398
00399
bool compareRequiredValue(
Frequency offset);
00400
00401
00410
bool equalByRequiredValue(
FreqOffsetRow* x) ;
00411
00412
private:
00416
FreqOffsetTable &table;
00420
bool hasBeenAdded;
00421
00422
00423
void isAdded();
00424
00425
00434
FreqOffsetRow (
FreqOffsetTable &table);
00435
00453
FreqOffsetRow (
FreqOffsetTable &table,
FreqOffsetRow &row);
00454
00456
00458
00459
00460
00461
00462
00463
00464
ArrayTimeInterval timeInterval;
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
Frequency offset;
00476
00477
00478
00479
00480
00482
00484
00485
00486
00487
00488
00489
00490
Tag antennaId;
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
int feedId;
00502
00503
00504
00505
00506
00507
00508
00509
00510
00511
00512
Tag spectralWindowId;
00513
00514
00515
00516
00517
00519
00521
00522
00523
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538
00539
00540
00541
00542
00543 };
00544
00545 }
00546
00547
#endif