pub struct SimulationParameters {
pub agent_initializers: Vec<AgentInitializer>,
pub halt_check: fn(&Simulation) -> bool,
pub starting_time: DiscreteTime,
pub enable_queue_depth_metrics: bool,
pub enable_agent_asleep_cycles_metric: bool,
}Expand description
The parameters to create a Simulation.
Fields§
§agent_initializers: Vec<AgentInitializer>The agents within the simulation, e.g. adaptive agents. See here: https://authors.library.caltech.edu/60491/1/MGM%20113.pdf
halt_check: fn(&Simulation) -> boolGiven the state of the Simulation a function that determines if the Simulation is complete.
starting_time: DiscreteTimeThe discrete time at which the simulation should begin. For the vast majority of simulations, 0 is the correct default.
enable_queue_depth_metrics: boolWhether to record metrics on queue depths at every tick of the simulation.
enable_agent_asleep_cycles_metric: boolRecords a metric on the number of cycles an agent was asleep for.
Trait Implementations§
Source§impl Clone for SimulationParameters
impl Clone for SimulationParameters
Source§fn clone(&self) -> SimulationParameters
fn clone(&self) -> SimulationParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulationParameters
impl Debug for SimulationParameters
Auto Trait Implementations§
impl Freeze for SimulationParameters
impl !RefUnwindSafe for SimulationParameters
impl !Send for SimulationParameters
impl !Sync for SimulationParameters
impl Unpin for SimulationParameters
impl !UnwindSafe for SimulationParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more