pub struct Gate { /* private fields */ }
Expand description
The gate model passes or blocks jobs, when it is in the open or closed state, respectively. The gate can be opened and closed throughout the course of a simulation. This model contains no stochastic behavior - job passing/blocking is based purely on the state of the model at that time in the simulation. A blocked job is a dropped job - it is not stored, queued, or redirected.
Implementations§
source§impl Gate
impl Gate
pub fn from_value(value: Value) -> Option<Box<dyn ReportableModel>>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Gate
impl<'de> Deserialize<'de> for Gate
source§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
source§impl DevsModel for Gate
impl DevsModel for Gate
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 time_advance(&mut self, time_delta: f64)
fn until_next_event(&self) -> f64
source§impl Reportable for Gate
impl Reportable for Gate
source§impl SerializableModel for Gate
impl SerializableModel for Gate
impl ReportableModel for Gate
Auto Trait Implementations§
impl RefUnwindSafe for Gate
impl Send for Gate
impl Sync for Gate
impl Unpin for Gate
impl UnwindSafe for Gate
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
Mutably borrows from an owned value. Read more