Here you can download the complete N

Samples (from H to R)

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
HYBRID ./samples/hybrid A simple library to model hybrid systems (at present the library contains an Integrator and a Quantizer implemented as DEVS models). Download model and sample
LIFE ./samples/life/life The "life game" with the original rules proposed by Conway. The key rule is known as "B3/S23". A new cell is born when it has exactly 3 neighbors. An existing cell survives if it has 2 or 3 neighbors. Otherwise, it dies.
Download model and sample
LIFE.EXT ./samples/life/lifeext A variation of the "life game", with some external events.
Download model and sample
LINEAR ./samples/lineal A binary linear automata.
Download model and sample
MOSQUITO ./samples/mosquito In a three-dimensions environment there is one cell connected to a port where the atmospheric pressure is given. The pressure for the rest of the cells is measured as the average of its neighborhood. Using the pressure's value of a cell, it's possible to obtain its temperature. There are also mosquitoes in the same environment. A mosquito dies if the cell's temperature is below 16ºC.
Download model and sample
OPERATION ./samples/operation DEVS model representing scheduling of an Emergency Room in a hospital
Download model and sample
PARITY CHECKER ./samples/parity Computes the parity bit using the value of its neighbors.
Download model and sample
PINBALL . ./samples/pinball Simulates a pinball's activity. An integer (1..8) in each cell indicates the existence of a ball and its direction, or the lack of a ball in the cell (0). There is a different value (9) to represent a "brick" in the cell.
Download model and sample
PARTICLE COLLISION ./samples/particles Simulates the behavior of different gas fluids traveling in an environment. Its integer part represents the direction (1..4) and its real part represents its purity. The collision of two particles modifies their direction and purity degree.
Download model and sample
PETRI ./samples/petri A library built on top of DEVS enabling modelling and simulation of Petri Nets. It includes an interface with a graphical tool for defining the Petri Nets.
Download model and sample
PLANTS ./samples/plants A model of plant population in fens
Download model and sample
PURSUER ./samples/trencito/trencito Simulates the behavior of a group of people following a lead er. People is hidden, and when they are found by the leader, they follow him for ming a line.
Download model and sample
QUEUE ./samples/queue A simple queueing system.
Download model and sample
RADAR ./samples/radar This model represents a simple radar system used to control air traffic in airports.
Download model and sample
REPAIR ROBOTS ./samples/robots This model represent a set of robots scanning a field, looking for damaged areas, and fixing the damage.
Download model and sample
RESIN ./samples/resin DEVS model representing a manufacturing tank for Resin products
Download model and sample
RICE ./samples/ricefield This model is to simulate the pollution process from a chemical factory to a rice field through the water supply. The chemical factory locates at upper stream of the ditch. The polluted water is drained into the ditch and used to irrigate the farmland at lower stream. Resided in one cell of the soil, each plant in the field will be infected by the polluted water eventually. According to the pollution degree, the plants are catalyzed into 3 groups: healthy, infected or deadly. .
Download model and sample
ROBOTS ./samples/robots This model simulates an industrial plant with several semi-autonomous robots carrying material in a specified path. There are 5 possible paths in the sample. It's possible that some of these paths includes crossing with other robots, and therefore a collision analysis must be analyzed.
Download model and sample
ROUTING ./samples/routing This is an example of a router device for computer networks. A LAN with fixed topology is defined, and different routing techniques are implemented. 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!)