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

Last change on this file since 9089 was 8993, checked in by stuerze, 4 years ago

minor changes in PPP

  • 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.4 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"
[8956]9#include "pppRefSat.h"
[7237]10
11namespace BNC_PPP {
12
13class t_pppSatObs;
14
15class t_pppParam {
16 public:
[8993]17 enum e_type {crdX, crdY, crdZ, clkR, amb, offGG, offGB, trp, ion, cBias1, cBias2, pBias1, pBias2};
[7237]18
19 t_pppParam(e_type type, const t_prn& prn, t_lc::type tLC,
20 const std::vector<t_pppSatObs*>* obsVector = 0);
21
22 ~t_pppParam();
[8905]23
[7237]24 e_type type() const {return _type;}
25 double x0() const {return _x0;}
[8956]26 double partial(const bncTime& epoTime, const t_pppSatObs* obs,
27 const t_lc::type& tLC, const t_prn refPrn) const;
[7237]28 bool epoSpec() const {return _epoSpec;}
29 bool isEqual(const t_pppParam* par2) const {
30 return (_type == par2->_type && _prn == par2->_prn && _tLC == par2->_tLC);
31 }
32 void setIndex(int indexNew) {
33 _indexOld = _indexNew;
34 _indexNew = indexNew;
35 }
36 int indexOld() const {return _indexOld;}
37 int indexNew() const {return _indexNew;}
38 double sigma0() const {return _sigma0;}
39 double noise() const {return _noise;}
40 t_lc::type tLC() const {return _tLC;}
41 t_prn prn() const {return _prn;}
42 std::string toString() const;
43
44 const bncTime& lastObsTime() const {return _lastObsTime;}
45 void setLastObsTime(const bncTime& epoTime) {_lastObsTime = epoTime;}
46 const bncTime& firstObsTime() const {return _firstObsTime;}
47 void setFirstObsTime(const bncTime& epoTime) {_firstObsTime = epoTime;}
48
49 bool ambResetCandidate() const {return _ambInfo && _ambInfo->_resetCandidate;}
50 void setAmbResetCandidate() {if (_ambInfo) _ambInfo->_resetCandidate = true;}
51 double ambEleSat() const {return _ambInfo ? _ambInfo->_eleSat : 0.0;}
52 void setAmbEleSat(double eleSat) {if (_ambInfo) _ambInfo->_eleSat = eleSat;}
53 unsigned ambNumEpo() const {return _ambInfo ? _ambInfo->_numEpo : 0;}
54 void stepAmbNumEpo() {if (_ambInfo) _ambInfo->_numEpo += 1;}
55
56 static bool sortFunction(const t_pppParam* p1, const t_pppParam* p2) {
57 if (p1->_type != p2->_type) {
58 return p1->_type < p2->_type;
59 }
60 else if (p1->_tLC != p2->_tLC) {
61 return p1->_tLC < p2->_tLC;
62 }
63 else if (p1->_prn != p2->_prn) {
64 return p1->_prn < p2->_prn;
65 }
66 return false;
67 }
68
69 private:
70 class t_ambInfo {
71 public:
72 t_ambInfo() {
73 _resetCandidate = false;
74 _eleSat = 0.0;
75 _numEpo = 0;
76 }
77 ~t_ambInfo() {}
78 bool _resetCandidate;
79 double _eleSat;
80 unsigned _numEpo;
81 };
[8905]82 e_type _type;
83 t_prn _prn;
84 t_lc::type _tLC;
85 double _x0;
86 bool _epoSpec;
87 int _indexOld;
88 int _indexNew;
89 double _sigma0;
90 double _noise;
91 t_ambInfo* _ambInfo;
92 bncTime _lastObsTime;
93 bncTime _firstObsTime;
[7237]94};
95
96class t_pppParlist {
97 public:
98 t_pppParlist();
99 ~t_pppParlist();
100
[8956]101 t_irc set(const bncTime& epoTime, const std::vector<t_pppSatObs*>& obsVector,
102 const QMap<char, t_pppRefSat*>& refSatMap);
[7237]103 unsigned nPar() const {return _params.size();}
104 const std::vector<t_pppParam*>& params() const {return _params;}
[8905]105 std::vector<t_pppParam*>& params() {return _params;}
106 void printResult(const bncTime& epoTime, const SymmetricMatrix& QQ,
[7237]107 const ColumnVector& xx) const;
[8905]108
[7237]109 private:
110 std::vector<t_pppParam*> _params;
111};
112
113}
114
115#endif
Note: See TracBrowser for help on using the repository browser.