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 SourceParameterRow_CLASS
00035
#define SourceParameterRow_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::SourceParameterRowIDL;
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
#include "CStokesParameter.h"
00088
using namespace StokesParameterMod;
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
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
00143
class SourceRow;
00144
00145
00152 class SourceParameterRow {
00153
friend class asdm::SourceParameterTable;
00154
00155
public:
00156
00157
virtual ~
SourceParameterRow();
00158
00162
SourceParameterTable &
getTable()
const;
00163
00164
#ifndef WITHOUT_ACS
00165
00169 SourceParameterRowIDL *
toIDL()
const;
00170
#endif
00171
00172
#ifndef WITHOUT_ACS
00173
00177
void setFromIDL (SourceParameterRowIDL x)
throw(
ConversionException);
00178
#endif
00179
00184 string
toXML()
const;
00185
00191
void setFromXML (string rowDoc)
throw(
ConversionException);
00192
00194
00196
00197
00198
00199
00200
00201
00202
00203
00208
ArrayTimeInterval getTimeInterval()
const;
00209
00210
00211
00212
00222
void setTimeInterval (
ArrayTimeInterval timeInterval);
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00240
int getNumFreq()
const;
00241
00242
00243
00244
00252
void setNumFreq (
int numFreq);
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00270
int getNumStokes()
const;
00271
00272
00273
00274
00282
void setNumStokes (
int numStokes);
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00300
int getNumDep()
const;
00301
00302
00303
00304
00312
void setNumDep (
int numDep);
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00330 vector<StokesParameterMod::StokesParameter >
getStokesParameter()
const;
00331
00332
00333
00334
00342
void setStokesParameter (vector<StokesParameterMod::StokesParameter > stokesParameter);
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00355
00360 vector<vector<Flux > >
getFlux()
const;
00361
00362
00363
00364
00372
void setFlux (vector<vector<Flux > > flux);
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00388
bool isSizeExists()
const;
00389
00390
00391
00397 vector<vector<Angle > >
getSize()
const throw(
IllegalAccessException);
00398
00399
00400
00401
00408
void setSize (vector<vector<Angle > > size);
00409
00410
00411
00412
00416
void clearSize ();
00417
00418
00419
00420
00421
00422
00423
00424
00429
bool isPositionAngleExists()
const;
00430
00431
00432
00438 vector<Angle >
getPositionAngle()
const throw(
IllegalAccessException);
00439
00440
00441
00442
00449
void setPositionAngle (vector<Angle > positionAngle);
00450
00451
00452
00453
00457
void clearPositionAngle ();
00458
00459
00460
00461
00462
00463
00464
00465
00466
00467
00472
int getSourceParameterId()
const;
00473
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00492 vector<Frequency >
getFrequency()
const;
00493
00494
00495
00496
00504
void setFrequency (vector<Frequency > frequency);
00505
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515
00516
00517
00522 vector<Frequency >
getFrequencyInterval()
const;
00523
00524
00525
00526
00534
void setFrequencyInterval (vector<Frequency > frequencyInterval);
00535
00536
00537
00538
00539
00540
00541
00542
00543
00544
00545
00546
00547
00552 vector<vector<Flux > >
getFluxErr()
const;
00553
00554
00555
00556
00564
void setFluxErr (vector<vector<Flux > > fluxErr);
00565
00566
00567
00568
00569
00570
00571
00572
00573
00574
00575
00580
bool isSizeErrExists()
const;
00581
00582
00583
00589 vector<vector<Angle > >
getSizeErr()
const throw(
IllegalAccessException);
00590
00591
00592
00593
00600
void setSizeErr (vector<vector<Angle > > sizeErr);
00601
00602
00603
00604
00608
void clearSizeErr ();
00609
00610
00611
00612
00613
00614
00615
00616
00621
bool isPositionAngleErrExists()
const;
00622
00623
00624
00630 vector<Angle >
getPositionAngleErr()
const throw(
IllegalAccessException);
00631
00632
00633
00634
00641
void setPositionAngleErr (vector<Angle > positionAngleErr);
00642
00643
00644
00645
00649
void clearPositionAngleErr ();
00650
00651
00652
00653
00654
00655
00656
00657
00662
bool isDepSourceParameterIdExists()
const;
00663
00664
00665
00671 vector<int >
getDepSourceParameterId()
const throw(
IllegalAccessException);
00672
00673
00674
00675
00682
void setDepSourceParameterId (vector<int > depSourceParameterId);
00683
00684
00685
00686
00690
void clearDepSourceParameterId ();
00691
00692
00693
00695
00697
00698
00699
00700
00701
00702
00703
00704
00709
int getSourceId()
const;
00710
00711
00712
00713
00723
void setSourceId (
int sourceId);
00724
00725
00726
00727
00728
00729
00731
00733
00734
00735
00736
00737
00738
00739
00745 vector <SourceRow *>
getSources();
00746
00747
00748
00749
00750
00751
00752
00753
00758
bool compareNoAutoInc(
int sourceId,
ArrayTimeInterval timeInterval,
int numFreq,
int numStokes,
int numDep, vector<StokesParameterMod::StokesParameter > stokesParameter, vector<vector<Flux > > flux, vector<Frequency > frequency, vector<Frequency > frequencyInterval, vector<vector<Flux > > fluxErr);
00759
00760
00761
00762
00763
bool compareRequiredValue(
int numFreq,
int numStokes,
int numDep, vector<StokesParameterMod::StokesParameter > stokesParameter, vector<vector<Flux > > flux, vector<Frequency > frequency, vector<Frequency > frequencyInterval, vector<vector<Flux > > fluxErr);
00764
00765
00774
bool equalByRequiredValue(
SourceParameterRow* x) ;
00775
00776
private:
00780
SourceParameterTable &table;
00784
bool hasBeenAdded;
00785
00786
00787
void isAdded();
00788
00789
00798
SourceParameterRow (
SourceParameterTable &table);
00799
00817
SourceParameterRow (
SourceParameterTable &table,
SourceParameterRow &row);
00818
00820
00822
00823
00824
00825
00826
00827
00828
ArrayTimeInterval timeInterval;
00829
00830
00831
00832
00833
00834
00835
00836
00837
00838
00839
int numFreq;
00840
00841
00842
00843
00844
00845
00846
00847
00848
00849
00850
int numStokes;
00851
00852
00853
00854
00855
00856
00857
00858
00859
00860
00861
int numDep;
00862
00863
00864
00865
00866
00867
00868
00869
00870
00871
00872 vector<StokesParameterMod::StokesParameter > stokesParameter;
00873
00874
00875
00876
00877
00878
00879
00880
00881
00882
00883 vector<vector<Flux > > flux;
00884
00885
00886
00887
00888
00889
00890
00891
00892
00893
bool sizeExists;
00894
00895
00896 vector<vector<Angle > > size;
00897
00898
00899
00900
00901
00902
00903
00904
00905
00906
bool positionAngleExists;
00907
00908
00909 vector<Angle > positionAngle;
00910
00911
00912
00913
00914
00915
00916
00917
00918
00919
00920
int sourceParameterId;
00921
00922
00923
00924
00934
void setSourceParameterId (
int sourceParameterId);
00935
00936
00937
00938
00939
00940
00941
00942
00943 vector<Frequency > frequency;
00944
00945
00946
00947
00948
00949
00950
00951
00952
00953
00954 vector<Frequency > frequencyInterval;
00955
00956
00957
00958
00959
00960
00961
00962
00963
00964
00965 vector<vector<Flux > > fluxErr;
00966
00967
00968
00969
00970
00971
00972
00973
00974
00975
bool sizeErrExists;
00976
00977
00978 vector<vector<Angle > > sizeErr;
00979
00980
00981
00982
00983
00984
00985
00986
00987
00988
bool positionAngleErrExists;
00989
00990
00991 vector<Angle > positionAngleErr;
00992
00993
00994
00995
00996
00997
00998
00999
01000
01001
bool depSourceParameterIdExists;
01002
01003
01004 vector<int > depSourceParameterId;
01005
01006
01007
01008
01009
01011
01013
01014
01015
01016
01017
01018
01019
int sourceId;
01020
01021
01022
01023
01024
01026
01028
01029
01030
01031
01032
01033
01034
01035
01036 };
01037
01038 }
01039
01040
#endif