The Model class is a definition of a model that contains a network, input and output channels, a monitor and a backend.
More...
#include <knp/framework/model.h>
The Model class is a definition of a model that contains a network, input and output channels, a monitor and a backend.
Definition at line 49 of file model.h.
◆ Model()
Model constructor.
- Parameters
-
network | network to use in the model. |
Definition at line 56 of file model.h.
◆ add_input_channel()
void knp::framework::Model::add_input_channel |
( |
const core::UID & | channel_uid, |
|
|
const core::UID & | projection_uid ) |
Add an input channel to the network.
- Parameters
-
channel_uid | UID of the input channel. |
projection_uid | UID of the projection which will be connected to the channel. |
◆ add_output_channel()
void knp::framework::Model::add_output_channel |
( |
const core::UID & | channel_uid, |
|
|
const core::UID & | population_uid ) |
Add an output channel to the network.
- Parameters
-
channel_uid | UID of the channel object. |
population_uid | UID of the population which will be connected to the channel. |
◆ connect_input_projection()
template<typename SynapseType >
void knp::framework::Model::connect_input_projection |
( |
const core::UID & | channel_uid, |
|
|
const core::Projection< SynapseType > & | projection ) |
|
inline |
Add an input channel to the network.
- Parameters
-
channel_uid | UID of the input channel. |
projection | projection which will be connected to the channel. |
Definition at line 97 of file model.h.
◆ connect_output_population()
template<typename NeuronType >
void knp::framework::Model::connect_output_population |
( |
const core::UID & | channel_uid, |
|
|
const core::Population< NeuronType > & | population ) |
|
inline |
Add an output channel to the network.
- Parameters
-
channel_uid | UID of the channel object. |
population | population which will be connected to the channel. |
Definition at line 115 of file model.h.
◆ get_input_channels()
Return all input channels.
- Returns
- map of input channels to projections.
◆ get_network() [1/2]
Get network associated with the model.
- Returns
- network.
Definition at line 76 of file model.h.
◆ get_network() [2/2]
Get network associated with the model.
- Note
- Constant method.
- Returns
- network.
Definition at line 82 of file model.h.
◆ get_output_channels()
Return all output channels.
- Returns
- map of output channels to populations.
◆ get_tags()
auto & knp::framework::Model::get_tags |
( |
| ) |
|
|
inlinenodiscard |
Get tags used by the model.
- Returns
- model tag map.
- See also
- TagMap.
Definition at line 69 of file model.h.
◆ get_uid()
Get model UID.
- Returns
- model UID.
Definition at line 63 of file model.h.
The documentation for this class was generated from the following file:
- base-framework/include/knp/framework/model.h