Struct sim::models::generator::Generator [−][src]
pub struct Generator { /* fields omitted */ }
Expand description
The generator produces jobs based on a configured interarrival distribution. A normalized thinning function is used to enable non-stationary job generation. For non-stochastic generation of jobs, a random variable distribution with a single point can be used - in which case, the time between job generation is constant. This model will produce jobs through perpetuity, and the generator does not receive messages or otherwise change behavior throughout a simulation (except through the thinning function).
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
fn events_ext(
&mut self,
_incoming_message: &ModelMessage,
_services: &mut Services
) -> Result<(), SimulationError>
fn events_int(
&mut self,
services: &mut Services
) -> Result<Vec<ModelMessage>, SimulationError>
Auto Trait Implementations
impl RefUnwindSafe for Generator
impl UnwindSafe for Generator
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V