#include <problem.h>
Public Member Functions | |
Structors | |
TState () | |
Default consrtuctor. | |
TState (const TState &) | |
Copy constructor: deep copy of values and class states. | |
~TState () throw () | |
Destructor. | |
Access functions for trajectory | |
const char * | GetContext () const |
Returns the character string that dscribes the context at the time the problem state was saved. | |
double | GetTime (unsigned idx) const |
Returns the value of the global time variable for the past value idx . | |
double | GetTimeStep (unsigned idx) const |
Returns the value of the global time step variable for the past value idx . | |
unsigned | GetNumVariables () const |
Returns the number of variables stored in Trajectory. | |
unsigned | GetNumPastValues () const |
Returns the number of past values stored in Trajectory for each variable. | |
value_container & | GetPastValues (unsigned idx) |
Returns container with desired past values corresponding to index idx . | |
const value_container & | GetPastValues (unsigned idx) const |
Returns container with desired past values corresponding to index idx . | |
Main operations | |
void | Save (const std::string &context, const SPARK::TTrajectory &trajectory, const TTopology &topology) |
Loads the problem state at the current time (values and class data). | |
void | Restore (TTrajectory &trajectory, TTopology &topology) const |
Restores the problem state. |
The class defines methods used to save the values of all variables at the current global time. Then an instance of this class can be used to restore the problem state by invoking TProblem::Restore() in order to restart a simulation.
|
Default consrtuctor.
|
|
Copy constructor: deep copy of values and class states.
|
|
Destructor.
|
|
Returns the character string that dscribes the context at the time the problem state was saved.
|
|
Returns the value of the global time variable for the past value
|
|
Returns the value of the global time step variable for the past value
|
|
Returns the number of variables stored in Trajectory.
|
|
Returns the number of past values stored in Trajectory for each variable.
|
|
Returns container with desired past values corresponding to index
|
|
Returns container with desired past values corresponding to index
|
|
Loads the problem state at the current time (values and class data). If necessary, frees previously allocated memory.
|
|
Restores the problem state.
|