Simulation Control Strategy

This module contains the abstract definition of a simulation control strategy. It has the definition of the SimulationStrategy, that should be extended, implementing its abstract methods.

Example

Creating an strategy:

class NewStrategy(SimulationStrategy):
        def start_simulation(self, callable: Callable):
            callable()

        def wait_simulation(self):
            sleep(1)

        def stop_simulation(self):
            return True
class gsf.control.core.simulation_strategy.SimulationStrategy

Bases: abc.ABC

Defines a simulation strategy.

start_simulation(*args, **kwargs)

Start the simulation.

stop_simulation(*args, **kwargs)

Stops the simulation.

wait_simulation(*args, **kwargs)

Waits the simulation.