SST 12.1.0
Structural Simulation Toolkit
|
Main control class for a SST Simulation. More...
#include <simulation.h>
Public Types | |
enum | Mode_t { UNKNOWN , INIT , RUN , BOTH } |
Type of Run Modes. More... | |
Public Member Functions | |
virtual Mode_t | getSimulationMode () const =0 |
Get the run mode of the simulation (e.g. More... | |
virtual SimTime_t | getCurrentSimCycle () const =0 |
Return the current simulation time as a cycle count. More... | |
virtual SimTime_t | getEndSimCycle () const =0 |
Return the end simulation time as a cycle count. More... | |
virtual int | getCurrentPriority () const =0 |
Return the current priority. More... | |
virtual UnitAlgebra | getElapsedSimTime () const =0 |
Return the elapsed simulation time as a time. More... | |
virtual UnitAlgebra | getEndSimTime () const =0 |
Return the end simulation time as a time. More... | |
virtual UnitAlgebra | getFinalSimTime () const =0 |
Return the end simulation time as a time. More... | |
virtual RankInfo | getRank () const =0 |
Get this instance's parallel rank. More... | |
virtual RankInfo | getNumRanks () const =0 |
Get the number of parallel ranks in the simulation. More... | |
virtual std::string & | getOutputDirectory ()=0 |
Returns the output directory of the simulation. More... | |
virtual void | requireEvent (const std::string &name)=0 |
Signifies that an event type is required for this simulation Causes the Factory to verify that the required event type can be found. More... | |
virtual void | requireLibrary (const std::string &name)=0 |
Signifies that a library is required for this simulation. More... | |
virtual void | printStatus (bool fullStatus)=0 |
Causes the current status of the simulation to be printed to stderr. More... | |
virtual double | getRunPhaseElapsedRealTime () const =0 |
Get the amount of real-time spent executing the run phase of the simulation. More... | |
virtual double | getInitPhaseElapsedRealTime () const =0 |
Get the amount of real-time spent executing the init phase of the simulation. More... | |
virtual double | getCompletePhaseElapsedRealTime () const =0 |
Get the amount of real-time spent executing the complete phase of the simulation. More... | |
Static Public Member Functions | |
static Simulation * | getSimulation () |
Return a pointer to the singleton instance of the Simulation. More... | |
static TimeLord * | getTimeLord (void) |
Return the TimeLord associated with this Simulation. | |
static Output & | getSimulationOutput () |
Return the base simulation Output class instance. | |
Protected Member Functions | |
Simulation (Simulation const &) | |
void | operator= (Simulation const &) |
Main control class for a SST Simulation.
Provides base features for managing the simulation
|
pure virtual |
Get the amount of real-time spent executing the complete phase of the simulation.
Implemented in SST::Simulation_impl.
|
pure virtual |
Return the current priority.
Implemented in SST::Simulation_impl.
|
pure virtual |
Return the current simulation time as a cycle count.
Implemented in SST::Simulation_impl.
Referenced by SST::Link::recv().
|
pure virtual |
Return the elapsed simulation time as a time.
Implemented in SST::Simulation_impl.
|
pure virtual |
Return the end simulation time as a cycle count.
Implemented in SST::Simulation_impl.
|
pure virtual |
Return the end simulation time as a time.
Implemented in SST::Simulation_impl.
|
pure virtual |
Return the end simulation time as a time.
Implemented in SST::Simulation_impl.
|
pure virtual |
Get the amount of real-time spent executing the init phase of the simulation.
Implemented in SST::Simulation_impl.
|
pure virtual |
Get the number of parallel ranks in the simulation.
Implemented in SST::Simulation_impl.
|
pure virtual |
Returns the output directory of the simulation.
Implemented in SST::Simulation_impl.
|
pure virtual |
Get this instance's parallel rank.
Implemented in SST::Simulation_impl.
Referenced by SST::Component::primaryComponentDoNotEndSim(), and SST::Component::primaryComponentOKToEndSim().
|
pure virtual |
Get the amount of real-time spent executing the run phase of the simulation.
Implemented in SST::Simulation_impl.
|
static |
Return a pointer to the singleton instance of the Simulation.
Simulation functions.
Static functions
|
pure virtual |
|
pure virtual |
Causes the current status of the simulation to be printed to stderr.
fullStatus | - if true, call printStatus() on all components as well as print the base Simulation's status |
Implemented in SST::Simulation_impl.
|
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.
name | fully qualified libraryName.EventName |
Implemented in SST::Simulation_impl.
|
pure virtual |
Signifies that a library is required for this simulation.
name | Name of the library |
Implemented in SST::Simulation_impl.