[−][src]Trait caminos_lib::event::Eventful
A trait to be implemented for generic objects to be inserted in the event queue.
Required methods
pub fn process(&mut self, simulation: &Simulation<'_>) -> Vec<EventGeneration>
[src]
Method to ve called to process the events.
pub fn pending_events(&self) -> usize
[src]
Number of pending events.
pub fn add_pending_event(&mut self)
[src]
Mark the eventful as having another pending event. It should also be added to some queue.
pub fn clear_pending_events(&mut self)
[src]
Mark the eventful as having no pending events. Perhaps it is not necessary, since it is being done by the process
method.
pub fn as_eventful(&self) -> Weak<RefCell<dyn Eventful>>
[src]
Extract the eventful from the implementing class. Required since as Rc<RefCell<Eventful>>
does not work.