Bardo.ScapeManager.ScapeSupervisor (Bardo v0.1.0)

View Source

Supervisor for Scape processes.

This supervisor manages individual Scape processes, which represent environments where agents can interact.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the supervisor.

Starts a new scape process with the given parameters.

Stops a scape process with the given PID.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link()

@spec start_link() :: {:ok, pid()}

Starts the supervisor.

start_scape(x, y, width, height, mod_name)

@spec start_scape(float(), float(), float(), float(), atom()) :: {:ok, pid()}

Starts a new scape process with the given parameters.

stop_scape(pid)

@spec stop_scape(pid()) :: :ok

Stops a scape process with the given PID.