Here you can download the complete N

Samples (from S to Z)

The following list includes some existing models developed for the CD++ Simulator.
It includes the name, location, a brief description of it, and some other helpful information for each model.

This icon means that you can see the simulation downloading the sample and using the Web-Based Graflog applet
Name Location Description
SHARKS ./samples/sharks A model of shark feeding. It includes two sea areas, one with herrings, and other dominated by sharks. If there is not enough room for the herring well, it moves to the shark's area. If the herring meets a shark neighbor then it will be eaten.
Download model and sample
SORT (Base) ./samples/sort/basesort A sort algorithm developed using cellular automatas. It's behavior is similar to a bubble-sort.
Download model and sample
SORT (Optimized) ./samples/sort/optisort An optimized sort algorithm similar to the above, but here the space is no-wrapped.
Download model and sample
SUBSTANCE CLASSIFIER ./samples/sustancias A substance generator places differents amounts of substances into a queue. In order to classify and ship it properly, a classifier takes the substance and measures it's purity. Depending on the value measured, it's classified as First or Second class.
Download model and sample
SYNTHETIC BENCHMARK ./samples/synthetic A symthetic benchmarking tool developed to test the performance of DEVS models running on CD++.
Download model and sample
TENSION ./samples/tension A simple surface tension model. The particles tend to group according to the existing surface tension. Download model and sample
TRAFFIC ./samples/traffic A simple traffic model, with cars traveling on one-way northbound and eastbound. The former have priority when a possible collision occurs.
Download model and sample
TRANSD ./samples/transd/transd Measures the task throughput for a CPU, using a coupled model with different atomic models: a queue, a processor (the CPU), a transducer and a process generator.
Download model and sample
VANTS ./samples/vants Simulates the behavior of a group of ants. The ants eat the grass in two steps: first, the upper part, and later the root. If the ant doesn't find any grass, it keeps moving forward. If it does, it rotates 90° right trying to find more grass. It's a 3D cellular model. In 2 different slices it's possible to see: (1) the ants' behavior and state of the grass and (2) collisions and possibility of the grass to grow again.
VENDING ./samples/vending DEVS model representing a Vending Machine
Download model and sample
Download here the model runnable in the Real-Time CD++ version
WAVE ./samples/wave A simulation of wave propagation and infereference properties. Download model and sample
WATERSHED ./samples/watershed A simulation of a natural region that acts as the water-receiving area of a drainage basin. Accumulates water from different origins: rain, rivers and snow.
Download model and sample
WEBSERVER ./samples/webserver A simulation of a simple web server. It includes models for a client/server application. Download model and sample

 

There is a more detailed description of each model in the file README.TXT located in every subdirectory.

More information:

Any of the samples above includes:

NAME.MA: The model description file (Download an example here!)
NAME.EV (optional): The events file (Download an example here!)
NAME.DRW (optional): The file generated by the DRAWLOG tool, where the results can be seen in a matrix (only available with some cellular models) (Download an example here!)
NAME.VAL (optional): The file with the initial values for the model (Download an example here!)
RUN.BAT: The file used to run the simulation with the correct parameters (Windows platforms only, but it can be simple used under any other platform) (Download an example here!)
DRAW.BAT (optional): The file used to generate the .drw (Download an example here!)
DEMO.BAT (optional): The file used to achieve the results given by RUN.BAT and DRAW.BAT altogether (Download an example here!)

Any of the source code above includes:
NAME.CPP: The C++ source code file of the NAME model. This file is needed to recompile the simulator properly (Download an example here!)
NAME.H: The C++ header file of the NAME model. This file is needed to recompile the simulator properly (Download an example here!)