Main control class for a SST Simulation.
More...
#include <simulation.h>
Main control class for a SST Simulation.
Provides base features for managing the simulation
Type of Run Modes.
Enumerator |
---|
UNKNOWN |
Unknown mode - Invalid for running
|
INIT |
Initialize-only. Useful for debugging initialization and graph generation
|
RUN |
Run-only. Useful when restoring from a checkpoint (not currently supported)
|
BOTH |
Default. Both initialize and Run the simulation
|
virtual double SST::Simulation::getCompletePhaseElapsedRealTime |
( |
| ) |
const |
|
pure virtual |
Get the amount of real-time spent executing the complete phase of the simulation.
- Returns
- real-time in seconds spent executing the complete phase
Implemented in SST::Simulation_impl.
virtual double SST::Simulation::getInitPhaseElapsedRealTime |
( |
| ) |
const |
|
pure virtual |
Get the amount of real-time spent executing the init phase of the simulation.
- Returns
- real-time in seconds spent executing the init phase
Implemented in SST::Simulation_impl.
virtual std::string& SST::Simulation::getOutputDirectory |
( |
| ) |
|
|
pure virtual |
Returns the output directory of the simulation.
- Returns
- Directory in which simulation outputs are placed
Implemented in SST::Simulation_impl.
virtual double SST::Simulation::getRunPhaseElapsedRealTime |
( |
| ) |
const |
|
pure virtual |
Get the amount of real-time spent executing the run phase of the simulation.
- Returns
- real-time in seconds spent executing the run phase
Implemented in SST::Simulation_impl.
Return a pointer to the singleton instance of the Simulation.
Simulation functions.
Static functions
virtual Mode_t SST::Simulation::getSimulationMode |
( |
| ) |
const |
|
pure virtual |
virtual void SST::Simulation::printStatus |
( |
bool |
fullStatus | ) |
|
|
pure virtual |
Causes the current status of the simulation to be printed to stderr.
- Parameters
-
Implemented in SST::Simulation_impl.
virtual void SST::Simulation::requireEvent |
( |
const std::string & |
name | ) |
|
|
pure virtual |
Signifies that an event type is required for this simulation Causes the Factory to verify that the required event type can be found.
- Parameters
-
name | fully qualified libraryName.EventName |
Implemented in SST::Simulation_impl.
virtual void SST::Simulation::requireLibrary |
( |
const std::string & |
name | ) |
|
|
pure virtual |
Signifies that a library is required for this simulation.
- Parameters
-
Implemented in SST::Simulation_impl.
The documentation for this class was generated from the following files: