flexpool_sim/lib.rs
1//! flexpool replay: the sandbox and the test oracle.
2//!
3//! - [`series`] — bitemporal observations read through a [`series::View`] fixed to a decision
4//! instant; reading what was not yet known is an error, never a silent wrong answer.
5//! - [`synthetic`] — a deterministic, plausible German day-ahead day from a seed.
6//! - [`import`] — strict CSV import of a real day's prices.
7//! - [`scenario`] — the one file that drives the demo, tests and bug reports.
8//! - [`clock`] — a forward-only test clock that jumps between the gates the rules define.
9//! - [`replay`] — all of it together for one scenario day.
10//!
11//! No I/O and no real clock: callers read files and pass text; time is the test clock.
12
13#![forbid(unsafe_code)]
14
15pub mod clock;
16pub mod import;
17pub mod replay;
18pub mod scenario;
19pub mod series;
20pub mod synthetic;
21
22pub use clock::{Clock, ClockError, Event, EventKind};
23pub use replay::{Replay, ReplayError};
24pub use scenario::{MarketSource, Scenario, ScenarioProblem};
25pub use series::{LookAhead, Observation, Series, View};