pygrenade_vx.network.ResourceManager

class pygrenade_vx.network.ResourceManager

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: _pygrenade_vx_network.ResourceManager, arg0: _pygrenade_vx_network.ResourceManager) -> None

  2. __init__(self: _pygrenade_vx_network.ResourceManager) -> None

Methods

__init__(*args, **kwargs)

Overloaded function.

add_config(*args, **kwargs)

Overloaded function.

get_compartments(self)

Returns all compartments for which resource requirements are stored.

get_config(self, compartment)

Return the configuration for a compartment in the resource maanger.

get_total(self)

Return the total resource requirements of all compartments inside the resource manager.

remove_config(self, compartment)

Removes the configuration of a compartment from the resource manager.

write_graphviz(self, file, neuron, name)

Writes neuron topology in graphviz format.

add_config(*args, **kwargs)

Overloaded function.

  1. add_config(self: _pygrenade_vx_network.ResourceManager, compartment: _pygrenade_vx_network.CompartmentOnNeuron, neuron: _pygrenade_vx_network.Neuron, environment: _pygrenade_vx_network.Environment) -> _pygrenade_vx_network.CompartmentOnNeuron

Adds the configuration for a compartment to the resource manager. Calculates the number of required resources of the compartment based on its mechanisms.

  1. add_config(self: _pygrenade_vx_network.ResourceManager, neuron: _pygrenade_vx_network.Neuron, environment: _pygrenade_vx_network.Environment) -> None

Adds the configuration for all compartments of a neuron.

get_compartments(self: _pygrenade_vx_network.ResourceManager)list[_pygrenade_vx_network.CompartmentOnNeuron]

Returns all compartments for which resource requirements are stored.

get_config(self: _pygrenade_vx_network.ResourceManager, compartment: _pygrenade_vx_network.CompartmentOnNeuron)_pygrenade_vx_network.NumberTopBottom

Return the configuration for a compartment in the resource maanger.

get_total(self: _pygrenade_vx_network.ResourceManager)_pygrenade_vx_network.NumberTopBottom

Return the total resource requirements of all compartments inside the resource manager.

remove_config(self: _pygrenade_vx_network.ResourceManager, compartment: _pygrenade_vx_network.CompartmentOnNeuron)None

Removes the configuration of a compartment from the resource manager.

write_graphviz(self: _pygrenade_vx_network.ResourceManager, file: std::ostream, neuron: _pygrenade_vx_network.Neuron, name: str)None

Writes neuron topology in graphviz format. Contains information about the resources required by each compartment of the neuron.