Data Structures | Public Member Functions | Friends

Routermodel Class Reference

Inheritance diagram for Routermodel:
SST::IntrospectedComponent SST::Component

Data Structures

struct  port_t

Public Member Functions

 Routermodel (ComponentId_t id, Params_t &params)
int Setup ()
 Called after all components have been constructed, but before simulation time has begun.
int Finish ()
 Called after simulation completes, but before objects are destroyed.
uint64_t getIntData (int dataID, int index=0)
 Return the value of the integer data indicated by "dataID" and "index" (if the data structure is a table).
double getDoubleData (int dataID, int index=0)
 Return the value of the double data indicated by "dataID" and "index" (if the data structure is a table).

Friends

class boost::serialization::access
template<class Archive >
void save_construct_data (Archive &ar, const Routermodel *t, const unsigned int file_version)
template<class Archive >
void load_construct_data (Archive &ar, Routermodel *t, const unsigned int file_version)

Member Function Documentation

int Routermodel::Finish (  )  [inline, virtual]

Called after simulation completes, but before objects are destroyed.

A good place to print out statistics.

Reimplemented from SST::Component.

double Routermodel::getDoubleData ( int  dataID,
int  index = 0 
) [inline, virtual]

Return the value of the double data indicated by "dataID" and "index" (if the data structure is a table).

Each component type needs to implement its own getDoubleData. The function is usually called by introspector pull mechanism.

Parameters:
dataID ID of the integer data
index of the table (if the data structure is a table); default is set to 0

Reimplemented from SST::IntrospectedComponent.

uint64_t Routermodel::getIntData ( int  dataID,
int  index = 0 
) [inline, virtual]

Return the value of the integer data indicated by "dataID" and "index" (if the data structure is a table).

Each component type needs to implement its own getIntData. The function is usually called by introspector pull mechanism.

Parameters:
dataID ID of the integer data
index of the table (if the data structure is a table); default is set to 0

Reimplemented from SST::IntrospectedComponent.

int Routermodel::Setup (  )  [inline, virtual]

Called after all components have been constructed, but before simulation time has begun.

Reimplemented from SST::Component.


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