NEST
2.6.0,not_revisioned_source_dir@0
|
#include <topologymodule.h>
Classes | |
class | Add_P_PFunction |
class | And_M_MFunction |
class | ConnectLayers_i_i_DFunction |
class | CreateLayer_DFunction |
class | CreateMask_DFunction |
class | CreateParameter_DFunction |
class | Cvdict_MFunction |
class | Displacement_a_iFunction |
class | Distance_a_iFunction |
class | Div_P_PFunction |
class | DumpLayerConnections_os_i_lFunction |
class | DumpLayerNodes_os_iFunction |
class | GetElement_i_iaFunction |
class | GetGlobalChildren_i_M_aFunction |
class | GetPosition_iFunction |
class | GetValue_a_PFunction |
class | Inside_a_MFunction |
class | Mul_P_PFunction |
class | Or_M_MFunction |
class | Sub_M_MFunction |
class | Sub_P_PFunction |
Public Types | |
typedef GenericFactory < AbstractMask > | MaskFactory |
typedef GenericFactory < AbstractMask > ::CreatorFunction | MaskCreatorFunction |
typedef GenericFactory< Parameter > | ParameterFactory |
typedef GenericFactory < Parameter >::CreatorFunction | ParameterCreatorFunction |
Public Member Functions | |
TopologyModule (Network &) | |
~TopologyModule () | |
void | init (SLIInterpreter *) |
Initialize module by registering models with the network. More... | |
const std::string | name (void) const |
Return name of the module. More... | |
const std::string | commandstring (void) const |
Return sli command sequence to be executed for initialisation. 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 Network & | get_network () |
Return a reference to the network managed by the topology module. More... | |
template<class T > | |
static bool | register_mask () |
Register an AbstractMask subclass as a new mask type. More... | |
template<class T > | |
static bool | register_mask (const Name &name) |
Register an AbstractMask subclass as a new mask type with the given name. More... | |
static bool | register_mask (const Name &name, MaskCreatorFunction creator) |
Register a new mask type with the given name, with a supplied function to create mask objects of this type. More... | |
static lockPTRDatum < AbstractMask,&TopologyModule::MaskType > | create_mask (const Token &t) |
Return a Mask object. More... | |
static AbstractMask * | create_mask (const Name &name, const DictionaryDatum &d) |
Create a new Mask object using the mask factory. More... | |
template<class T > | |
static bool | register_parameter (const Name &name) |
Register an Parameter subclass as a new parameter type with the given name. More... | |
static bool | register_parameter (const Name &name, ParameterCreatorFunction creator) |
Register a new parameter type with the given name, with a supplied function to create parameter objects of this type. More... | |
static lockPTRDatum< Parameter,&TopologyModule::ParameterType > | create_parameter (const Token &) |
Return a Parameter object. More... | |
static Parameter * | create_parameter (const Name &name, const DictionaryDatum &d) |
Create a new Parameter object using the parameter factory. More... | |
Static Public Attributes | |
static SLIType | MaskType |
SLI type for masks. More... | |
static SLIType | ParameterType |
SLI type for parameters. More... | |
Static Private Member Functions | |
static MaskFactory & | mask_factory_ () |
Return a reference to the mask factory class. More... | |
static ParameterFactory & | parameter_factory_ () |
Return a reference to the parameter factory class. More... | |
Static Private Attributes | |
static Network * | net_ |
typedef GenericFactory<AbstractMask>::CreatorFunction nest::TopologyModule::MaskCreatorFunction |
typedef GenericFactory<Parameter>::CreatorFunction nest::TopologyModule::ParameterCreatorFunction |
nest::TopologyModule::TopologyModule | ( | Network & | net | ) |
nest::TopologyModule::~TopologyModule | ( | ) |
|
virtual |
Return sli command sequence to be executed for initialisation.
Reimplemented from SLIModule.
Return a Mask object.
t | Either an existing MaskDatum, or a Dictionary containing mask parameters. The dictionary should contain a key with the name of the mask type, with a dictionary of parameters as value, and optionally an anchor. |
References ad, nest::names::anchor, nest::names::column, Token::datum(), numerics::e, getValue< long >(), nest::names::layer, nest::names::mask, nest::names::row, and nest::GridMask< D >::set_anchor().
Referenced by nest::ConnectionCreator::ConnectionCreator(), and nest::TopologyModule::CreateMask_DFunction::execute().
|
inlinestatic |
Create a new Mask object using the mask factory.
name | Mask type to create. |
d | Dictionary with parameters specific for this mask type. |
References nest::GenericFactory< BaseT >::create(), and mask_factory_().
|
static |
Return a Parameter object.
t | Either an existing ParameterDatum, or a DoubleDatum containing a constant value for this parameter, or a Dictionary containing parameters. The dictionary should contain a single key with the name of the parameter type, with a dictionary of parameters as value. |
References Token::datum(), and nest::names::n.
Referenced by nest::ConnectionCreator::ConnectionCreator(), and nest::TopologyModule::CreateParameter_DFunction::execute().
|
static |
Create a new Parameter object using the parameter factory.
name | Parameter type to create. |
d | Dictionary with parameters specific for this parameter type. |
References nest::names::anchor, nest::GenericFactory< BaseT >::create(), nest::names::d, and parameter_factory_().
|
inlinestatic |
Return a reference to the network managed by the topology module.
References assert(), and net_.
Referenced by nest::TopologyModule::GetPosition_iFunction::execute(), nest::TopologyModule::Displacement_a_iFunction::execute(), nest::TopologyModule::Distance_a_iFunction::execute(), nest::TopologyModule::GetGlobalChildren_i_M_aFunction::execute(), nest::TopologyModule::ConnectLayers_i_i_DFunction::execute(), nest::TopologyModule::CreateMask_DFunction::execute(), nest::TopologyModule::CreateParameter_DFunction::execute(), nest::TopologyModule::GetValue_a_PFunction::execute(), and init().
|
virtual |
Initialize module by registering models with the network.
SLIInterpreter* | SLI interpreter, must know modeldict |
Implements SLIModule.
References add_P_Pfunction, and_M_Mfunction, connectlayers_i_i_Dfunction, nest::create_doughnut(), SLIInterpreter::createcommand(), createlayer_Dfunction, createmask_Dfunction, createparameter_Dfunction, cvdict_Mfunction, displacement_a_ifunction, distance_a_ifunction, div_P_Pfunction, dumplayerconnections_os_i_lfunction, dumplayernodes_os_ifunction, get_network(), getelement_i_iafunction, getglobalchildren_i_M_afunction, getposition_ifunction, getvalue_a_Pfunction, inside_a_Mfunction, mul_P_Pfunction, or_M_Mfunction, register_mask(), sub_M_Mfunction, and sub_P_Pfunction.
|
staticprivate |
Return a reference to the mask factory class.
Referenced by create_mask(), and register_mask().
|
virtual |
Return name of the module.
Implements SLIModule.
Referenced by register_mask(), and register_parameter().
|
staticprivate |
Return a reference to the parameter factory class.
Referenced by create_parameter(), and register_parameter().
|
inlinestatic |
Register an AbstractMask subclass as a new mask type.
The name will be found using the function T::get_name()
References mask_factory_(), and nest::GenericFactory< BaseT >::register_subtype().
Referenced by init().
|
inlinestatic |
Register an AbstractMask subclass as a new mask type with the given name.
name | name of the new mask type. |
References mask_factory_(), name(), and nest::GenericFactory< BaseT >::register_subtype().
|
inlinestatic |
Register a new mask type with the given name, with a supplied function to create mask objects of this type.
name | name of the new mask type. |
creator | function creating objects of this type. The function will be called with the parameter dictionary as argument and should return a pointer to a new Mask object. |
References mask_factory_(), and nest::GenericFactory< BaseT >::register_subtype().
|
inlinestatic |
Register an Parameter subclass as a new parameter type with the given name.
name | name of the new parameter type. |
References name(), parameter_factory_(), and nest::GenericFactory< BaseT >::register_subtype().
|
inlinestatic |
Register a new parameter type with the given name, with a supplied function to create parameter objects of this type.
name | name of the new parameter type. |
creator | function creating objects of this type. The function will be called with the parameter dictionary as argument and should return a pointer to a new Parameter object. |
References parameter_factory_(), and nest::GenericFactory< BaseT >::register_subtype().
nest::TopologyModule::Add_P_PFunction nest::TopologyModule::add_P_Pfunction |
Referenced by init().
nest::TopologyModule::And_M_MFunction nest::TopologyModule::and_M_Mfunction |
Referenced by init().
nest::TopologyModule::ConnectLayers_i_i_DFunction nest::TopologyModule::connectlayers_i_i_Dfunction |
Referenced by init().
nest::TopologyModule::CreateLayer_DFunction nest::TopologyModule::createlayer_Dfunction |
Referenced by init().
nest::TopologyModule::CreateMask_DFunction nest::TopologyModule::createmask_Dfunction |
Referenced by init().
nest::TopologyModule::CreateParameter_DFunction nest::TopologyModule::createparameter_Dfunction |
Referenced by init().
nest::TopologyModule::Cvdict_MFunction nest::TopologyModule::cvdict_Mfunction |
Referenced by init().
nest::TopologyModule::Displacement_a_iFunction nest::TopologyModule::displacement_a_ifunction |
Referenced by init().
nest::TopologyModule::Distance_a_iFunction nest::TopologyModule::distance_a_ifunction |
Referenced by init().
nest::TopologyModule::Div_P_PFunction nest::TopologyModule::div_P_Pfunction |
Referenced by init().
nest::TopologyModule::DumpLayerConnections_os_i_lFunction nest::TopologyModule::dumplayerconnections_os_i_lfunction |
Referenced by init().
nest::TopologyModule::DumpLayerNodes_os_iFunction nest::TopologyModule::dumplayernodes_os_ifunction |
Referenced by init().
nest::TopologyModule::GetElement_i_iaFunction nest::TopologyModule::getelement_i_iafunction |
Referenced by init().
nest::TopologyModule::GetGlobalChildren_i_M_aFunction nest::TopologyModule::getglobalchildren_i_M_afunction |
Referenced by init().
nest::TopologyModule::GetPosition_iFunction nest::TopologyModule::getposition_ifunction |
Referenced by init().
nest::TopologyModule::GetValue_a_PFunction nest::TopologyModule::getvalue_a_Pfunction |
Referenced by init().
nest::TopologyModule::Inside_a_MFunction nest::TopologyModule::inside_a_Mfunction |
Referenced by init().
|
static |
SLI type for masks.
Referenced by TopologyModule().
nest::TopologyModule::Mul_P_PFunction nest::TopologyModule::mul_P_Pfunction |
Referenced by init().
|
staticprivate |
net
must be static, so that the execute() members of the SliFunction classes in the module can access the network. Referenced by nest::TopologyModule::CreateLayer_DFunction::execute(), nest::TopologyModule::DumpLayerNodes_os_iFunction::execute(), nest::TopologyModule::DumpLayerConnections_os_i_lFunction::execute(), nest::TopologyModule::GetElement_i_iaFunction::execute(), get_network(), and TopologyModule().
nest::TopologyModule::Or_M_MFunction nest::TopologyModule::or_M_Mfunction |
Referenced by init().
|
static |
SLI type for parameters.
Referenced by TopologyModule().
nest::TopologyModule::Sub_M_MFunction nest::TopologyModule::sub_M_Mfunction |
Referenced by init().
nest::TopologyModule::Sub_P_PFunction nest::TopologyModule::sub_P_Pfunction |
Referenced by init().