/** * Author: Anthony Sulistio * Date: March 2005 * $Id: README.txt,v 1.1 2005/03/29 02:22:46 anthony Exp $ */ Welcome to the example of how to use multiple regional GridInformationService (GIS) entities of a GridSim package. To compile the example source code: In Unix/Linux: javac -classpath $GRIDSIM/jars/gridsim.jar:. ExampleGIS.java In Windows: javac -classpath %GRIDSIM%\jars\gridsim.jar;. ExampleGIS.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:. ExampleGIS > file.txt In Windows: java -classpath %GRIDSIM%\jars\gridsim.jar;. ExampleGIS > 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" NOTE: This example uses Java Random class to select a resource and userentity to communicate to a regional GIS entity. Hence, when running this example many times, the values will be different. When running the example file, it will produce the following files: 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, "sim_trace" and "sim_report" file will be overwritten.