Classes | |
class | simulation_parameter |
Class used to specify a simulation parameter. More... | |
Simulation methods | |
typedef simulation_parameter< bool > | TRestartFlag |
Parameter type describing the restart flag. | |
typedef simulation_parameter< double > | TStopTime |
Parameter type describing the stop time. | |
typedef simulation_parameter< double > | TTimeStep |
Parameter type describing the time step. | |
SPARK::TProblem::SimulationFlags | Simulate (SPARK::TProblem *instance, const SPARK::Problem::TRestartFlag &restartFlag, const SPARK::Problem::TStopTime &stopTime, const SPARK::Problem::TTimeStep &initialTimeStep=SPARK::Problem::TTimeStep()) |
Simulates the instance problem until the final time or the stopping time is reached, whichever occurs first. | |
SPARK::TProblem::SimulationFlags | Step (SPARK::TProblem *instance, const SPARK::Problem::TTimeStep &timeStep=SPARK::Problem::TTimeStep()) |
Computes the next step of the instance problem and returns the simulation flag. | |
SPARK::TProblem::SimulationFlags | StaticStep (SPARK::TProblem *instance) |
Computes one static step for the instance problem and returns the simulation flag. | |
Methods used to setup a problem for simulation | |
bool | RegisterStaticInstance (const char *pbName, SPARK::TProblem *instance) |
Registers statically-built problem by address with static repository. | |
bool | Unload (const char *pbName) |
Unloads the problem instance named "pbName" from repository and frees memory. | |
void | WriteInstances (std::ostream &os, const std::string &before) |
Writes out the list of loaded problem instances to the output stream os with leading string before . | |
SPARK::TProblem * | Get (const char *pbName) |
Access method to retrieve a previously loaded problem through its unique name from the problem repository. | |
void | Initialize (SPARK::TProblem *instance, const SPARK::TRuntimeControls &controls) |
Initializes the problem with the specified runtime controls. | |
void | LoadPreferenceSettings (SPARK::TProblem *instance, const SPARK::TPreferenceSettings &preferences) |
Loads the preference settings into the problem. | |
void | Terminate (SPARK::TProblem *instance) |
Terminates the problem. | |
State management methods | |
void | Save (const SPARK::TProblem *instance, SPARK::TProblem::TState &state) |
Saves the state of the problem at the current time. | |
void | Restore (SPARK::TProblem *instance, const SPARK::TProblem::TState &state) |
Restores the problem to the specified state. |
|
Parameter type describing the restart flag.
|
|
Parameter type describing the stop time.
|
|
Parameter type describing the time step.
|
|
Registers statically-built problem by address with static repository.
|
|
Unloads the problem instance named "pbName" from repository and frees memory.
|
|
Writes out the list of loaded problem instances to the output stream
|
|
Access method to retrieve a previously loaded problem through its unique name from the problem repository.
|
|
Initializes the problem with the specified runtime controls. Calls the SPARK::TProblem::Initialize() method.
|
|
Loads the preference settings into the problem. Calls the SPARKK::TProblem::LoadPreferenceSettings() method.
|
|
Terminates the problem. Calls the SPARK::TProblem::Terminate() method.
|
|
Saves the state of the problem at the current time. Calls the SPARK::TProblem::Save() method.
|
|
Restores the problem to the specified state. Calls the SPARK::TProblem::Restore() method.
|
|
Simulates the This function calls the TProblem:Simulate() method after having sent the appropriate requests for the specified simulation parameters. Uses the initial time step if specified. By default there is no initial time step parameter. Starts with a static step if the restart flag is set to true.
|
|
Computes the next step of the This function essentially sends a stop() request to the instance problem and calls the TProblem::Simulate() method. This forces the finite-state machine to stop after the first step. If the finite-state machine is set to perform a static step following a prior restart request, then the next step is a static step. Otherwise, it will perform the next dynamic step with the candidate time step if specified.
|
|
Computes one static step for the This function essentially sends a stop() request to the instance problem and calls the TProblem::Simulate() method. This forces the finite-state machine to stop after the first step.
|