feat(sim): world, contact trace, SimTransport

This commit is contained in:
2026-10-17 16:06:51 -07:00
parent 1740acd625
commit 5dca574c50
6 changed files with 849 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
//! tines-sim: a std simulator for the tines shared-memory library.
//!
//! `SimWorld` is a shared, reference-counted simulation of nodes connected by a
//! `ContactTrace`. `SimTransport` implements the `tines_core::Transport` trait
//! on top of that world: outbound frames are enqueued into per-node inboxes,
//! and `SimWorld::advance` turns contact-state changes into `Contact`/`Lost`
//! events. Loss and duplication are driven by a deterministic, seeded RNG so
//! that convergence behaviour is reproducible.
#![deny(warnings)]
pub mod trace;
pub mod world;
pub mod transport;
pub use trace::{Contact, ContactTrace};
pub use transport::SimTransport;
pub use world::{SimWorld, WorldConfig};