Struct sim::models::generator::Generator [−][src]
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]
message_interdeparture_time: ContinuousRandomVariable,
thinning: Option<Thinning>,
job_port: String,
snapshot_metrics: bool,
history_metrics: bool
) -> Self
Trait Implementations
impl AsModel for Generator
[src]
fn status(&self) -> String
[src]
fn events_ext(
&mut self,
_incoming_message: ModelMessage,
_services: &mut Services
) -> Result<Vec<ModelMessage>, SimulationError>
[src]
&mut self,
_incoming_message: ModelMessage,
_services: &mut Services
) -> Result<Vec<ModelMessage>, SimulationError>
fn events_int(
&mut self,
services: &mut Services
) -> Result<Vec<ModelMessage>, SimulationError>
[src]
&mut self,
services: &mut Services
) -> Result<Vec<ModelMessage>, SimulationError>
fn time_advance(&mut self, time_delta: f64)
[src]
fn until_next_event(&self) -> f64
[src]
impl Clone for Generator
[src]
impl Debug for Generator
[src]
impl<'de> Deserialize<'de> for Generator
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<Generator> for ModelType
[src]
impl Serialize for Generator
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl TryInto<Generator> for ModelType
[src]
Auto Trait Implementations
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,