Date: 28/10/2017
 
Model: Healthy Smile Dental Clinic Model
Names of Authors: Ekambir Sidhu,
 Manohar Deep Singh Gill

The Healthy Smile Dental Clinic sample model sample has been developed under DEVS - Eclipse 3.6 on a HP Pavilion laptop (Intel Core(TM)i5-5200CPU @ 2.20GHz) running Windows 10 home. 

The CD++ Builder Installer (with Eclipse 3.6) has been downloaded as setup_Eclipse3.6.exe from the course website 
http://cell-devs.sce.carleton.ca/mediawiki/index.php/Installation on prior getting the username and password from the Professor Gabriel Weiner.

The Cygwin (setup-x86 64bit.exe) has been installed separately from the following website link:
https://www.cygwin.com/ 

The dentalclinic.bat runs the complete dental clinic coupled model having dentists with different patient serving rate using dentalclinicMA.ma and dentalclinic.ev files. Note that the time of simulation used for testing the model is 4 hours. 

The doctor5 model employing the 5 dentists(doctors) in the clinic having equal patient serving rates have been designed, simulated and tested with help of doctor5.bat using doctor5MA.ma and doctor5.ev. Note that the time of simulation used for testing the model is 4 hours.

The doctor4 model employing the 4 dentists(doctors) in the clinic having equal patient serving rates have been designed, simulated and tested with help of doctor4.bat using doctor4MA.ma and doctor4.ev. Note that the time of simulation used for testing the model is 4 hours.

The doctor3 model employing the 3 dentists(doctors) in the clinic having equal patient serving rates have been designed, simulated and tested with help of doctor3.bat using doctor3MA.ma and doctor3.ev. Note that the time of simulation used for testing the model is 4 hours.

The doctor2 model employing the 2 dentists(doctors) in the clinic having equal patient serving rates have been designed and simulated with help of doctor2.bat using doctor2MA.ma and doctor2.ev. Note that the time of simulation used for testing the model is 4 hours.

The doctor1 model employing the 1 dentist(doctor) in the clinic having equal patient serving rates have been designed, simulated and tested with help of doctor1.bat using doctor1MA.ma and doctor1.ev. Note that the time of simulation used for testing the model is 4 hours.


The sample doctor model (atomic model) have been simulated and tested with help of doctorc.bat using doctorMA.ma and doctor.ev. Note that the events to test the doctor model have been directly specified in the respective event file (doctor.ev). Note that the time of simulation used for testing the model is 4 hours.

The receptionist model (atomic model) test has been conducted by using doctor.bat with the help of receptionistMA.ma and the receptionist.ev files. Note that the time of simulation used for testing the model is 4 hours.  

The tokengenerator model (atomic model) has been tested using the tokengeneratorMA.ma. Note that the token generator model has no event file required for the simulation. Note that the time of simulation used for testing the model is 4 hours.     

The comptroller model (atomic model) has been tested with the help of comptroller.bat file using the comptrollerMA.ma and comptroller.ev files. Note that the time of simulation used for testing the model is 4 hours.

NAMING CONVENTIONS FOR COUPLED MODELS  
The related components have identical name roots, for example, dentalclinic.bat, dentalclinicMA.ma and dentalclinic.ev for dental clinic model.

NAMING CONVENTIONS FOR ATOMIC MODELS  
There are comptroller.cpp, comptroller.h, comptrollerMA.ma and comptroller.cpp file names have been used for naming the atomic component  Comptroller.  

OUTPUT FILES

The .bat files have been generated and configured to organize the output information for easier analysis. Each .bat file runs the simulator with its respective.ev and .ma files.

The CD++ console view messages, .log file output and the diagnostic messages from the code are output to componentname.outputs.txt i.e. when we run dentalclinic.bat, we have the respective output of simulation in dentalclinic.outputs.txt for convenient viewing and model analysis. The dentalclinic.outputs.txt has been appended at the end of report (.doc) for reference. 

The .bat file execution generates the messages showing the loading of respective .ma and .ev files and the respective .out and .log files will be generated in the project workspace on execution of respective bat file. 
After the execution of .bat file, press any key to exit the .bat prompt window and finish the execution of .bat file.

Ekambir Sidhu (Student ID 300036992)
Manohar Deep Singh Gill (Student ID 101055138)