1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! The `source` module defines the `Source` trait, which is used to create
//! event generators within the simulation.
//!
//! Sources are responsible for scheduling events, either periodically or based
//! on specific conditions, and can be configured to fire once or repeatedly.
//! This module also re-exports `SourceReadyEntry` and `SourceView` for
//! interacting with sources.
use crate;
use crateModel;
use crateDuration;
// Re-exporting these types to keep the internal `source_handler` module private
// while exposing a clean API for modeling.
pub use crate;
/// Defines the interface for a simulation source.
///
/// Sources are responsible for scheduling events or influencing the simulation
/// based on their internal logic.