Module agent

Module agent 

Source

Structs§

AgentCommand
AgentContext
AgentInitializer
An initializer for an agent. The agent holds the behavior and on_ functions; the options are configuration for constructing the agent.
AgentOptions
Configuration for how an agent should start the simulation.
AgentState
SimulationAgent

Enums§

AgentCommandType
Actions the Agent can perform.
AgentMode
Possible states an Agent can be in.
MessageProcessingStatus

Traits§

Agent
The bread and butter of the Simulation – the Agent. In a Complex Adaptive System (CAS), an Adaptive Agent does things and interacts with the Simulation, itself, and other Agents.

Functions§

periodic_consumer
A simple agent that consumes messages on a period with no side effects. Period can be thought of the time to consume 1 message.
periodic_producer
A simple agent that produces messages on a period, directed to target.
poisson_distributed_consumer
An agent that processes on a Poisson-distributed periodicity.
poisson_distributed_producer
Given a poisson distribution for the production period, returns an Agent that produces to Target with that frequency.