The closed-loop assistant (CLA) simulation framework (CLASim) enables simulation of the interaction between closed-loop medical systems consisting of patient monitors, closed-loop physiology management algorithms, and infusion pumps, and patient physiology. It is writtne in C++ and relies on the <ahref="https://physiology.kitware.com/">Pulse Physiology Engine</a> for simulating patient physiology.
## Getting Started
### Installing Pulse and CLASim
CLASim is has only been tested on Ubuntu 16.04. This is the recommended platform. We hope to support other platforms soon.
### Installing Pulse and CLAsim
CLAsim is has only been tested on Ubuntu 16.04. This is the recommended platform. We hope to support other platforms soon.
#### Pulse
To install <ahref="https://gitlab.kitware.com/physiology/engine">Pulse repository</a> and follow the instructions there. Be sure to follow the instructions for Ubuntu. *For Java, be sure to use the openjdk version.*
#### CLASim
1. Check out the CLAsim repository into a folder of your choice
2. Install libconfig++
1. Check out the CLAsim repository into a folder of your choice.
2. Install libconfig++
~~~bash
# update packages
sudo apt-get update
$ sudo apt-get update
# install libconfig++
sudo apt-get install libconfig++-dev
$ sudo apt-get install libconfig++-dev
~~~
3. Use `$ dpkg -L libconfig++-dev` to find the location of `libconfig.h++` and `libconfig++.a`.
4. Fill in lines 5 and 6 of `clasim.cmake` with the information for the locations for `libconfig.h++` and `libconfig++.a`.