source: ntrip/trunk/BNC/src/PPP/pppParlist.h@ 10166

Last change on this file since 10166 was 10034, checked in by stuerze, 17 months ago
  • Property svn:keywords set to Author Date Id Rev URL;svn:eol-style=native
  • Property svn:mime-type set to text/plain
File size: 3.6 KB
RevLine 
[7237]1#ifndef PARLIST_H
2#define PARLIST_H
3
4#include <vector>
5#include <string>
6#include "pppInclude.h"
7#include "t_prn.h"
8#include "bnctime.h"
9
10namespace BNC_PPP {
11
12class t_pppSatObs;
13
14class t_pppParam {
15 public:
[10034]16 enum e_type {crdX, crdY, crdZ, clkR, offGlo, offGal, offBds, trp, ion, amb,
[9561]17 cBiasG1, cBiasR1, cBiasE1, cBiasC1, pBiasG1, pBiasR1, pBiasE1, pBiasC1,
18 cBiasG2, cBiasR2, cBiasE2, cBiasC2, pBiasG2, pBiasR2, pBiasE2, pBiasC2};
[7237]19
[9386]20 t_pppParam(e_type type, const t_prn& prn, t_lc::type tLC, const std::vector<t_pppSatObs*>* obsVector = 0);
[7237]21 ~t_pppParam();
[8905]22
[7237]23 e_type type() const {return _type;}
24 double x0() const {return _x0;}
[10034]25 double partial(const bncTime& epoTime, const t_pppSatObs* obs,
26 const t_lc::type& tLC) const;
[7237]27 bool epoSpec() const {return _epoSpec;}
28 bool isEqual(const t_pppParam* par2) const {
29 return (_type == par2->_type && _prn == par2->_prn && _tLC == par2->_tLC);
30 }
31 void setIndex(int indexNew) {
32 _indexOld = _indexNew;
33 _indexNew = indexNew;
34 }
[9386]35 void resetIndex() {
36 _indexOld = -1;
37 _indexNew = -1;
38 }
[7237]39 int indexOld() const {return _indexOld;}
40 int indexNew() const {return _indexNew;}
41 double sigma0() const {return _sigma0;}
42 double noise() const {return _noise;}
43 t_lc::type tLC() const {return _tLC;}
44 t_prn prn() const {return _prn;}
45 std::string toString() const;
46
47 const bncTime& lastObsTime() const {return _lastObsTime;}
48 void setLastObsTime(const bncTime& epoTime) {_lastObsTime = epoTime;}
49 const bncTime& firstObsTime() const {return _firstObsTime;}
50 void setFirstObsTime(const bncTime& epoTime) {_firstObsTime = epoTime;}
51
52 bool ambResetCandidate() const {return _ambInfo && _ambInfo->_resetCandidate;}
53 void setAmbResetCandidate() {if (_ambInfo) _ambInfo->_resetCandidate = true;}
54 double ambEleSat() const {return _ambInfo ? _ambInfo->_eleSat : 0.0;}
55 void setAmbEleSat(double eleSat) {if (_ambInfo) _ambInfo->_eleSat = eleSat;}
56 unsigned ambNumEpo() const {return _ambInfo ? _ambInfo->_numEpo : 0;}
57 void stepAmbNumEpo() {if (_ambInfo) _ambInfo->_numEpo += 1;}
58
59 static bool sortFunction(const t_pppParam* p1, const t_pppParam* p2) {
60 if (p1->_type != p2->_type) {
61 return p1->_type < p2->_type;
62 }
63 else if (p1->_tLC != p2->_tLC) {
64 return p1->_tLC < p2->_tLC;
65 }
66 else if (p1->_prn != p2->_prn) {
67 return p1->_prn < p2->_prn;
68 }
69 return false;
70 }
[9525]71
[7237]72 private:
73 class t_ambInfo {
74 public:
75 t_ambInfo() {
76 _resetCandidate = false;
77 _eleSat = 0.0;
78 _numEpo = 0;
79 }
80 ~t_ambInfo() {}
81 bool _resetCandidate;
82 double _eleSat;
83 unsigned _numEpo;
84 };
[8905]85 e_type _type;
86 t_prn _prn;
87 t_lc::type _tLC;
88 double _x0;
89 bool _epoSpec;
90 int _indexOld;
91 int _indexNew;
92 double _sigma0;
93 double _noise;
94 t_ambInfo* _ambInfo;
95 bncTime _lastObsTime;
96 bncTime _firstObsTime;
[7237]97};
98
99class t_pppParlist {
100 public:
101 t_pppParlist();
102 ~t_pppParlist();
[10034]103 t_irc set(const bncTime& epoTime, const std::vector<t_pppSatObs*>& obsVector);
[7237]104 unsigned nPar() const {return _params.size();}
105 const std::vector<t_pppParam*>& params() const {return _params;}
[10034]106 std::vector<t_pppParam*>& params() {return _params;}
[9504]107 const QList<char>& usedSystems() const {return _usedSystems;}
[8905]108 void printResult(const bncTime& epoTime, const SymmetricMatrix& QQ,
[7237]109 const ColumnVector& xx) const;
[9527]110 void printParams(const bncTime& epoTime);
[8905]111
[7237]112 private:
113 std::vector<t_pppParam*> _params;
[9419]114 QList<char> _usedSystems;
[7237]115};
116
117}
118
119#endif
Note: See TracBrowser for help on using the repository browser.