Bardo.AgentManager.AgentManagerClient (Bardo v0.1.0)

View Source

Client module for interacting with the Agent Manager.

This module provides a simplified API for interacting with agent-related processes.

Summary

Functions

Sends a fitness score to an actuator.

Sends a perception to a sensor.

Starts an agent with the specified ID and operation mode.

Stops an agent with the specified ID.

Functions

fitness(actuator_pid, fitness, halt_flag)

@spec fitness(pid(), [float()], atom() | integer()) :: :ok

Sends a fitness score to an actuator.

percept(sensor_pid, percept)

@spec percept(pid(), [float()]) :: :ok

Sends a perception to a sensor.

start_agent(agent_id, op_mode)

@spec start_agent(tuple(), atom()) :: :ok

Starts an agent with the specified ID and operation mode.

stop_agent(agent_id)

@spec stop_agent(tuple()) :: :ok

Stops an agent with the specified ID.