NEST
2.6.0,not_revisioned_source_dir@0
|
SLI interface of the NEST kernel. More...
#include <nestmodule.h>
Public Member Functions | |
NestModule () | |
~NestModule () | |
void | init (SLIInterpreter *) |
Initialise the module. More... | |
const std::string | commandstring (void) const |
Return sli command sequence to be executed for initialisation. More... | |
const std::string | name (void) const |
Return name of the module. More... | |
Public Member Functions inherited from SLIModule | |
virtual | ~SLIModule () |
void | install (std::ostream &, SLIInterpreter *) |
Print installation message via interpreter message command. More... | |
Static Public Member Functions | |
static void | register_network (Network &) |
Set pointer to network. More... | |
static Network & | get_network () |
Return a reference to the network managed by nestmodule. More... | |
static index | get_num_threads () |
Get number of threads. More... | |
Static Public Attributes | |
static SLIType | ConnectionType |
static SLIType | GIDCollectionType |
Static Private Attributes | |
static Network * | net_ = 0 |
Pointer to network. More... | |
SLI interface of the NEST kernel.
This class implements the SLI functions which connect the NEST kernel with the interpreter.
nest::NestModule::~NestModule | ( | ) |
References ConnectionType, SLIType::deletetypename(), and GIDCollectionType.
|
virtual |
Return sli command sequence to be executed for initialisation.
Reimplemented from SLIModule.
|
virtual |
Initialise the module.
When this function is called, most of the interpreter's fascilities are up and running. However, depending on where in the interpreter's bootstrap sequence the module is initialised, not all services may be available.
Implements SLIModule.
References assert(), SLIInterpreter::baselookup(), nest::Network::calibrate_clock(), changesubnet_ifunction, connect_g_g_D_Dfunction, connect_i_i_d_d_lfunction, connect_i_i_D_lfunction, connect_i_i_lfunction, ConnectionType, convergentconnect_ia_i_a_a_lfunction, copymodel_l_l_Dfunction, create_l_ifunction, SLIInterpreter::createcommand(), currentsubnetfunction, cva_cfunction, cvdict_Cfunction, cvgidcollection_i_ifunction, cvgidcollection_iafunction, cvgidcollection_ivfunction, dataconnect_afunction, dataconnect_i_D_sfunction, SLIInterpreter::datatypefunction, divergentconnect_i_ia_a_a_lfunction, nest::Communicator::get_initialized(), getchildren_i_D_bfunction, getconnections_Dfunction, getdefaults_lfunction, getglobalrngfunction, getleaves_i_D_bfunction, getnodes_i_D_b_bfunction, getstatus_afunction, getstatus_Cfunction, getstatus_ifunction, getvprngfunction, GIDCollectionType, memoryinfofunction, mpiabort_ifunction, net_, numprocessesfunction, printnetworkfunction, processornamefunction, rankfunction, rconvergentconnect_ia_i_i_da_da_b_b_lfunction, rconvergentconnect_ia_ia_ia_daa_daa_b_b_lfunction, rdivergentconnect_i_i_ia_da_da_b_b_lfunction, nest::Network::register_conn_builder(), nest::Time::reset_resolution(), resetkernelfunction, resetnetworkfunction, restorenodes_afunction, resumesimulationfunction, setacceptablelatency_l_dfunction, SLIType::setdefaultaction(), setdefaults_l_Dfunction, setfakenumprocesses_ifunction, setmaxbuffered_l_ifunction, setnumrecprocesses_ifunction, setstatus_aafunction, setstatus_CDfunction, setstatus_idfunction, SLIType::settypename(), simulatefunction, size_gfunction, syncprocessesfunction, timecommunication_i_i_bfunction, timecommunicationalltoall_i_ifunction, timecommunicationalltoallv_i_ifunction, and timecommunicationv_i_ifunction.
|
virtual |
Return name of the module.
Implements SLIModule.
|
static |
Set pointer to network.
This function sets the pointer to the network which NestModule shall manage. It must be called once, and before NestModule is constructed.
Network& | Th network to manage |
|
static |
Referenced by init(), and ~NestModule().
|
static |
Referenced by init(), and ~NestModule().
|
staticprivate |
Pointer to network.
net
must be initialized before NestModule is constructed.net
must be static, so that the execute() members of the SliFunction classes in the module can access the network.net
is, however, dynamic in order to avoid the static-initialization problem, i.e., the undefined initialization order of static variables across compilation units. Referenced by get_network(), get_num_threads(), init(), NestModule(), and register_network().