#include <config.h>
Classes | |
| struct | Conditions |
| struct | ConnectionOverride |
| struct | InputAbsoluteShotNoise |
| struct | InputBase |
| struct | InputHyperpolarizing |
| struct | InputLinear |
| struct | InputNoise |
| struct | InputOrnsteinUhlenbeck |
| struct | InputPulse |
| struct | InputRelativeLinear |
| struct | InputRelativeOrnsteinUhlenbeck |
| struct | InputRelativeShotNoise |
| struct | InputSeclamp |
| struct | InputShotNoise |
| struct | InputSinusoidal |
| struct | InputSubthreshold |
| struct | InputSynapseReplay |
| struct | ModificationBase |
| struct | ModificationConfigureAllSections |
| struct | ModificationTTX |
| struct | Output |
| struct | Report |
| struct | Run |
Public Types | |
| enum | SimulatorType { invalid = -1, NEURON, CORENEURON } |
| using | Modification = nonstd::variant< ModificationTTX, ModificationConfigureAllSections > |
| using | ReportMap = std::unordered_map< std::string, Report > |
| using | Input = nonstd::variant< InputLinear, InputRelativeLinear, InputPulse, InputSinusoidal, InputSubthreshold, InputHyperpolarizing, InputSynapseReplay, InputSeclamp, InputNoise, InputShotNoise, InputRelativeShotNoise, InputAbsoluteShotNoise, InputOrnsteinUhlenbeck, InputRelativeOrnsteinUhlenbeck > |
| using | InputMap = std::unordered_map< std::string, Input > |
Public Member Functions | |
| SimulationConfig (const std::string &content, const std::string &basePath) | |
| const std::string & | getBasePath () const noexcept |
| const std::string & | getJSON () const noexcept |
| const std::string & | getNetwork () const noexcept |
| const Run & | getRun () const noexcept |
| const Output & | getOutput () const noexcept |
| const Conditions & | getConditions () const noexcept |
| std::set< std::string > | listReportNames () const |
| const Report & | getReport (const std::string &name) const |
| std::set< std::string > | listInputNames () const |
| const Input & | getInput (const std::string &name) const |
| const std::vector< ConnectionOverride > & | getConnectionOverrides () const noexcept |
| const SimulationConfig::SimulatorType & | getTargetSimulator () const |
| const std::string & | getNodeSetsFile () const noexcept |
| const nonstd::optional< std::string > & | getNodeSet () const noexcept |
| const std::unordered_map< std::string, variantValueType > & | getMetaData () const noexcept |
| const std::unordered_map< std::string, variantValueType > & | getBetaFeatures () const noexcept |
| const std::string & | getExpandedJSON () const |
Static Public Member Functions | |
| static SimulationConfig | fromFile (const std::string &path) |
Read access to a SONATA simulation config file.
| bbp::sonata::SimulationConfig::SimulationConfig | ( | const std::string & | content, |
| const std::string & | basePath | ||
| ) |
Parses a SONATA JSON simulation configuration file.
| SonataError | on:
|
|
static |
Loads a SONATA JSON simulation config file from disk and returns a SimulationConfig object which parses it.
| SonataError | on:
|
|
noexcept |
Returns the base path of the simulation config file
|
noexcept |
Returns the beta_features section
|
noexcept |
Returns the Conditions section of the simulation configuration.
|
noexcept |
Returns the full list of connection overrides
| const std::string& bbp::sonata::SimulationConfig::getExpandedJSON | ( | ) | const |
Returns the configuration file JSON whose variables have been expanded by the manifest entries.
| const Input& bbp::sonata::SimulationConfig::getInput | ( | const std::string & | name | ) | const |
Returns the given input parameters.
| SonataError | if the given input name does not exist |
|
noexcept |
Returns the JSON content of the simulation config file
|
noexcept |
Returns the metadata section
|
noexcept |
Returns circuit config file associated with this simulation config
|
noexcept |
Returns the name of node set to be instantiated for the simulation, default = None
|
noexcept |
Returns the path of node sets file overriding node_sets_file provided in _network, default is empty in case of no setting in _network
|
noexcept |
Returns the Output section of the simulation configuration.
| const Report& bbp::sonata::SimulationConfig::getReport | ( | const std::string & | name | ) | const |
Returns the given report parameters.
| SonataError | if the given report name does not correspond with any existing report. |
|
noexcept |
Returns the Run section of the simulation configuration.
| const SimulationConfig::SimulatorType& bbp::sonata::SimulationConfig::getTargetSimulator | ( | ) | const |
Returns the name of simulator, default = NEURON
| SonataError | if the given value is neither NEURON nor CORENEURON |
| std::set<std::string> bbp::sonata::SimulationConfig::listInputNames | ( | ) | const |
Returns the names of the inputs
| std::set<std::string> bbp::sonata::SimulationConfig::listReportNames | ( | ) | const |
Returns the names of the reports