Struct sim::models::processor::Processor [−][src]
pub struct Processor { /* fields omitted */ }
Expand description
The processor accepts jobs, processes them for a period of time, and then outputs a processed job. The processor can have a configurable queue, of size 0 to infinity, inclusive. The default queue size is infinite. The queue allows collection of jobs as other jobs are processed. A FIFO strategy is employed for the processing of incoming jobs. A random variable distribution dictates the amount of time required to process a job. For non-stochastic behavior, a random variable distribution with a single point can be used - in which case, every job takes exactly the specified amount of time to process.
Implementations
Trait Implementations
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>
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
Auto Trait Implementations
impl RefUnwindSafe for Processor
impl UnwindSafe for Processor
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V