SST/macro
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
sstmac::native::manager Class Referenceabstract

The owner of a discrete-event network simulation. More...

#include <manager.h>

Inheritance diagram for sstmac::native::manager:
Inheritance graph
Collaboration diagram for sstmac::native::manager:
Collaboration graph

Public Member Functions

 manager ()
 
virtual std::string to_string () const
 
virtual ~manager () throw ()
 Goodbye. More...
 
void init_factory_params (sprockit::sim_parameters *params)
 
virtual timestamp run (timestamp until)=0
 
virtual void stop ()=0
 
virtual void finish ()=0
 
sstmac::hw::interconnect * interconn () const
 
void build_apps (sprockit::sim_parameters *params)
 
void build_app (int appnum, sprockit::sim_parameters *params)
 
- Public Member Functions inherited from sprockit::factory_type
virtual void init_factory_params (sim_parameters *params)
 
virtual void finalize_init ()
 

Static Public Member Functions

static int compute_max_nproc (sprockit::sim_parameters *params)
 
static int compute_max_nproc_for_app (sprockit::sim_parameters *app_params)
 

Protected Attributes

sstmac::sw::app_id next_ppid_
 Next parallel process id. More...
 
std::map< int, sw::app_launch * > app_managers_
 
sstmac::hw::interconnect * interconnect_
 
parallel_runtimert_
 

Detailed Description

The owner of a discrete-event network simulation.

All time progression is handled by this object and messages between nodes are managed here as well.

Definition at line 35 of file manager.h.

Constructor & Destructor Documentation

sstmac::native::manager::manager ( )
virtual sstmac::native::manager::~manager ( )
throw (
)
virtual

Goodbye.

Referenced by to_string().

Member Function Documentation

void sstmac::native::manager::build_app ( int  appnum,
sprockit::sim_parameters *  params 
)

Referenced by interconn().

void sstmac::native::manager::build_apps ( sprockit::sim_parameters *  params)

Referenced by interconn().

static int sstmac::native::manager::compute_max_nproc ( sprockit::sim_parameters *  params)
static

Referenced by interconn().

static int sstmac::native::manager::compute_max_nproc_for_app ( sprockit::sim_parameters *  app_params)
static

Referenced by interconn().

virtual void sstmac::native::manager::finish ( )
pure virtual

Implemented in sstmac::native::macro_manager.

Referenced by to_string().

void sstmac::native::manager::init_factory_params ( sprockit::sim_parameters *  params)

Referenced by to_string().

sstmac::hw::interconnect* sstmac::native::manager::interconn ( ) const
inline

Definition at line 59 of file manager.h.

References build_app(), build_apps(), compute_max_nproc(), compute_max_nproc_for_app(), and interconnect_.

Here is the call graph for this function:

virtual timestamp sstmac::native::manager::run ( timestamp  until)
pure virtual

Implemented in sstmac::native::macro_manager.

Referenced by to_string().

virtual void sstmac::native::manager::stop ( )
pure virtual

Implemented in sstmac::native::macro_manager.

Referenced by to_string().

virtual std::string sstmac::native::manager::to_string ( ) const
inlinevirtual

Definition at line 41 of file manager.h.

References finish(), init_factory_params(), run(), stop(), and ~manager().

Here is the call graph for this function:

Member Data Documentation

std::map<int, sw::app_launch*> sstmac::native::manager::app_managers_
protected

Definition at line 80 of file manager.h.

sstmac::hw::interconnect* sstmac::native::manager::interconnect_
protected

Definition at line 82 of file manager.h.

Referenced by interconn().

sstmac::sw::app_id sstmac::native::manager::next_ppid_
protected

Next parallel process id.

Definition at line 78 of file manager.h.

parallel_runtime* sstmac::native::manager::rt_
protected

Definition at line 83 of file manager.h.


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