next up previous
Next: Modeling and simulation with Up: A Discrete EVent system Previous: A Discrete EVent system

Building and Installing

The Adevs package is organized into the following directory structure:
adevs-x.y.z
           +->docs
           +->examples
           +->include
           +->src
           +->test
           +->util
Everything except the random number generators are implemented as template classes, and so are contained entirely in the header files that are located in the include directory. If you do not want to use the random number generators, its sufficient to include adevs.h in your source code, and to make sure that your compiler can find the include directory.

If you do want to use the random number generators, then enter the the src directory and run `make'. This will build the library libadevs.a that can be linked with your executable.

If you want to run the test suite, then first you need to build the library file and install Tcl (the test scripts need Tcl to run; if you can run `tclsh' then you already have a working copy of Tcl). After that, go the the test directory and run `make check'. This will automatically build and execute all of the test cases. If the test suite is run to completion, then everything works fine. If something goes wrong, then make will exit and report an error. Use 'make clean' to cleanup afterward.


next up previous
Next: Modeling and simulation with Up: A Discrete EVent system Previous: A Discrete EVent system
2009-03-16