ComputeIURAWeights Class Reference
[GPSTk data structures]

#include <ComputeIURAWeights.hpp>

Inheritance diagram for ComputeIURAWeights:

Inheritance graph
[legend]
Collaboration diagram for ComputeIURAWeights:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class computes satellites weights based on URA Index.

This class is meant to be used with the GNSS data structures objects found in "DataStructures" class.

A typical way to use this class follows:

   RinexObsStream rin("ebre0300.02o");
   RinexNavStream rnavin("brdc0300.02n");
   RinexNavData rNavData;
   GPSEphemerisStore bceStore;
   while (rnavin >> rNavData) bceStore.addEphemeris(rNavData);
   bceStore.SearchPast();  // This is the default

      // Declare a GDS object
   gnssRinex gRin;

      // Create a 'ComputeIURAWeights' object
   ComputeIURAWeights iuraW(bceStore);

   while(rin >> gRin)
   {
      gRin >> iuraW;
   }

The "ComputeIURAWeights" object will visit every satellite in the GNSS data structure that is "gRin" and will try to compute its weight based on the corresponding IURA. For precise ephemeris, a fixed value of IURA = 0.1 m will be set, returning a weight of 100.

When used with the ">>" operator, this class returns the same incoming data structure with the weights inserted along their corresponding satellites. Be warned that if it is not possible to compute the weight for a given satellite, it will be summarily deleted from the data structure.

See also:
ComputeMOPSWeights.hpp.

Definition at line 90 of file ComputeIURAWeights.hpp.

Public Member Functions

 ComputeIURAWeights ()
 Default constructor.
 ComputeIURAWeights (GPSEphemerisStore &bcephem)
 Common constructor.
 ComputeIURAWeights (TabularEphemerisStore &tabephem)
 Common constructor.
 ComputeIURAWeights (XvtStore< SatID > &ephem)
 Common constructor.
virtual satTypeValueMapProcess (const DayTime &time, satTypeValueMap &gData) throw (ProcessingException)
 Returns a satTypeValueMap object, adding the new data generated when calling this object.
virtual gnssSatTypeValueProcess (gnssSatTypeValue &gData) throw (ProcessingException)
 Returns a gnnsSatTypeValue object, adding the new data generated when calling this object.
virtual gnssRinexProcess (gnssRinex &gData) throw (ProcessingException)
 Returns a gnnsRinex object, adding the new data generated when calling this object.
virtual ComputeIURAWeightssetDefaultEphemeris (XvtStore< SatID > &ephem)
 Method to set the default ephemeris to be used with GNSS data structures.
virtual ComputeIURAWeightssetDefaultEphemeris (GPSEphemerisStore &ephem)
 Method to set the default ephemeris to be used with GNSS data structures.
virtual ComputeIURAWeightssetDefaultEphemeris (TabularEphemerisStore &ephem)
 Method to set the default ephemeris to be used with GNSS data structures.
virtual int getIndex (void) const
 Returns an index identifying this object.
virtual std::string getClassName (void) const
 Returns a string identifying this object.
virtual ~ComputeIURAWeights ()
 Destructor.

Protected Member Functions

virtual double getWeight (const SatID &sat, const DayTime &time, const TabularEphemerisStore *preciseEph) throw (InvalidWeights)
 Method to really get the weight of a given satellite.
virtual double getWeight (const SatID &sat, const DayTime &time, const GPSEphemerisStore *bcEph) throw (InvalidWeights)
 Method to really get the weight of a given satellite.

Protected Attributes

GPSEphemerisStorepBCEphemeris
 Pointer to default broadcast ephemeris to be used.
TabularEphemerisStorepTabEphemeris
 Pointer to default precise ephemeris to be used.


Constructor & Destructor Documentation

ComputeIURAWeights  )  [inline]
 

Default constructor.

Definition at line 96 of file ComputeIURAWeights.hpp.

ComputeIURAWeights GPSEphemerisStore bcephem  )  [inline]
 

Common constructor.

Parameters:
bcephem GPSEphemerisStore object holding the ephemeris.

Definition at line 104 of file ComputeIURAWeights.hpp.

ComputeIURAWeights TabularEphemerisStore tabephem  )  [inline]
 

Common constructor.

Parameters:
tabephem TabularEphemerisStore object holding the ephemeris.

Definition at line 114 of file ComputeIURAWeights.hpp.

ComputeIURAWeights XvtStore< SatID > &  ephem  )  [inline]
 

Common constructor.

Parameters:
ephem XvtStore<SatID> object holding the ephemeris.

Definition at line 123 of file ComputeIURAWeights.hpp.

virtual ~ComputeIURAWeights  )  [inline, virtual]
 

Destructor.

Definition at line 193 of file ComputeIURAWeights.hpp.


Member Function Documentation

std::string getClassName void   )  const [virtual]
 

Returns a string identifying this object.

Implements ProcessingClass.

Reimplemented in ComputeMOPSWeights.

Definition at line 48 of file ComputeIURAWeights.cpp.

int getIndex void   )  const [virtual]
 

Returns an index identifying this object.

Implements ProcessingClass.

Reimplemented in ComputeMOPSWeights.

Definition at line 43 of file ComputeIURAWeights.cpp.

double getWeight const SatID sat,
const DayTime time,
const GPSEphemerisStore bcEph
throw (InvalidWeights) [protected, virtual]
 

Method to really get the weight of a given satellite.

Parameters:
sat Satellite
time Epoch
bcEph Broadcast EphemerisStore object to be used

Definition at line 196 of file ComputeIURAWeights.cpp.

References EngEphemeris::getAccFlag(), GPSTK_THROW, and gpstk::ura2nominalAccuracy().

double getWeight const SatID sat,
const DayTime time,
const TabularEphemerisStore preciseEph
throw (InvalidWeights) [protected, virtual]
 

Method to really get the weight of a given satellite.

Parameters:
sat Satellite
time Epoch
preciseEph Precise ephemerisStore object to be used

Definition at line 165 of file ComputeIURAWeights.cpp.

References TabularEphemerisStore::getXvt(), and GPSTK_THROW.

virtual gnssRinex& Process gnssRinex gData  )  throw (ProcessingException) [inline, virtual]
 

Returns a gnnsRinex object, adding the new data generated when calling this object.

Parameters:
gData Data object holding the data.

Implements ProcessingClass.

Reimplemented in ComputeMOPSWeights.

Definition at line 152 of file ComputeIURAWeights.hpp.

virtual gnssSatTypeValue& Process gnssSatTypeValue gData  )  throw (ProcessingException) [inline, virtual]
 

Returns a gnnsSatTypeValue object, adding the new data generated when calling this object.

Parameters:
gData Data object holding the data.

Implements ProcessingClass.

Reimplemented in ComputeMOPSWeights.

Definition at line 142 of file ComputeIURAWeights.hpp.

satTypeValueMap & Process const DayTime time,
satTypeValueMap gData
throw (ProcessingException) [virtual]
 

Returns a satTypeValueMap object, adding the new data generated when calling this object.

Parameters:
gData Data object holding the data.

Reimplemented in ComputeMOPSWeights.

Definition at line 58 of file ComputeIURAWeights.cpp.

References GPSTK_THROW, and gpstk::SatIDSet.

virtual ComputeIURAWeights& setDefaultEphemeris TabularEphemerisStore ephem  )  [inline, virtual]
 

Method to set the default ephemeris to be used with GNSS data structures.

Parameters:
ephem TabularEphemerisStore object to be used

Reimplemented in ComputeMOPSWeights.

Definition at line 179 of file ComputeIURAWeights.hpp.

virtual ComputeIURAWeights& setDefaultEphemeris GPSEphemerisStore ephem  )  [inline, virtual]
 

Method to set the default ephemeris to be used with GNSS data structures.

Parameters:
ephem GPSEphemerisStore object to be used

Reimplemented in ComputeMOPSWeights.

Definition at line 170 of file ComputeIURAWeights.hpp.

ComputeIURAWeights & setDefaultEphemeris XvtStore< SatID > &  ephem  )  [virtual]
 

Method to set the default ephemeris to be used with GNSS data structures.

Parameters:
ephem EphemerisStore object to be used

Reimplemented in ComputeMOPSWeights.

Definition at line 137 of file ComputeIURAWeights.cpp.

References ComputeIURAWeights::pBCEphemeris, and ComputeIURAWeights::pTabEphemeris.


Member Data Documentation

GPSEphemerisStore* pBCEphemeris [protected]
 

Pointer to default broadcast ephemeris to be used.

Definition at line 200 of file ComputeIURAWeights.hpp.

Referenced by ComputeIURAWeights::setDefaultEphemeris().

TabularEphemerisStore* pTabEphemeris [protected]
 

Pointer to default precise ephemeris to be used.

Definition at line 204 of file ComputeIURAWeights.hpp.

Referenced by ComputeIURAWeights::setDefaultEphemeris().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 03:31:27 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1