[][src]Trait sim::models::model::Model

pub trait Model {
    pub fn as_any(&self) -> &dyn Any;
pub fn id(&self) -> String;
pub fn status(&self) -> String;
pub fn events_ext(
        &mut self,
        uniform_rng: &mut UniformRNG,
        incoming_message: ModelMessage
    ) -> Vec<ModelMessage>;
pub fn events_int(
        &mut self,
        uniform_rng: &mut UniformRNG
    ) -> Vec<ModelMessage>;
pub fn time_advance(&mut self, time_delta: f64);
pub fn until_next_event(&self) -> f64; }

Required methods

pub fn as_any(&self) -> &dyn Any[src]

pub fn id(&self) -> String[src]

pub fn status(&self) -> String[src]

pub fn events_ext(
    &mut self,
    uniform_rng: &mut UniformRNG,
    incoming_message: ModelMessage
) -> Vec<ModelMessage>
[src]

pub fn events_int(&mut self, uniform_rng: &mut UniformRNG) -> Vec<ModelMessage>[src]

pub fn time_advance(&mut self, time_delta: f64)[src]

pub fn until_next_event(&self) -> f64[src]

Loading content...

Implementors

impl Model for ExclusiveGateway[src]

impl Model for Gate[src]

impl Model for Generator[src]

impl Model for LoadBalancer[src]

impl Model for ParallelGateway[src]

impl Model for Processor[src]

impl Model for StochasticGate[src]

impl Model for Storage[src]

Loading content...