DEVSimPy is an open Source project (under GPL V.3 license) supported by the SPE (Sciences pour l'Environnement) team of the UMR CNRS 6134 Lab. of the University of Corsica "Pasquale Paoli". This aim is to provide a GUI for the Modeling & Simulation of PyDEVS and PyPDEVS models. PyDEVS is an API allowing the implementation of the DEVS formalism in Python language. PyPDEVS is the parallel version of PyDEVS based on Parallel DEVS formalism which is an extension of the DEVS formalism. The DEVSimPy environment has been developed in Python with the wxPython graphical library without strong dependencies other than the Scipy and the Numpy scientific python libraries. The basic idea behind DEVSimPy is to wrap the PyDEVS API with a GUI allowing significant simplification of handling PyDEVS/PyPDEVS models (like the coupling between models or their storage into libraries).
The use of DEVSimPy requires:
With DEVSimPy you can:
- Model a DEVS system and save or export it into a library
- Edit the code of a DEVS model to modify behavior's (also during the simulation)
- Import existing library of models (python code or DEVSimPy specific models) which allows the specific domain modeling (Power system, continuous, etc)
- Automatically simulate the system and perform its analysis during the simulation (using the suspend option)
- Load plug-ins to extend DEVSimPy in order to perform activity tracking, trace the simulation with visual tools, etc.
- Generate YAML models for the DEVSimPy-mob mobile application.
- and more.
Download, install and run Xquartz
-
Go to https://www.xquartz.org/
-
Download and run the DMG
-
You may be asked to logout or reboot
-
Open XQuartz
-
Launch XQuartz. Under the XQuartz menu, select Preferences
-
Go to the security tab and ensure "Allow connections from network clients" is checked.
-
Restart XQuartz.
-
To verify XQuartz is running correctly, run
netstat -an | grep -F 6000You should see output that looks like this
tcp4 0 0 *.6000 *.* LISTEN tcp6 0 0 *.6000 *.* LISTEN
To get DEVSimPy with all Git submodules:
git clone --recurse-submodules https://github.com/luminositylab/DEVSimPy.git
# This can take up to 20 minutes
docker-compose build --pull --no-cacheNext we're going to allow X11 (powered by Xquartz) to talk to docker and docker to talk to our host
xhost +localhostNow that we've allowed local communication, lets verify xhost allows you to connect
xauth listYour output should look something like this
localhost:0 MIT-MAGIC-COOKIE-1 someSha
To execute DEVSimPy:
docker-compose up- DEVSimPy User Guide v2.8 [pdf] (French)
- S. Toma Ph.D, Thesis [pdf] (English), winner of the 2014 DEVS PhD Dissertation Award.
- S. Cezary, "Design and implementation of application for instruction exercises with DEVSimPy", Technical report, Faculty of Electrical Engineering, AUTOMATION AND INFORMATION TECHNOLOGY, Kielce University of Technology [pdf] (Polish)
You can watch some DEVSimPy features videos on
