#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. |
|
Default Deconstructor.
Definition at line 24 of file History.cpp. |
|
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.
Definition at line 31 of file History.cpp. |
|
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.
Definition at line 35 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. |
|
Erases the time history.
Reimplemented in O_SESSAME::AttitudeHistory, and O_SESSAME::OrbitHistory. Definition at line 62 of file History.cpp. |
|
Returns a matrix of the time history.
Reimplemented in O_SESSAME::OrbitHistory. Definition at line 69 of file History.cpp. |
|
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. |
|
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. |
|
internal vector container of the ssfTime objects describing the state history
|
|
internal storage of the original, nominal interpolator to be copied and used for all interpolations
|
|
internal vector of time interpolations
|