Struct sim::models::generator::Generator[][src]

pub struct Generator { /* fields omitted */ }

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

impl Generator[src]

pub fn new(
    message_interdeparture_time: ContinuousRandomVariable,
    thinning: Option<Thinning>,
    job_port: String,
    snapshot_metrics: bool,
    history_metrics: bool
) -> Self
[src]

Trait Implementations

impl AsModel for Generator[src]

impl Clone for Generator[src]

impl Debug for Generator[src]

impl<'de> Deserialize<'de> for Generator[src]

impl From<Generator> for ModelType[src]

impl Serialize for Generator[src]

impl TryInto<Generator> for ModelType[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,