#include <History.h>
Inheritance diagram for O_SESSAME::History:
The History class provides a common interface for the group of classes which store previous state information. The user can append new state information, output the current state history, or reset the entire history. If the user appends a time which earlier than the end of the current history, the current history is deleted from that point on, and the new time is appended. The History class also provides the common storage of the time history.
History myHistory; // create a history with an empty collection myHistory.AppendHistory(0); // add 0 seconds to the history myHistory.ResetHistory(); // reset the history to an empty collection myHistory.AppendHistory(10);// add 10 seconds to the history cout << myHistory.GetHistory() << endl; // Get a matrix of the stored times and output
Definition at line 57 of file History.h.
Public Member Functions | |
History () | |
Creates an instance of History. | |
virtual | ~History () |
Default Deconstructor. | |
virtual void | AppendHistory (const double &_appendTime) |
Add a time (in seconds) to the stored history. | |
virtual void | AppendHistory (const ssfTime &_appendTime) |
Add an ssfTime object to the stored history. | |
virtual vector< ssfTime >::difference_type | AppendHistory (const vector< ssfTime > &_appendTime) |
Add a vector of ssfTime objects to the stored history. | |
void | ResetHistory () |
Erases the time history. | |
virtual Matrix | GetHistory () |
Returns a matrix of the time history. | |
virtual void | SetInterpolator (Interpolator *_newInterpolator) |
Returns the nearest stored,lower mesh point to the requested time. Sets the interpolator used for calculating the states in-between stored mesh points. | |
Protected Member Functions | |
vector< ssfTime >::difference_type | GetState (const ssfTime &_requestedTime) |
Returns the nearest stored,lower mesh point to the requested time. | |
Protected Attributes | |
vector< ssfTime > | m_TimeHistory |
internal vector container of the ssfTime objects describing the state history | |
Interpolator * | m_OriginalInterpolator |
internal storage of the original, nominal interpolator to be copied and used for all interpolations | |
vector< Interpolator * > | m_TimeInterpolations |
internal vector of time interpolations |
|
Creates an instance of History.
Definition at line 16 of file History.cpp. References HISTORY_RESERVE_SIZE, m_TimeHistory, m_TimeInterpolations, and ResetHistory(). |
|
Default Deconstructor.
Definition at line 24 of file History.cpp. |
|
Add a vector of ssfTime objects to the stored history. if the beginning of the new time vector is earlier than any of the stored values then the time history will be erased from the overlap point and the new time vector will be appended.
Definition at line 40 of file History.cpp. References m_TimeHistory. |
|
Add an ssfTime object to the stored history. if the new time is earlier than any of the stored values then the time history will be erased from the overlap point and the new value will be appended.
Reimplemented in IteratedExtendedKalmanFilterHistory, KalmanFilterHistory, and SequentialFilterHistory. Definition at line 35 of file History.cpp. References m_TimeHistory. |
|
Add a time (in seconds) to the stored history. if the new time is earlier than any of the stored values then the time history will be erased from the overlap point and the new value will be appended.
Reimplemented in IteratedExtendedKalmanFilterHistory, KalmanFilterHistory, and SequentialFilterHistory. Definition at line 31 of file History.cpp. |
|
Returns a matrix of the time history.
Reimplemented in KalmanFilterHistory, SequentialFilterHistory, and O_SESSAME::OrbitHistory. Definition at line 69 of file History.cpp. References m_TimeHistory, O_SESSAME::Matrix, and O_SESSAME::MatrixIndexBase. |
|
Returns the nearest stored,lower mesh point to the requested time. interpolates using the specified interpolator if necessary.
Reimplemented in O_SESSAME::AttitudeHistory, and O_SESSAME::OrbitHistory. Definition at line 84 of file History.cpp. References m_TimeHistory. |
|
Erases the time history.
Reimplemented in KalmanFilterHistory, SequentialFilterHistory, O_SESSAME::AttitudeHistory, and O_SESSAME::OrbitHistory. Definition at line 62 of file History.cpp. References m_TimeHistory. Referenced by History(). |
|
Returns the nearest stored,lower mesh point to the requested time. Sets the interpolator used for calculating the states in-between stored mesh points.
Definition at line 149 of file History.cpp. References O_SESSAME::Interpolator::Clone(), and m_OriginalInterpolator. Referenced by main(). |
|
internal storage of the original, nominal interpolator to be copied and used for all interpolations
Definition at line 131 of file History.h. Referenced by SetInterpolator(). |
|
internal vector container of the ssfTime objects describing the state history
Definition at line 128 of file History.h. Referenced by AppendHistory(), GetHistory(), GetState(), History(), and ResetHistory(). |
|
internal vector of time interpolations
Definition at line 134 of file History.h. Referenced by History(). |