-
Notifications
You must be signed in to change notification settings - Fork 12
How to run the simulator
The parameters of the simulation can be configured via the Alea web configuration. Or it is possible to modify the parameters in the configuration.properties file in the Alea project. For the comfortable use of the Alea web configuration, it is necessary to set the environment variable ALEA_HOME. It must point to the root directory of the Alea project.
In order to properly use the configuration web page, please install the NetBeans IDE that includes a web container such as Apache Tomcat or GlassFish.
Open the project (i.e., the folder you have downloaded) in the NetBeans IDE and add gridsim.jar and simjava.jar into the libraries tab. Please do not use standard simjava.jar but the one that is provided with this simulator. If you use the standard simjava.jar the simulation will hang. The new version of simjava.jar is neccessary if you want to run multiple simulations by using only one run of your program (1 program contains, e.g., 6 different GridSim simulations). The original simjava.jar does not reset its internal variables after the end of a simulation, so the next run cannot start properly.
Alea web configuration can be accessed by running the appropriate project in NetBeans. On the configuration page, set the paramaters for your simulation and click the "OK" button to save the changes. The "Undo changes" button loads the configuration file again. The "Defaults" button loads the default configuration file.
If the ALEA_HOME environment variable is not set, the Alea web configuration works with a local copy of the configuration. In order to run the simulator with the changed parameters, you have to copy this file into the Alea project.
Now you can close the configuration page and return to the NetBeans IDE to run the simulator with the new settings.