Struct djinn::Updates [] [src]

pub struct Updates<S: Simulation> { /* fields omitted */ }

A container for queuing and synchronizing agent updates.

Updates for agents local to the worker will be directly routed to those agents. Updates for remote agents will be synchronized via Redis.

Methods

impl<S: Simulation> Updates<S>
[src]

Queue a single update for an agent with the specified id.

Queue an update for the world.

Create a new agent with the specified state, returning the new agent's id.

This does not actually spawn the agent, it just queues it. Run the update method to execute it (and other queued updates).

Deletes an agent by id.

This does not actually execute the kill, it just queues it. Run the update method to execute it (and other queued updates).