libmuscle.manager.manager module

class libmuscle.manager.manager.Manager(configuration: PartialConfiguration, run_dir: RunDir | None = None, log_level: str | None = None)[source]

Bases: object

The MUSCLE3 manager.

This creates and manages instances and connects them together according to the simulation configuration.

get_server_location() str[source]

Returns the network location of the server.

start_instances() None[source]

Starts all required component instances.

stop() None[source]

Shuts down the manager.

wait() bool[source]

Blocks until the simulation is done, then shuts down.

Returns:

True if success, False if an error occurred.