pygrenade_vx.network.PlacementAlgorithmBruteForce

class pygrenade_vx.network.PlacementAlgorithmBruteForce

Bases: _pygrenade_vx_network.PlacementAlgorithm

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: _pygrenade_vx_network.PlacementAlgorithmBruteForce) -> None

  2. __init__(self: _pygrenade_vx_network.PlacementAlgorithmBruteForce, timeout: int) -> None

Methods

__init__(*args, **kwargs)

Overloaded function.

clone(self)

Clone the algorithm.

reset(self)

Reset all members of the algorithm.

run(self, coordinate_system, neuron, resources)

Attributes

parallel_runs

x_limit

clone(self: _pygrenade_vx_network.PlacementAlgorithmBruteForce)_pygrenade_vx_network.PlacementAlgorithm

Clone the algorithm. Only clones the initial configuration not the current state of the algorithm. New algorithm is in state as after reset(). Since PlacementAlgorithm is the abstract base class the algorithm is passed as a pointer. This allows to pass the algorithm polymorphically to functions.

property parallel_runs
reset(self: _pygrenade_vx_network.PlacementAlgorithmBruteForce)None

Reset all members of the algorithm. Used during testing.

run(self: _pygrenade_vx_network.PlacementAlgorithmBruteForce, coordinate_system: _pygrenade_vx_network.CoordinateSystem, neuron: _pygrenade_vx_network.Neuron, resources: _pygrenade_vx_network.ResourceManager)_pygrenade_vx_network.AlgorithmResult
property x_limit