Bardo.ScapeManager.ScapeManagerClient (Bardo v0.1.0)

View Source

Client module for interacting with the ScapeManager and Scape processes.

Summary

Functions

Agent actuates in the scape with the given function and parameters.

Agent enters the scape with the given parameters.

Agent leaves the scape with the given parameters.

Agent senses the scape through the given sensor.

Starts a new scape with the given dimensions and module name.

Stops a scape with the given module name.

Functions

actuate(agent_id, actuator_pid, function, params)

@spec actuate(Bardo.Models.agent_id(), pid(), atom(), any()) :: :ok

Agent actuates in the scape with the given function and parameters.

enter(agent_id, params)

@spec enter(Bardo.Models.agent_id(), [any()]) :: :ok

Agent enters the scape with the given parameters.

leave(agent_id, params)

@spec leave(Bardo.Models.agent_id(), [any()]) :: :ok

Agent leaves the scape with the given parameters.

sense(agent_id, sensor_pid, params)

@spec sense(Bardo.Models.agent_id(), pid(), any()) :: :ok

Agent senses the scape through the given sensor.

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

@spec start_scape(float(), float(), float(), float(), atom()) :: :ok

Starts a new scape with the given dimensions and module name.

stop_scape(mod_name)

@spec stop_scape(atom()) :: :ok

Stops a scape with the given module name.