📦 Storage

cellular_raza assumes that every cell-agent and domain component can be serialed via the serde crate. This allows us to create full snapshots of an entire simulation which can in principle be used to load previously executed simulations and continue them. Said feature is currently not available but part of our roadmap. Furthermore, users retain full transparency of every cellular and domain parameter.

Options

cellular_raza provides multiple storage formats:

Format Description
json Stores results in files of the popular json format. A good general-purpose choice for most applications.
xml DEPRECATED Stores results in the xml format.
sled An emdedded database similar to a BTreeMap.
sled (temp) Identical to sled but removes results after commencing. Can be used for temporary results such as benchmarks and tests.
Ron Streos in files with Rust-specific object notation. Arguably most reliable choice but less support in other environments.
Memory Purely memory-based storage solution. Mainly used for small simulations, benchmarks and tests.

Of the listed options, all save simulation results to the disk while the “sled (temp)” option erases any created files after it has commenced.