pub struct RestaurantArgs {Show 17 fields
pub seed: u64,
pub opening_time: TimeOfDay,
pub closing_time: TimeOfDay,
pub base_arrival_gap: u64,
pub arrival_jitter: i64,
pub join_base_probability: f64,
pub join_queue_sensitivity: f64,
pub max_queue_wait_ticks: u64,
pub move_to_till_ticks: u64,
pub order_overhead_ticks: u64,
pub payment_ticks: u64,
pub pack_order_ticks: u64,
pub max_kitchen_queue_len: usize,
pub take_food_ticks: u64,
pub leave_ticks: u64,
pub till_salary_per_hour: f64,
pub kitchen_salary_per_hour: f64,
}Fields§
§seed: u64Random seed used to build the day’s customer demand.
opening_time: TimeOfDayRestaurant opening time in 24-hour format.
closing_time: TimeOfDayRestaurant closing time in 24-hour format.
base_arrival_gap: u64Average gap between arrivals during a normal period (in seconds).
arrival_jitter: i64Random jitter applied to each arrival gap (in seconds).
join_base_probability: f64Maximum chance that a customer joins when there is no queue.
join_queue_sensitivity: f64Exponential drop-off in queue joining probability per person in line.
max_queue_wait_ticks: u64Maximum time a customer will stay in the till queue before leaving (in seconds).
move_to_till_ticks: u64Time for a customer to walk from the queue to the till (in seconds).
order_overhead_ticks: u64Fixed ordering overhead on top of item-specific times (in seconds).
payment_ticks: u64Time spent paying at the till (in seconds).
pack_order_ticks: u64Time kitchen staff spend packing order (in seconds).
max_kitchen_queue_len: usizeMaximum number of orders allowed to be queued waiting for the kitchen.
take_food_ticks: u64Time for the customer to collect their food (in seconds).
leave_ticks: u64Time for the customer to leave after collecting food (in seconds).
till_salary_per_hour: f64Hourly pay cost of one till worker.
kitchen_salary_per_hour: f64Hourly pay cost of one kitchen worker.
Trait Implementations§
Source§impl Args for RestaurantArgs
impl Args for RestaurantArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Clone for RestaurantArgs
impl Clone for RestaurantArgs
Source§fn clone(&self) -> RestaurantArgs
fn clone(&self) -> RestaurantArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RestaurantArgs
impl Debug for RestaurantArgs
Source§impl From<RestaurantArgs> for RestaurantConfig
impl From<RestaurantArgs> for RestaurantConfig
Source§fn from(restaurant_args: RestaurantArgs) -> Self
fn from(restaurant_args: RestaurantArgs) -> Self
Source§impl FromArgMatches for RestaurantArgs
impl FromArgMatches for RestaurantArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for RestaurantArgs
impl RefUnwindSafe for RestaurantArgs
impl Send for RestaurantArgs
impl Sync for RestaurantArgs
impl Unpin for RestaurantArgs
impl UnwindSafe for RestaurantArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more