
/**
 * Author: Anthony Sulistio
 * Date: April 2003
 * $Id: README.txt,v 1.3 2003/12/14 06:36:14 anthony Exp $
 */

Welcome to the 6th Example of how to use GridSim package.
To compile the example source code:
    In Unix/Linux: javac -classpath $GRIDSIM/jars/gridsim.jar:. Example6.java
    In Windows:    javac -classpath %GRIDSIM%\jars\gridsim.jar;. Example6.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:. Example6 > output.txt

    In Windows:
        java -classpath %GRIDSIM%\jars\gridsim.jar;. Example6 > output.txt


The above command means run the program and output the results into a file
named "output.txt" rather than into screen or standard output.
NOTE: When you open "output.txt" file, it tells you that this example creates
      3 grid users and 3 grid resources. Each user has different number of
      Gridlets everytime you run the program (depending on the GridSimRandom
      static object from GridSim class).

      Then each user allocates its Gridlets randomly to different grid
      resources. A grid resource will modify the status of Gridlets into
      "Gridlet.SUCCESS". This example ends by printing the status of all
      Gridlets from grid users.


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 class during GridSim.init() to create
        GridStatistics object for statistical purposes. In this example, we
        recorded the event of receiving ResourceCharacteristics object, as well
        as sending/receiving Gridlets.
        For more detailed explanations, please read this file.

    tracefile -> created by SimJava 1.2, now being replaced by sim_trace

    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" and "sim_trace" file.

