Expand description
SQLite-like in-memory simulation database with time-indexed snapshots, run-length-encoded compression, differential storage, event logging, result aggregation, and CSV/JSON import-export.
§Overview
SimulationRecord— a single simulation run with parameters and metadata.SimulationDatabase— a collection of records with CSV/JSON persistence.SnapshotTable— time-indexed snapshots with RLE compression and differential storage.EventLog— timestamped event records for a simulation session.ResultAggregator— computes min/max/mean/std over snapshot collections.ProvenanceTracker— W3C-PROV-style provenance graph.CheckpointManager— rolling-window checkpoint storage.ParameterSweep— Cartesian-product and Latin-hypercube parameter sweeps.
Structs§
- AggStats
- Summary statistics computed over a sequence of scalar values.
- Checkpoint
Manager - Manages a rolling window of simulation checkpoints stored in memory.
- Diff
Entry - Differential storage entry: stores only the indices and new values that differ from the previous snapshot.
- Event
Log - Append-only timestamped event log for a simulation session.
- LogEvent
- A single logged event.
- Metadata
Store - A structured store for simulation-level metadata including git hash, build timestamp, and runtime parameters.
- Parameter
Sweep - A multi-dimensional parameter sweep specification.
- Provenance
Node - A node in the provenance graph.
- Provenance
Tracker - Directed acyclic graph for W3C-PROV-style provenance tracking.
- Query
Builder - A builder for composing multi-criteria queries over a
SimulationDatabase. - Result
Aggregator - Aggregates statistics over a collection of snapshots for a named field.
- Simulation
Database - In-memory database of simulation records with CSV/JSON persistence.
- Simulation
Record - A single simulation run record storing parameters and metadata.
- Snapshot
- A single simulation snapshot: a named collection of scalar fields recorded at a given simulation time.
- Snapshot
Table - Time-indexed table of simulation snapshots with optional RLE compression and differential storage.
Enums§
- Event
Level - Severity level for a logged event.
- Provenance
Type - Discriminant for provenance graph nodes.
Functions§
- rle_
compression_ ratio - Compression ratio:
original_len / encoded_len(number of (value, count) pairs). - rle_
decode - Decode a run-length-encoded slice back to a flat
Vecf64`. - rle_
encode - Encode a slice of
f64values using run-length encoding.