next up previous
Next: Bibliography Up: Appendix: Downloading and Installing Previous: Installing and Running the

Installing and Running the C++ version

Once downloaded, follow these instructions to get BRITE up and running.

  1. Unzip the downloaded file:

    $ gunzip BRITE_CPP.tar.gz
    $ tar xvf BRITE_CPP.tar
    

  2. Directory structure of C++ version

    The contents of the directory where the C++ version is untarred is shown in Table 8.


    Table 8: Contents of C++ version's directory
    Directory/File Contents
    Models/ Source files for all supported models
    Util.h, Util.cc Utility functions
    Topology.h, Topology.cc Topology class
    Graph.h, Graph.cc Graph class
    Node.h, Node.cc Node class (graph)
    Edge.h, Edge.cc Edge class (graph)
    Parse.h, Parse.cc Parsing class
    BriteMain.cc Entry point
    conf_files/ Sample configuration files
    Makefile Makefile


  3. Change to the directory created when the C++ distribution file is untarred. Assuming it is called BRITE, we change to that directory and compile:

    $ cd BRITE
    $ make c++
    

  4. Running BRITE from the GUI (Java is required since the GUI is implemented in Java):

     
    $ startGUI
    

  5. Running BRITE from the command line (No Java required):

    $ cd C++
    $ brite <config_file.conf>  <output_file> <seed_file>
    

The C++ version uses a seed file to seed all the random variables used during the generation process. The specific seed file to be used must be specified as an argument to BRITE. Every time that BRITE runs, it saves the current seed file into a backup file named last_seed_file. Having the seed file saved, allows the user to reproduce the behavior of the generator on the last run, by copying last_seed_file to seed_file and repeating the execution with the same configuration file.


next up previous
Next: Bibliography Up: Appendix: Downloading and Installing Previous: Installing and Running the
Alberto Medina 2001-04-12