#continuation #agent #sim #job #traits #pointers

no-std odem-rs-core

Core components of the ODEM-rs simulation framework

2 releases

new 0.1.1 Feb 21, 2025
0.1.0 Feb 21, 2025

#330 in Simulation


Used in 3 crates

MIT license

315KB
5K SLoC

ODEM-rs Core

odem-rs-core is the foundational crate of the ODEM-rs library, providing essential structures and traits for object-based discrete-event modeling in Rust. It defines the core components that facilitate agent-based simulation modeling, event scheduling, and cooperative concurrency.

Features

  • Provides the key simulation structures Agent, Job, and Continuation, as well as the simulation context Sim.
  • Implements event scheduling and deterministic execution.
  • Contains supporting structures and traits like intrusively counted pointers (Irc), the Config-trait, and the Scheduler-trait.

Installation

Using the entry crate odem-rs is recommended, but it is possible to use this crate as a standalone simulator core.

[dependencies]
odem-rs-core = "*"

License

Licensed under MIT. See LICENSE for details.


lib.rs:

The core crate is the central component of the ODEM-rs library, providing the foundational elements for object-based discrete-event modeling. It defines key structures, traits, and functions that enable the modeling of concurrent systems through cooperative concurrency. The core crate includes essential components like configuration handling, error management, and core simulation functionalities.

Dependencies

~4–6MB
~126K SLoC