General Purpose Geodetic Library
SgBreakModel Class Reference

#include <SgBreakModel.h>

Inheritance diagram for SgBreakModel:
QList

Public Member Functions

 SgBreakModel ()
 
 ~SgBreakModel ()
 
SgBreakModeloperator= (const SgBreakModel &m)
 
const SgMJDgetT0 () const
 
void setT0 (const SgMJD &t)
 
double value (const SgMJD &t) const
 
double rate (const SgMJD &t) const
 
bool addBreak (const SgMJD &t, double a0=0.0, double a1=0.0, double a2=0.0, bool isDynamic=false)
 
bool addBreak (SgParameterBreak *aBreak)
 
bool delBreak (const SgMJD &t)
 
bool delBreak (int n)
 
void resetAllEditings ()
 
void createParameters (const QString &prefix)
 
void releaseParameters ()
 
void propagatePartials (QList< SgParameter * > &parameters, const SgMJD &t, double tau, double sign)
 
void propagatePartials4rates (QList< SgParameter * > &parameters, const SgMJD &t, double tau, double sign)
 
void sortEvents ()
 
bool saveIntermediateResults (QDataStream &) const
 
bool loadIntermediateResults (QDataStream &)
 

Static Public Member Functions

static const QString className ()
 

Private Attributes

SgMJD t0_
 

Detailed Description

====================================================================================================

Definition at line 226 of file SgBreakModel.h.

Constructor & Destructor Documentation

◆ SgBreakModel()

SgBreakModel::SgBreakModel ( )
inline

A constructor. Creates an object.

Definition at line 509 of file SgBreakModel.h.

References t0_, and tZero.

◆ ~SgBreakModel()

SgBreakModel::~SgBreakModel ( )
inline

A destructor. Frees allocated memory.

Definition at line 518 of file SgBreakModel.h.

Member Function Documentation

◆ addBreak() [1/2]

bool SgBreakModel::addBreak ( const SgMJD t,
double  a0 = 0.0,
double  a1 = 0.0,
double  a2 = 0.0,
bool  isDynamic = false 
)

Adds a break to the model. Returns true in success (or false, if the epoch already exists).

Parameters
t– epoch of the break;
a0– shift;
a1– trend;
a2– acceleration;

Definition at line 377 of file SgBreakModel.cpp.

Referenced by SgGuiVlbiStnInfoEditor::addNewClockBreak(), SgVlbiSession::correctClockBreak(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initSession(), and loadIntermediateResults().

◆ addBreak() [2/2]

bool SgBreakModel::addBreak ( SgParameterBreak aBreak)

Adds a break to the model. Returns true in success (or false, if the epoch already exists). WARNING: the model will b eresponsible for the pointer, do not delete it after this call.

Parameters
aBreak– new break;

Definition at line 391 of file SgBreakModel.cpp.

◆ className()

const QString SgBreakModel::className ( )
static

Returns name of the class (for debug output).

Definition at line 324 of file SgBreakModel.cpp.

Referenced by loadIntermediateResults(), and saveIntermediateResults().

◆ createParameters()

void SgBreakModel::createParameters ( const QString &  prefix)

Allocates necessary memory for estimated parameters.

Definition at line 453 of file SgBreakModel.cpp.

Referenced by SgVlbiStationInfo::createParameters().

◆ delBreak() [1/2]

bool SgBreakModel::delBreak ( const SgMJD t)

Deletes a break at the specific epoch.

Parameters
t– the epoch;

Definition at line 405 of file SgBreakModel.cpp.

References DAY2SEC.

Referenced by SgVlbiSession::check4ClockBreaksAtSBD(), and SgGuiVlbiStnInfoEditor::deleteClockBreakRecord().

◆ delBreak() [2/2]

bool SgBreakModel::delBreak ( int  n)

Deletes a break under the index #n (counting from zero).

Parameters
n– the index;

Definition at line 432 of file SgBreakModel.cpp.

◆ getT0()

const SgMJD & SgBreakModel::getT0 ( ) const
inline

Returns a value of zero epoch.

Definition at line 532 of file SgBreakModel.h.

References t0_.

Referenced by SgGuiVlbiStnClockBreakEditor::SgGuiVlbiStnClockBreakEditor(), and operator=().

◆ loadIntermediateResults()

bool SgBreakModel::loadIntermediateResults ( QDataStream s)

◆ operator=()

SgBreakModel & SgBreakModel::operator= ( const SgBreakModel m)

An assignment operator.

Definition at line 332 of file SgBreakModel.cpp.

References getT0(), and setT0().

◆ propagatePartials()

void SgBreakModel::propagatePartials ( QList< SgParameter * > &  parameters,
const SgMJD t,
double  tau,
double  sign 
)

Fills partials for the parameters.

Definition at line 471 of file SgBreakModel.cpp.

Referenced by SgVlbiObservation::fillPartials4delay().

◆ propagatePartials4rates()

void SgBreakModel::propagatePartials4rates ( QList< SgParameter * > &  parameters,
const SgMJD t,
double  tau,
double  sign 
)

Definition at line 481 of file SgBreakModel.cpp.

Referenced by SgVlbiObservation::fillPartials4rate().

◆ rate()

double SgBreakModel::rate ( const SgMJD t) const

◆ releaseParameters()

void SgBreakModel::releaseParameters ( )

Frees previously allocated memory for estimated parameters.

Definition at line 462 of file SgBreakModel.cpp.

Referenced by SgVlbiStationInfo::releaseParameters().

◆ resetAllEditings()

void SgBreakModel::resetAllEditings ( )
inline

Definition at line 548 of file SgBreakModel.h.

Referenced by SgVlbiStationInfo::resetAllEditings().

◆ saveIntermediateResults()

bool SgBreakModel::saveIntermediateResults ( QDataStream s) const

◆ setT0()

void SgBreakModel::setT0 ( const SgMJD t)
inline

Sets up the zero epoch.

Parameters
t– new zero epoch;

Definition at line 540 of file SgBreakModel.h.

References t0_.

Referenced by SgGuiVlbiStnInfoEditor::SgGuiVlbiStnInfoEditor(), and operator=().

◆ sortEvents()

void SgBreakModel::sortEvents ( )

◆ value()

Member Data Documentation

◆ t0_

SgMJD SgBreakModel::t0_
private

Definition at line 320 of file SgBreakModel.h.

Referenced by SgBreakModel(), getT0(), rate(), setT0(), and value().


The documentation for this class was generated from the following files: