File and folder structure
To follow this tutorial, please start from the following two folders: core and SegregationModelTutorial. The core contains the files of the MBSSM architecture (which is also publicly available on Bitbucket), while the SegregationModelTutorial contains the model-specific files for this tutorial. Some functionality is missing in SegregationModelTutorial so we will complete it following the steps in the next section.
[ACTION] Have a look at the core folder structure. There are two folders: include and src. This is a design to separate the headers (class definition or interface) and implementation of classes. The include folder contains .h header files that define the classes with their attributes and operations. The src folder contains the corresponding .cpp files that define the implementation of each operations. This allows people to have a look at the class interface without worrying about the actual details of implementation.
[ACTION] Have a look at the SegregationModelTutorial folder. It also has its own include and src folder. It also has a few more files and folders needed to make the model run:
- makefile: compile the source code into an executable simulation.
- env: the environment information required for compilation.
- props: property files for the program (config.props file) and the simulation model (model.props file).