SST::SimulationBase Class Reference

The Factory and TimeLord objects both should only be associated with a simulation object and never created on their own. More...

#include <simulation.h>

Inheritance diagram for SST::SimulationBase:
SST::Simulation

Public Member Functions

FactorygetFactory (void) const
 Return the Factory associated with this Simulation.
TimeLordgetTimeLord (void) const
 Return the TimeLord associated with this Simulation.
StatisticOutputgetStatisticsOutput (void) const
 Return the Statistic Output associated with this Simulation.
StatisticProcessingEnginegetStatisticsProcessingEngine (void) const
 Return the Statistic Processing Engine associated with this Simulation.

Protected Member Functions

 SimulationBase (Config *config)
 Constructor.
TimeConverterminPartToTC (SimTime_t cycles) const
 Get a handle to a TimeConverter.

Protected Attributes

Factoryfactory
 Factory used to generate the simulation components.
TimeLordtimeLord
 TimeLord of the simulation.
StatisticOutputstatisticsOutput
 Statistics Output of the simulation.
StatisticProcessingEnginestatisticsEngine
 Statistics Timing Engine of the simulation.

Friends

class boost::serialization::access

Detailed Description

The Factory and TimeLord objects both should only be associated with a simulation object and never created on their own.

To accomplish this, create a base class of Simluation which is friended by both Factory and TimeLord. The friendship is not inherited by the Simulation class, limiting the exposure of internal information to the 20 line object below and it is impossible to create either a Factory or a timeLord without a simulation object.


Constructor & Destructor Documentation

SST::SimulationBase::SimulationBase ( Config config  )  [protected]

Constructor.

Parameters:
config - Configuration to use for this simulation

References factory, SST::Config::getLibPath(), statisticsEngine, statisticsOutput, SST::Config::timeBase, and timeLord.


Member Function Documentation

TimeConverter * SST::SimulationBase::minPartToTC ( SimTime_t  cycles  )  const [protected]

Get a handle to a TimeConverter.

Parameters:
cycles Frequency which is the base of the TimeConverter

References SST::TimeLord::getTimeConverter(), and timeLord.

Referenced by SST::Simulation::performWireUp().


The documentation for this class was generated from the following files:

Generated on 14 Sep 2015 for SST by  doxygen 1.6.1