Skip to content

The cadmium_v2 DEVS simulator including additional examples for the MSP432P401R microcontroller. Examples can be compiled either as simulations (in the command line interface), or for embedded execution using Code Composer Studio.

License

Notifications You must be signed in to change notification settings

SimulationEverywhere-Models/cadmium_v2_rt_msp432

 
 

Repository files navigation

Cadmium 2

Object-Oriented implementation of a PDEVS simulator for C++ 17. Cadmium 2 is a header-only library for implementing and simulating PDEVS, classic Cell-DEVS, and asymmetric Cell-DEVS models using an object-oriented programming paradigm.

NOTE: We are still working on this new version of Cadmium. We will shortly release a first official version with better documentation and more features.

Requirements

Before using Cadmium, make sure that your computer has the following dependencies intalled:

  • A C++ 17-compliant compiler (e.g., g++ or gcc)
  • make
  • cmake 3.19 or greater
  • git

Getting started

  • Download this repository:
git clone https://github.com/SimulationEverywhere/cadmium_v2.git
cd cadmium_v2
  • Use the build.sh script to compile all the examples:
source build.sh
  • You can execute the provided Cell-DEVS examples to ensure that everything is fine:
source celldevs_examples.sh

The files example/celldevs_asymm_sir/log.csv and example/celldevs_grid_sir/log.csv will contain the simulation traces of a pandemic scenario. Feel free to use your favorite tool (e.g., Microsof Excel, R, or Python with Pandas) to analyze the results.

Building your own Cell-DEVS models

The folder templates contains a template project for asymmetric and classic Cell-DEVS models.

About

The cadmium_v2 DEVS simulator including additional examples for the MSP432P401R microcontroller. Examples can be compiled either as simulations (in the command line interface), or for embedded execution using Code Composer Studio.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 69.2%
  • C++ 30.2%
  • Other 0.6%