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 FocusRow_CLASS
00035
#define FocusRow_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::FocusRowIDL;
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
using asdm::Angle;
00097
using asdm::AngularRate;
00098
using asdm::ArrayTime;
00099
using asdm::Complex;
00100
using asdm::Entity;
00101
using asdm::EntityId;
00102
using asdm::EntityRef;
00103
using asdm::Flux;
00104
using asdm::Frequency;
00105
using asdm::Humidity;
00106
using asdm::Interval;
00107
using asdm::Length;
00108
using asdm::Pressure;
00109
using asdm::Speed;
00110
using asdm::Tag;
00111
using asdm::Temperature;
00112
using asdm::ConversionException;
00113
using asdm::NoSuchRow;
00114
using asdm::IllegalAccessException;
00115
00116
00117
00118
00119
00120
namespace asdm {
00121
00122
00123
00124
00125
00126
class FocusModelRow;
00127
00128
00129
class FeedRow;
00130
00131
00132
class AntennaRow;
00133
00134
00141 class FocusRow {
00142
friend class asdm::FocusTable;
00143
00144
public:
00145
00146
virtual ~
FocusRow();
00147
00151
FocusTable &
getTable()
const;
00152
00153
#ifndef WITHOUT_ACS
00154
00158 FocusRowIDL *
toIDL()
const;
00159
#endif
00160
00161
#ifndef WITHOUT_ACS
00162
00166
void setFromIDL (FocusRowIDL 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
ArrayTimeInterval getTimeInterval()
const;
00198
00199
00200
00201
00211
void setTimeInterval (
ArrayTimeInterval timeInterval);
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00229
Length getXFocusPosition()
const;
00230
00231
00232
00233
00241
void setXFocusPosition (
Length xFocusPosition);
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00259
Length getYFocusPosition()
const;
00260
00261
00262
00263
00271
void setYFocusPosition (
Length yFocusPosition);
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00289
Length getZFocusPosition()
const;
00290
00291
00292
00293
00301
void setZFocusPosition (
Length zFocusPosition);
00302
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313
00314
00319
bool getFocusTracking()
const;
00320
00321
00322
00323
00331
void setFocusTracking (
bool focusTracking);
00332
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00349
Length getXFocusOffset()
const;
00350
00351
00352
00353
00361
void setXFocusOffset (
Length xFocusOffset);
00362
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00379
Length getYFocusOffset()
const;
00380
00381
00382
00383
00391
void setYFocusOffset (
Length yFocusOffset);
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404
00409
Length getZFocusOffset()
const;
00410
00411
00412
00413
00421
void setZFocusOffset (
Length zFocusOffset);
00422
00423
00424
00425
00426
00427
00429
00431
00432
00433
00434
00435
00436
00437
00438
00443
Tag getAntennaId()
const;
00444
00445
00446
00447
00457
void setAntennaId (
Tag antennaId);
00458
00459
00460
00461
00462
00463
00464
00465
00466
00467
00468
00469
00470
00475
int getFeedId()
const;
00476
00477
00478
00479
00489
void setFeedId (
int feedId);
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00507
Tag getFocusModelId()
const;
00508
00509
00510
00511
00519
void setFocusModelId (
Tag focusModelId);
00520
00521
00522
00523
00524
00525
00527
00529
00530
00531
00532
00533
00540
FocusModelRow*
getFocusModelUsingFocusModelId();
00541
00542
00543
00544
00545
00546
00547
00548
00549
00550
00556 vector <FeedRow *>
getFeeds();
00557
00558
00559
00560
00561
00562
00563
00564
00565
00572
AntennaRow*
getAntennaUsingAntennaId();
00573
00574
00575
00576
00577
00578
00579
00584
bool compareNoAutoInc(
Tag antennaId,
int feedId,
ArrayTimeInterval timeInterval,
Tag focusModelId,
Length xFocusPosition,
Length yFocusPosition,
Length zFocusPosition,
bool focusTracking,
Length xFocusOffset,
Length yFocusOffset,
Length zFocusOffset);
00585
00586
00587
00588
00589
bool compareRequiredValue(
Tag focusModelId,
Length xFocusPosition,
Length yFocusPosition,
Length zFocusPosition,
bool focusTracking,
Length xFocusOffset,
Length yFocusOffset,
Length zFocusOffset);
00590
00591
00600
bool equalByRequiredValue(
FocusRow* x) ;
00601
00602
private:
00606
FocusTable &table;
00610
bool hasBeenAdded;
00611
00612
00613
void isAdded();
00614
00615
00624
FocusRow (
FocusTable &table);
00625
00643
FocusRow (
FocusTable &table,
FocusRow &row);
00644
00646
00648
00649
00650
00651
00652
00653
00654
ArrayTimeInterval timeInterval;
00655
00656
00657
00658
00659
00660
00661
00662
00663
00664
00665
Length xFocusPosition;
00666
00667
00668
00669
00670
00671
00672
00673
00674
00675
00676
Length yFocusPosition;
00677
00678
00679
00680
00681
00682
00683
00684
00685
00686
00687
Length zFocusPosition;
00688
00689
00690
00691
00692
00693
00694
00695
00696
00697
00698
bool focusTracking;
00699
00700
00701
00702
00703
00704
00705
00706
00707
00708
00709
Length xFocusOffset;
00710
00711
00712
00713
00714
00715
00716
00717
00718
00719
00720
Length yFocusOffset;
00721
00722
00723
00724
00725
00726
00727
00728
00729
00730
00731
Length zFocusOffset;
00732
00733
00734
00735
00736
00738
00740
00741
00742
00743
00744
00745
00746
Tag antennaId;
00747
00748
00749
00750
00751
00752
00753
00754
00755
00756
00757
int feedId;
00758
00759
00760
00761
00762
00763
00764
00765
00766
00767
00768
Tag focusModelId;
00769
00770
00771
00772
00773
00775
00777
00778
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788
00789
00790
00791
00792
00793
00794
00795
00796
00797
00798
00799 };
00800
00801 }
00802
00803
#endif