Network Model: Top Level
At the top-level, Router and Node modules are instantiated and connected to each other.
The simulation is then run. Print control All modules' print-out is controlled from the command line and print-control text files (one for each module). Configuration All modules' configuration is set via a configuration file (one for all modules). |
|
Running
Executing the top-level without any command line arguments, gets each module to print its own command line options.
To run the model, call it with '-run' command line argument.
To have an individual module print-out all its debug messages, add '-<module>_print everything', to the command line.
E.g., for Router, do:
-router_print everything
Running the model with the following command line,
./build/debug/top.exe -run -node_print_file print_ctrl.txt -router_print_file print_ctrl.txt -config_file config.txt
will produce the output as seen in run.log .
Executing the top-level without any command line arguments, gets each module to print its own command line options.
To run the model, call it with '-run' command line argument.
To have an individual module print-out all its debug messages, add '-<module>_print everything', to the command line.
E.g., for Router, do:
-router_print everything
Running the model with the following command line,
./build/debug/top.exe -run -node_print_file print_ctrl.txt -router_print_file print_ctrl.txt -config_file config.txt
will produce the output as seen in run.log .