Changes to the previous release
- Now Metasim can be compiled on the latest GNU gcc compiler. We
tested until gcc 3.2, it should work also on gcc 3.3, let me know if
you find problems.
The compilation procedure is now different. Here are the instructions:
First of all, set the environment variable
METASIM_STAND_ALONE=1. Under bash, you can do it with command
You can also edit the makefile and add the above line as first line.
Then, enter the metasim directory and type
This should produce the file config.mk. Finally, you can type make,
and the library is compiled! This same instructions are in the README.txt file.
- Add a simple timer class.
The library has been succesfully compiled and tested using the gcc
3.2 compiler under Linux and the same compiler under the CygWin
environment for Windows 9x/NT/2000/ XP. We would like to have some
feedback on the use of other compilers and environment.
Compiling the library
What you need is:
- the tar program to unpack the distrib file;
- the GNU C++ compiler (version 3.2)
- (optional) the doxygen package to compile the documentation
If you use windows, we reccomend you to download the CygWin
After unzipping the file, you will get a directory
To check that everything works ok, go to the directory metasim/tests/
and run make. An executable file test will be produced: running
test, a set of tests will be executed. You should get the following
Calling the random test.... ok!
Calling the entity test.... ok!
If this is the case, then everything is ok. Otherwise, please contact
us with a detailed description of the problem!
To get a first introduction to the MetaSim library, you can compile
and run the examples. By now there are two examples on a M/M/1 queue
and on a Markov chain. Simply go in the directory
metasim/examples/queue, type make and run the queue executable
file. There is also a brief explaination of how the example works in
the README file, and the queue.hpp file is filled with comments.
Author: Giuseppe Lipari