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 CalPointingModelRow_CLASS
00035
#define CalPointingModelRow_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::CalPointingModelRowIDL;
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
#include "CAntennaMake.h"
00082
using namespace AntennaMakeMod;
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
#include "CPointingModelMode.h"
00113
using namespace PointingModelModeMod;
00114
00115
00116
00117
#include "CReceiverBand.h"
00118
using namespace ReceiverBandMod;
00119
00120
00121
00122
00123
using asdm::Angle;
00124
using asdm::AngularRate;
00125
using asdm::ArrayTime;
00126
using asdm::Complex;
00127
using asdm::Entity;
00128
using asdm::EntityId;
00129
using asdm::EntityRef;
00130
using asdm::Flux;
00131
using asdm::Frequency;
00132
using asdm::Humidity;
00133
using asdm::Interval;
00134
using asdm::Length;
00135
using asdm::Pressure;
00136
using asdm::Speed;
00137
using asdm::Tag;
00138
using asdm::Temperature;
00139
using asdm::ConversionException;
00140
using asdm::NoSuchRow;
00141
using asdm::IllegalAccessException;
00142
00143
00144
00145
00146
00147
namespace asdm {
00148
00149
00150
00151
00152
00153
class CalDataRow;
00154
00155
00156
class CalReductionRow;
00157
00158
00165 class CalPointingModelRow {
00166
friend class asdm::CalPointingModelTable;
00167
00168
public:
00169
00170
virtual ~
CalPointingModelRow();
00171
00175
CalPointingModelTable &
getTable()
const;
00176
00177
#ifndef WITHOUT_ACS
00178
00182 CalPointingModelRowIDL *
toIDL()
const;
00183
#endif
00184
00185
#ifndef WITHOUT_ACS
00186
00190
void setFromIDL (CalPointingModelRowIDL x)
throw(
ConversionException);
00191
#endif
00192
00197 string
toXML()
const;
00198
00204
void setFromXML (string rowDoc)
throw(
ConversionException);
00205
00207
00209
00210
00211
00212
00213
00214
00215
00216
00221 string
getAntennaName()
const;
00222
00223
00224
00225
00235
void setAntennaName (string antennaName);
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00253 AntennaMakeMod::AntennaMake
getAntennaMake()
const;
00254
00255
00256
00257
00265
void setAntennaMake (AntennaMakeMod::AntennaMake antennaMake);
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00283
int getNumObs()
const;
00284
00285
00286
00287
00295
void setNumObs (
int numObs);
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00313
int getNumCoeff()
const;
00314
00315
00316
00317
00325
void setNumCoeff (
int numCoeff);
00326
00327
00328
00329
00330
00331
00332
00333
00334
00335
00336
00337
00338
00343
ArrayTime getStartValidTime()
const;
00344
00345
00346
00347
00355
void setStartValidTime (
ArrayTime startValidTime);
00356
00357
00358
00359
00360
00361
00362
00363
00364
00365
00366
00367
00368
00373
ArrayTime getEndValidTime()
const;
00374
00375
00376
00377
00385
void setEndValidTime (
ArrayTime endValidTime);
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00403
int getNumFormula()
const;
00404
00405
00406
00407
00415
void setNumFormula (
int numFormula);
00416
00417
00418
00419
00420
00421
00422
00423
00424
00425
00426
00427
00428
00433
Angle getAzimuthRms()
const;
00434
00435
00436
00437
00445
void setAzimuthRms (
Angle azimuthRms);
00446
00447
00448
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458
00463
Angle getElevationRms()
const;
00464
00465
00466
00467
00475
void setElevationRms (
Angle elevationRms);
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00493
Angle getSkyRms()
const;
00494
00495
00496
00497
00505
void setSkyRms (
Angle skyRms);
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515
00516
00517
00518
00523 vector<string >
getCoeffName()
const;
00524
00525
00526
00527
00535
void setCoeffName (vector<string > coeffName);
00536
00537
00538
00539
00540
00541
00542
00543
00544
00545
00546
00547
00548
00553 vector<float >
getCoeffVal()
const;
00554
00555
00556
00557
00565
void setCoeffVal (vector<float > coeffVal);
00566
00567
00568
00569
00570
00571
00572
00573
00574
00575
00576
00577
00578
00583 vector<float >
getCoeffError()
const;
00584
00585
00586
00587
00595
void setCoeffError (vector<float > coeffError);
00596
00597
00598
00599
00600
00601
00602
00603
00604
00605
00606
00607
00608
00613 vector<bool >
getCoeffFixed()
const;
00614
00615
00616
00617
00625
void setCoeffFixed (vector<bool > coeffFixed);
00626
00627
00628
00629
00630
00631
00632
00633
00634
00635
00636
00637
00638
00643 vector<string >
getCoeffFormula()
const;
00644
00645
00646
00647
00655
void setCoeffFormula (vector<string > coeffFormula);
00656
00657
00658
00659
00660
00661
00662
00663
00664
00665
00666
00667
00668
00673 PointingModelModeMod::PointingModelMode
getPointingModelMode()
const;
00674
00675
00676
00677
00685
void setPointingModelMode (PointingModelModeMod::PointingModelMode pointingModelMode);
00686
00687
00688
00689
00690
00691
00692
00693
00694
00695
00696
00697
00698
00703 ReceiverBandMod::ReceiverBand
getReceiverBand()
const;
00704
00705
00706
00707
00717
void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00718
00719
00720
00721
00722
00723
00725
00727
00728
00729
00730
00731
00732
00733
00734
00739
Tag getCalDataId()
const;
00740
00741
00742
00743
00753
void setCalDataId (
Tag calDataId);
00754
00755
00756
00757
00758
00759
00760
00761
00762
00763
00764
00765
00766
00771
Tag getCalReductionId()
const;
00772
00773
00774
00775
00785
void setCalReductionId (
Tag calReductionId);
00786
00787
00788
00789
00790
00791
00793
00795
00796
00797
00798
00799
00806
CalDataRow*
getCalDataUsingCalDataId();
00807
00808
00809
00810
00811
00812
00813
00814
00821
CalReductionRow*
getCalReductionUsingCalReductionId();
00822
00823
00824
00825
00826
00827
00828
00833
bool compareNoAutoInc(
Tag calDataId,
Tag calReductionId, string antennaName, ReceiverBandMod::ReceiverBand receiverBand, AntennaMakeMod::AntennaMake antennaMake,
int numObs,
int numCoeff,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numFormula,
Angle azimuthRms,
Angle elevationRms,
Angle skyRms, vector<string > coeffName, vector<float > coeffVal, vector<float > coeffError, vector<bool > coeffFixed, vector<string > coeffFormula, PointingModelModeMod::PointingModelMode pointingModelMode);
00834
00835
00836
00837
00838
bool compareRequiredValue(AntennaMakeMod::AntennaMake antennaMake,
int numObs,
int numCoeff,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numFormula,
Angle azimuthRms,
Angle elevationRms,
Angle skyRms, vector<string > coeffName, vector<float > coeffVal, vector<float > coeffError, vector<bool > coeffFixed, vector<string > coeffFormula, PointingModelModeMod::PointingModelMode pointingModelMode);
00839
00840
00849
bool equalByRequiredValue(
CalPointingModelRow* x) ;
00850
00851
private:
00855
CalPointingModelTable &table;
00859
bool hasBeenAdded;
00860
00861
00862
void isAdded();
00863
00864
00873
CalPointingModelRow (
CalPointingModelTable &table);
00874
00892
CalPointingModelRow (
CalPointingModelTable &table,
CalPointingModelRow &row);
00893
00895
00897
00898
00899
00900
00901
00902
00903 string antennaName;
00904
00905
00906
00907
00908
00909
00910
00911
00912
00913
00914 AntennaMakeMod::AntennaMake antennaMake;
00915
00916
00917
00918
00919
00920
00921
00922
00923
00924
00925
int numObs;
00926
00927
00928
00929
00930
00931
00932
00933
00934
00935
00936
int numCoeff;
00937
00938
00939
00940
00941
00942
00943
00944
00945
00946
00947
ArrayTime startValidTime;
00948
00949
00950
00951
00952
00953
00954
00955
00956
00957
00958
ArrayTime endValidTime;
00959
00960
00961
00962
00963
00964
00965
00966
00967
00968
00969
int numFormula;
00970
00971
00972
00973
00974
00975
00976
00977
00978
00979
00980
Angle azimuthRms;
00981
00982
00983
00984
00985
00986
00987
00988
00989
00990
00991
Angle elevationRms;
00992
00993
00994
00995
00996
00997
00998
00999
01000
01001
01002
Angle skyRms;
01003
01004
01005
01006
01007
01008
01009
01010
01011
01012
01013 vector<string > coeffName;
01014
01015
01016
01017
01018
01019
01020
01021
01022
01023
01024 vector<float > coeffVal;
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034
01035 vector<float > coeffError;
01036
01037
01038
01039
01040
01041
01042
01043
01044
01045
01046 vector<bool > coeffFixed;
01047
01048
01049
01050
01051
01052
01053
01054
01055
01056
01057 vector<string > coeffFormula;
01058
01059
01060
01061
01062
01063
01064
01065
01066
01067
01068 PointingModelModeMod::PointingModelMode pointingModelMode;
01069
01070
01071
01072
01073
01074
01075
01076
01077
01078
01079 ReceiverBandMod::ReceiverBand receiverBand;
01080
01081
01082
01083
01084
01086
01088
01089
01090
01091
01092
01093
01094
Tag calDataId;
01095
01096
01097
01098
01099
01100
01101
01102
01103
01104
01105
Tag calReductionId;
01106
01107
01108
01109
01110
01112
01114
01115
01116
01117
01118
01119
01120
01121
01122
01123
01124
01125
01126
01127
01128
01129
01130 };
01131
01132 }
01133
01134
#endif