Structs§
- Agent
Command - Agent
Context - Agent
Initializer - An initializer for an agent. The
agentholds the behavior andon_functions; the options are configuration for constructing the agent. - Agent
Options - Configuration for how an agent should start the simulation.
- Agent
State - Simulation
Agent
Enums§
- Agent
Command Type - Actions the Agent can perform.
- Agent
Mode - Possible states an Agent can be in.
- Message
Processing Status
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.