(props: Props, id: String, oscillator: &FullModel, rng: Box<dyn RngCore>)
| 64 | /// Constructor |
| 65 | #[builder] |
| 66 | pub fn new(props: Props, id: String, oscillator: &FullModel, rng: Box<dyn RngCore>) -> Self { |
| 67 | let mut rv = Self { |
| 68 | id, |
| 69 | next_poll: props.update_period, |
| 70 | props, |
| 71 | next_event: None, |
| 72 | rng, |
| 73 | }; |
| 74 | |
| 75 | let next_event = rv.next_event(oscillator); |
| 76 | rv.next_event = next_event; |
| 77 | |
| 78 | rv |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | impl Generator { |
nothing calls this directly
no test coverage detected