Skip to content

Commit cafe0d1

Browse files
committed
Added Shell Script and README to COVID Store example
1 parent 5ef81b5 commit cafe0d1

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

cd++

100644100755
File mode changed.

covid_store/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ This is a simple SIR model for spread disease inside a store.
99
** Death Rate: ** 0.01
1010
** Transmission Rate: ** 0.4
1111

12-
## How to run the model:
12+
# How to run the model:
13+
In a BASH terminal, simply run the main shell script:
14+
```shell
15+
> ./run_covid_store.sh
16+
```
17+
The main output log file of the simulation will be stored in the `covid_store.log` file. You can use this file, together with `covid_store.ma`, `covid_store.val`, and `covid.pal` for visualizing the outcome of your simulation in the [CD++ Cell DEVS Web Viewer](https://omarhesham.com/arslab/webviewer/).
1318

14-
If it does not already exists, create a folder in this level named *results*, type in the linux terminal:
15-
> mkdir results
16-
17-
Type in the linux terminal:
18-
> ./../cd++ -mcovid_store.ma -lresults/covid_store.log

covid_store/covid.pal

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[-11.5;-9.5] 0 0 255
2+
[-1.5;-0.5] 0 0 0
3+
[-0.5;0.5] 255 255 255
4+
[0.5;7.5] 255 255 0
5+
[7.5;15.5] 255 0 0
6+
[15.5;16.5] 0 255 0
7+
[16.5;100] 128 128 128

covid_store/run_covid_store.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!bin/bash
2+
mkdir results
3+
../cd++ -m"covid_store.ma" -l"results/covid_store.log"
4+
cp results/covid_store.log01 ./covid_store.log
5+
rm -r results
6+

0 commit comments

Comments
 (0)