/** * Author: Anthony Sulistio * Date: December 2003 * $Id: README.txt,v 1.3 2004/11/01 02:08:32 anthony Exp $ */ Welcome to the 8th Example of how to use GridSim package. To compile the example source code: In Unix/Linux: javac -classpath $GRIDSIM/jars/gridsim.jar:. Example8.java In Windows: javac -classpath %GRIDSIM%\jars\gridsim.jar;. Example8.java where $GRIDSIM or %GRIDSIM% is the location of the gridsimtoolkit package. To run the class file: In Unix/Linux: java -classpath $GRIDSIM/jars/gridsim.jar:. Example8 > file.txt In Windows: java -classpath %GRIDSIM%\jars\gridsim.jar;. Example8 > file.txt The above command means run the program and output the results into a file named "file.txt" rather than into screen or standard output. To prevent from overwriting an existing file, I renamed "file.txt" into "output.txt" When running the example file, it will produce the following files: stat.txt -> created by GridSim 2.1, now being replaced by GridSim_stat.txt GridSim_stat.txt -> created by the GridSim verson 2.2 onwards during GridSim.init() to create GridStatistics object for statistical purposes. In this example, we ignore statistical data, hence this file is empty. tracefile -> created by SimJava 1.2, now being replaced by sim_trace NOTE: GridSim 2.1 uses SimJava 1.2 package GridSim 2.2 onwards use SimJava2 package sim_trace -> created by the SimJava2 package (lower-level) to trace every events (performed by SimJava and GridSim) during the simulation. We don't need to worry about this file. Not to important for our example. sim_report -> created by the SimJava2 package (lower-level) of GridSim. This is a simulation report that contains general information about running this experiment. We don't need to worry about this file. Not to important for our example. NOTE: When you run the program multiple times, new data generated from simulation will be appended at the end of "GridSim_stat.txt". However, "sim_trace" and "sim_report" file will be overwritten.