register method

void register(
  1. OmegaAgent agent
)

Registers an agent. Called at bootstrap for each agent in the config. If an agent with the same agent.id exists, it is replaced.

Implementation

void register(OmegaAgent agent) {
  agents[agent.id] = agent;
}