pygrenade_vx.network.ResourceManager
-
class
pygrenade_vx.network.
ResourceManager
Bases:
pybind11_builtins.pybind11_object
-
__init__
(*args, **kwargs) Overloaded function.
__init__(self: _pygrenade_vx_network.ResourceManager, arg0: _pygrenade_vx_network.ResourceManager) -> None
__init__(self: _pygrenade_vx_network.ResourceManager) -> None
Methods
__init__
(*args, **kwargs)Overloaded function.
add_config
(*args, **kwargs)Overloaded function.
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.
-
add_config
(*args, **kwargs) Overloaded function.
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.
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_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.
-