| 
      
      
      From: <mar...@us...> - 2009-05-19 11:25:08
      
     | 
| Revision: 261
          http://gridsim.svn.sourceforge.net/gridsim/?rev=261&view=rev
Author:   marcos_dias
Date:     2009-05-19 11:24:54 +0000 (Tue, 19 May 2009)
Log Message:
-----------
I am reorganising the examples in packages. The examples will be placed in the repository with the next commit.
Removed Paths:
-------------
    trunk/examples/Auction/AuctionEx01/
    trunk/examples/Auction/AuctionEx02/
    trunk/examples/Auction/AuctionEx03/
    trunk/examples/DataGrid/example1/
    trunk/examples/DataGrid/example2/
    trunk/examples/DataGrid/example3/
    trunk/examples/DataGrid/example4/DataGridSim.java
    trunk/examples/DataGrid/example4/FilesReader.java
    trunk/examples/DataGrid/example4/ParameterReader.java
    trunk/examples/DataGrid/example4/README.txt
    trunk/examples/DataGrid/example4/ResourceReader.java
    trunk/examples/DataGrid/example4/SimUser.java
    trunk/examples/DataGrid/example4/UserReader.java
    trunk/examples/DataGrid/example4/files.txt
    trunk/examples/DataGrid/example4/network.txt
    trunk/examples/DataGrid/example4/output.txt
    trunk/examples/DataGrid/example4/parameters.txt
    trunk/examples/DataGrid/example4/resources.txt
    trunk/examples/DataGrid/example4/users.txt
    trunk/examples/DataGrid/tutorial/Simulation.html
    trunk/examples/DataGrid/tutorial/connectEntities.html
    trunk/examples/DataGrid/tutorial/createNetwork.html
    trunk/examples/DataGrid/tutorial/createTopLevelRC.html
    trunk/examples/DataGrid/tutorial/createUsers.html
    trunk/examples/DataGrid/tutorial/creatingResources.html
    trunk/examples/DataGrid/tutorial/design_architecture.html
    trunk/examples/DataGrid/tutorial/getting_started.html
    trunk/examples/DataGrid/tutorial/img/
    trunk/examples/DataGrid/tutorial/index.html
    trunk/examples/DataGrid/tutorial/initialization.html
    trunk/examples/DataGrid/tutorial/writingRC.html
    trunk/examples/DataGrid/tutorial/writingRM.html
    trunk/examples/Example01/
    trunk/examples/Example02/
    trunk/examples/Example03/
    trunk/examples/Example04/
    trunk/examples/Example05/
    trunk/examples/Example06/
    trunk/examples/Example07/
    trunk/examples/Example08/
    trunk/examples/Example09/
    trunk/examples/Example10/
    trunk/examples/Network/FiniteBuffer01/
    trunk/examples/Network/Flow/Example01/
    trunk/examples/Network/Flow/Example02/
    trunk/examples/Network/NetEx01/
    trunk/examples/Network/NetEx02/
    trunk/examples/Network/NetEx03/
    trunk/examples/Network/RateExample/
    trunk/examples/Network/SCFQExample/
    trunk/examples/RegionalGIS/
    trunk/examples/ResFailure/ResFailureEx01/
    trunk/examples/ResFailure/ResFailureEx02/
    trunk/examples/ResFailure/ResFailureEx03/
    trunk/examples/WorkloadTrace/TraceEx01/
    trunk/examples/WorkloadTrace/TraceEx02/
    trunk/examples/WorkloadTrace/TraceEx03/
Deleted: trunk/examples/DataGrid/example4/DataGridSim.java
===================================================================
--- trunk/examples/DataGrid/example4/DataGridSim.java	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/DataGridSim.java	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,103 +0,0 @@
-/*
- * Title:        GridSim Toolkit
- * Description:  GridSim (Grid Simulation) Toolkit for Modeling and Simulation
- *               of Parallel and Distributed Systems such as Clusters and Grids
- * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
- */
-
-import eduni.simjava.Sim_system;
-import gridsim.*;
-import gridsim.datagrid.index.*;
-import gridsim.net.FIFOScheduler;
-import gridsim.net.Link;
-import gridsim.net.Router;
-import gridsim.net.SimpleLink;
-import gridsim.util.NetworkReader;
-import java.util.Calendar;
-import java.util.LinkedList;
-import gridsim.net.flow.*;  // To use the new flow network package - GridSim 4.2
-
-/**
- * This is the main class of the simulation package. It reads all the parameters
- * from a file, constructs the simulation defined in the configuration files,
- * and runs the simulation.
- * @author Uros Cibej and Anthony Sulistio
- */
-public class DataGridSim {
-
-    public static void main(String[] args) {
-        System.out.println("Starting data grid simulation ...");
-
-        try {
-            if (args.length != 1) {
-                System.out.println("Usage: java Main parameter_file");
-                return;
-            }
-
-            //read parameters
-            ParameterReader.read(args[0]);
-
-            int num_user = ParameterReader.numUsers; // number of grid users
-            Calendar calendar = Calendar.getInstance();
-            boolean trace_flag = false; // means trace GridSim events
-            boolean gisFlag = false; // means using DataGIS instead
-
-            // Initialize the GridSim package
-            System.out.println("Initializing GridSim package");
-            GridSim.init(num_user, calendar, trace_flag, gisFlag);
-
-            // NOTE: uncomment this if you want to use the new Flow extension
-            //GridSim.initNetworkType(GridSimTags.NET_FLOW_LEVEL);
-
-            // set the GIS into DataGIS that handles specifically for data grid
-            // scenarios
-            DataGIS gis = new DataGIS();
-            GridSim.setGIS(gis);
-
-            //some default values
-            double baud_rate = 100000000; // 100MB/sec
-            double propDelay = 10; // propagation delay in millisecond
-            int mtu = 1500; // max. transmission unit in bytes
-
-            //read available files
-            LinkedList files = FilesReader.read(ParameterReader.filesFilename);
-
-            //-------------------------------------------
-            //read topology
-            LinkedList routerList = NetworkReader.createFIFO(ParameterReader.networkFilename);
-
-            //attach central RC entity to one of the routers
-            //Create a central RC
-            Link l = new SimpleLink("rc_link", baud_rate, propDelay, mtu);
-
-            // NOTE: uncomment this if you want to use the new Flow extension
-            //LinkedList routerList = NetworkReader.createFlow(ParameterReader.networkFilename);
-            //Link l = new FlowLink("rc_link", baud_rate, propDelay, mtu);
-            //-------------------------------------------
-
-            TopRegionalRC rc = new TopRegionalRC(l);
-
-            //connect the TopRC to a router specified in the parameters file
-            Router r1 = NetworkReader.getRouter(ParameterReader.topRCrouter,
-                    routerList);
-            FIFOScheduler gisSched = new FIFOScheduler();
-            r1.attachHost(rc, gisSched); // attach RC
-
-            //create resources
-            LinkedList resList = ResourceReader.read(ParameterReader.resourceFilename,
-                    routerList, files);
-
-            //create users
-            LinkedList users = UserReader.read(ParameterReader.usersFilename,
-                    routerList, resList);
-
-            GridSim.startGridSimulation();
-            System.out.println("\nFinish data grid simulation ...");
-
-        } catch (Exception e) {
-            e.printStackTrace();
-            System.out.println("Unwanted errors happen");
-        }
-    }
-
-}
Deleted: trunk/examples/DataGrid/example4/FilesReader.java
===================================================================
--- trunk/examples/DataGrid/example4/FilesReader.java	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/FilesReader.java	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,60 +0,0 @@
-/*
- * Title:        GridSim Toolkit
- * Description:  GridSim (Grid Simulation) Toolkit for Modeling and Simulation
- *               of Parallel and Distributed Systems such as Clusters and Grids
- * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
- */
-
-import gridsim.datagrid.File;
-import java.io.*;
-import java.util.*;
-
-
-/**
- * Creates a list of master files from a given file
- * @author Uros Cibej
- */
-public class FilesReader {
-
-    public static LinkedList read(String filename) {
-        LinkedList files = null;
-
-        try {
-            FileReader fRead = new FileReader(filename);
-            BufferedReader b = new BufferedReader(fRead);
-            files = createFiles(b);
-        } catch (Exception exp) {
-            System.out.println("FilesReader:-File not found");
-            System.exit(-1);
-        }
-
-        return files;
-    }
-
-    private static LinkedList createFiles(BufferedReader buf)
-        throws Exception {
-        String line;
-        String name;
-        String size;
-        StringTokenizer str;
-        File f;
-        LinkedList files = new LinkedList();
-
-        while ((line = buf.readLine()) != null) {
-            str = new StringTokenizer(line);
-
-            // parse the name and size of file
-            name = str.nextToken();
-
-            if (!name.startsWith("#")) {
-                size = str.nextToken();
-
-                // size is given in Mb
-                f = new File(name, Integer.parseInt(size));
-                files.add(f);
-            }
-        }
-
-        return files;
-    }
-}
Deleted: trunk/examples/DataGrid/example4/ParameterReader.java
===================================================================
--- trunk/examples/DataGrid/example4/ParameterReader.java	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/ParameterReader.java	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,68 +0,0 @@
-/*
- * Title:        GridSim Toolkit
- * Description:  GridSim (Grid Simulation) Toolkit for Modeling and Simulation
- *               of Parallel and Distributed Systems such as Clusters and Grids
- * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
- */
-
-import java.io.BufferedReader;
-import java.io.FileReader;
-import java.util.StringTokenizer;
-
-
-/**
- * Reads the parameter file and pass each line to its respective reader.
- * @author Uros Cibej and Anthony Sulistio
- */
-public class ParameterReader {
-
-    public static String filesFilename;
-    public static String networkFilename;
-    public static String resourceFilename;
-    public static String usersFilename;
-    public static String catalogueFilename;
-    public static int numUsers;
-    public static String topRCrouter;
-    public static boolean useLocalRC = true;
-
-    public static void read(String filename) {
-        try {
-            FileReader fRead = new FileReader(filename);
-            BufferedReader buf = new BufferedReader(fRead);
-            String line;
-            String name;
-            String value;
-            StringTokenizer str;
-
-            while ((line = buf.readLine()) != null) {
-                if (!line.startsWith("#")) { //ignore comments
-                    str = new StringTokenizer(line);
-
-                    //parse the name and size of file
-                    name = str.nextToken("=");
-                    value = str.nextToken();
-
-                    if (name.equals("files")) {
-                        filesFilename = value;
-                    } else if (name.equals("network")) {
-                        networkFilename = value;
-                    } else if (name.equals("resources")) {
-                        resourceFilename = value;
-                    } else if (name.equals("users")) {
-                        usersFilename = value;
-                    } else if (name.equals("numUsers")) {
-                        numUsers = Integer.parseInt(value);
-                    } else if (name.equals("topRCrouter")) {
-                        topRCrouter = value;
-                    } else if (name.equals("useLocalRC")) {
-                        useLocalRC = Boolean.getBoolean(value);
-                    } else {
-                        System.out.println("Unknown parameter " + name);
-                    }
-                }
-            }
-        } catch (Exception exp) {
-            System.out.println("File not found");
-        }
-    }
-}
Deleted: trunk/examples/DataGrid/example4/README.txt
===================================================================
--- trunk/examples/DataGrid/example4/README.txt	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/README.txt	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,52 +0,0 @@
-
-/**
- * Author: Uros Cibej and Anthony Sulistio
- * Date: March 2006
- */
-
-This is an example of the simulation package of GridSim.datagrid.
-It demonstrates how a simulation can easily be built using
-a set of configuration files.
-
-A network with 5 routers is described in network.txt
-7 files are defined in files.txt
-3 resources in resources.txt and
-2 users in users.txt.
-
-Each of these two users must execute a small set of tasks.
-A more detailed description of this package can be found in the tutorial.
-
-To compile the example source code:
-    In Unix/Linux: javac -classpath $GRIDSIM/jars/gridsim.jar:. DataGridSim.java
-    In Windows:    javac -classpath %GRIDSIM%\jars\gridsim.jar;. DataGridSim.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:. DataGridSim parameters.txt > file.txt
-    In Windows:    java -classpath %GRIDSIM%\jars\gridsim.jar;. DataGridSim parameters.txt > 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: When you open "output.txt" file, it tells you that grid user entities
-      sending Gridlets to a selected grid resource.
-
-
-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: sim_trace and sim_report file will be overwritten if running
-      a new experiment.
Deleted: trunk/examples/DataGrid/example4/ResourceReader.java
===================================================================
--- trunk/examples/DataGrid/example4/ResourceReader.java	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/ResourceReader.java	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,318 +0,0 @@
-/*
- * Title:        GridSim Toolkit
- * Description:  GridSim (Grid Simulation) Toolkit for Modeling and Simulation
- *               of Parallel and Distributed Systems such as Clusters and Grids
- * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
- */
-
-import gridsim.*;
-import gridsim.datagrid.DataGridResource;
-import gridsim.datagrid.File;
-import gridsim.datagrid.SimpleReplicaManager;
-import gridsim.datagrid.index.TopRegionalRC;
-import gridsim.datagrid.storage.HarddriveStorage;
-import gridsim.datagrid.storage.Storage;
-import gridsim.net.*;
-import gridsim.util.NetworkReader;
-
-import java.io.BufferedReader;
-import java.io.FileReader;
-import java.io.IOException;
-
-import java.util.Calendar;
-import java.util.LinkedList;
-import java.util.StringTokenizer;
-
-
-/**
- * Creates one or more DataGrid resources with a default set of parameters,
- * such as num of CPUs, CPU rating, etc.
- * @author Uros Cibej and Anthony Sulistio
- */
-public class ResourceReader {
-
-    /**
-     * Reads a description of resources from a file and creates the
-     * DataGridResources.
-     *
-     * @param filename
-     *            the name of the file where the resources are specified
-     * @param routers
-     *            the list of routers which have already been created
-     * @param files
-     *            the list of files which have already been created
-     * @return the list of resources which have been read from the file
-     * @throws Exception
-     */
-    public static LinkedList read(String filename, LinkedList routers,
-        LinkedList files) throws Exception {
-        LinkedList resourceList = null;
-
-        try {
-            FileReader fRead = new FileReader(filename);
-            BufferedReader b = new BufferedReader(fRead);
-            resourceList = createResources(b, routers, files);
-        } catch (IOException exp) {
-            System.out.println("File not found");
-        }
-
-        return resourceList;
-    }
-
-    /**
-     * Create a set of DataGridResources, described in a files.
-     *
-     * @param buf
-     *            buffer with the description of resources
-     * @param routerList
-     *            the list of available routers
-     * @param files
-     *            the list of available files
-     * @return a list of created DataGridResources
-     * @throws Exception
-     */
-    private static LinkedList createResources(BufferedReader buf,
-        LinkedList routerList, LinkedList files) throws Exception {
-        String line;
-        String routerName;
-        String resourceName;
-        String regionalRC;
-        double storage_size;
-        double bandwidth;
-
-        DataGridResource r1;
-        DataGridResource r2;
-        Router tempRouter;
-        Link tempLink;
-        LinkedList resourceList = new LinkedList();
-        StringTokenizer str;
-
-        while ((line = buf.readLine()) != null) {
-            str = new StringTokenizer(line);
-            resourceName = str.nextToken();
-
-            if (!(resourceName.startsWith("#"))) {
-                storage_size = Double.parseDouble(str.nextToken());
-                bandwidth = Double.parseDouble(str.nextToken());
-                routerName = str.nextToken(); // read the router name
-
-                if (ParameterReader.useLocalRC) {
-                    regionalRC = null;
-                } else {
-                    regionalRC = str.nextToken();
-                }
-
-                r1 = createStandardResource(resourceName, storage_size,
-                        bandwidth, regionalRC);
-
-                // attach the resource to a router
-                tempRouter = NetworkReader.getRouter(routerName, routerList);
-
-                if (tempRouter != null) {
-                     tempRouter.attachHost(r1, new FIFOScheduler(r1.get_name()
-                     + "_scheduler"));
-
-                } else {
-                    System.out.println(
-                        "ERROR - Resource reader- non existing router");
-                }
-
-                // read and add the files to the resource
-                while (str.hasMoreTokens()) {
-                    String filename = str.nextToken();
-                    System.out.println("Adding file " + filename);
-
-                    File tempFile = findFile(filename, files);
-                    r1.addFile(tempFile);
-                }
-
-                // add resource to the list
-                resourceList.add(r1);
-            }
-        }
-
-        return resourceList;
-    }
-
-    /**
-     * Find a file with filename in a List
-     *
-     * @param filename
-     *            the name of the file
-     * @param files
-     *            the list of files
-     * @return the searched File or null if not found
-     */
-    private static File findFile(String filename, LinkedList files) {
-        File temp;
-        int i = 1;
-        temp = (File) files.get(0);
-
-        while ((i < files.size()) && (!filename.equals(temp.getName()))) {
-            temp = (File) files.get(i);
-            i++;
-        }
-
-        if (temp.getName().equals(filename)) {
-            return temp;
-        } else {
-            return null;
-        }
-    }
-
-    /**
-     * Creates one Grid resource. A Grid resource contains one or more Machines.
-     * Similarly, a Machine contains one or more PEs (Processing Elements or
-     * CPUs).
-     * <p>
-     * In this simple example, we are simulating one Grid resource with three
-     * Machines that contains one or more PEs.
-     *
-     * @param name
-     *            a Grid Resource name
-     * @return a GridResource object
-     */
-    private static DataGridResource createStandardResource(String name,
-        double storage_size, double bandwidth, String regionalRC) {
-        System.out.println();
-        System.out.println("Starting to create one Grid resource with " +
-            "3 Machines");
-
-        // Here are the steps needed to create a Grid resource:
-        // 1. We need to create an object of MachineList to store one or more
-        // Machines
-        MachineList mList = new MachineList();
-
-        // System.out.println("Creates a Machine list");
-        // 2. A Machine contains one or more PEs or CPUs. Therefore, should
-        // create an object of PEList to store these PEs before creating
-        // a Machine.
-        PEList peList1 = new PEList();
-
-        // System.out.println("Creates a PE list for the 1st Machine");
-        // 3. Create PEs and add these into an object of PEList.
-        // In this example, we are using a resource from
-        // hpc420.hpcc.jp, AIST, Tokyo, Japan
-        // Note: these data are taken the from GridSim paper, page 25.
-        // In this example, all PEs has the same MIPS (Millions
-        // Instruction Per Second) Rating for a Machine.
-        peList1.add(new PE(0, 377)); // need to store PE id and MIPS Rating
-        peList1.add(new PE(1, 377));
-        peList1.add(new PE(2, 377));
-        peList1.add(new PE(3, 377));
-
-        // System.out.println("Creates 4 PEs with same MIPS Rating and put
-        // them"+
-        // " into the PE list");
-        // 4. Create one Machine with its id and list of PEs or CPUs
-        mList.add(new Machine(0, peList1)); // First Machine
-
-        // System.out.println("Creates the 1st Machine that has 4 PEs and " +
-        // "stores it into the Machine list");
-        // System.out.println();
-        // 5. Repeat the process from 2 if we want to create more Machines
-        // In this example, the AIST in Japan has 3 Machines with same
-        // MIPS Rating but different PEs.
-        // NOTE: if you only want to create one Machine for one Grid resource,
-        // then you could skip this step.
-        PEList peList2 = new PEList();
-
-        // System.out.println("Creates a PE list for the 2nd Machine");
-        peList2.add(new PE(0, 377));
-        peList2.add(new PE(1, 377));
-        peList2.add(new PE(2, 377));
-        peList2.add(new PE(3, 377));
-
-        // System.out.println("Creates 4 PEs with same MIPS Rating and put
-        // them"+
-        // " into the PE list");
-        mList.add(new Machine(1, peList2)); // Second Machine
-
-        // System.out.println("Creates the 2nd Machine that has 4 PEs and " +
-        // "stores it into the Machine list");
-        // System.out.println();
-        PEList peList3 = new PEList();
-
-        // System.out.println("Creates a PE list for the 3rd Machine");
-        peList3.add(new PE(0, 377));
-        peList3.add(new PE(1, 377));
-
-        // System.out.println("Creates 2 PEs with same MIPS Rating and put
-        // them"+
-        // " into the PE list");
-        mList.add(new Machine(2, peList3)); // Third Machine
-
-        // System.out.println("Creates the 3rd Machine that has 2 PEs and " +
-        // "stores it into the Machine list");
-        // System.out.println();
-        // 6. Create a ResourceCharacteristics object that stores the
-        // properties of a Grid resource: architecture, OS, list of
-        // Machines, allocation policy: time- or space-shared, time zone
-        // and its price (G$/PE time unit).
-        String arch = "Sun Ultra"; // system architecture
-        String os = "Solaris"; // operating system
-        double time_zone = 9.0; // time zone this resource located
-        double cost = 3.0; // the cost of using this resource
-
-        ResourceCharacteristics resConfig = new ResourceCharacteristics(arch,
-                os, mList, ResourceCharacteristics.TIME_SHARED, time_zone, cost);
-
-        // System.out.println("Creates the properties of a Grid resource and " +
-        // "stores the Machine list");
-        // 7. Finally, we need to create a GridResource object.
-        long seed = (11L * 13 * 17 * 19 * 23) + 1;
-        double peakLoad = 0.0; // the resource load during peak hour
-        double offPeakLoad = 0.0; // the resource load during off-peak hr
-        double holidayLoad = 0.0; // the resource load during holiday
-
-        // incorporates weekends so the grid resource is on 7 days a week
-        LinkedList Weekends = new LinkedList();
-        Weekends.add(new Integer(Calendar.SATURDAY));
-        Weekends.add(new Integer(Calendar.SUNDAY));
-
-        // incorporates holidays. However, no holidays are set in this example
-        LinkedList Holidays = new LinkedList();
-        DataGridResource gridRes = null;
-
-        try {
-            // create the replica manager
-            SimpleReplicaManager rm = new SimpleReplicaManager("RM_" + name,
-                    name);
-
-            // create the resource calendar
-            ResourceCalendar cal = new ResourceCalendar(time_zone, peakLoad,
-                    offPeakLoad, holidayLoad, Weekends, Holidays, seed);
-
-            // create a storage, which demands the storage size in MB, but the
-            // description we get is in GB. (We need to multiply by 1000 to get
-            // MB)
-            Storage storage = new HarddriveStorage("storage",
-                    storage_size * 1000);
-
-            // create a grid resource, connected to a router. The bandwith is
-            // defined as bit/s, but we
-            // get the bandwidth ad GB/s (multiply by 10^9)
-            gridRes = new DataGridResource(name,
-                    new SimpleLink(name + "_link", bandwidth * 1000000000, 10,
-                        1500), resConfig, cal, rm);
-            gridRes.addStorage(storage);
-
-            // create a local replica catalogue if needed
-            // else set the regional RC for this resource
-            if (ParameterReader.useLocalRC) {
-                gridRes.createLocalRC();
-                gridRes.setHigherReplicaCatalogue(TopRegionalRC.DEFAULT_NAME);
-            } else {
-                gridRes.setReplicaCatalogue(regionalRC);
-            }
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-
-        System.out.println("Finally, creates one Grid resource (name: " + name +
-            " - id: " + gridRes.get_id() + ")");
-        System.out.println();
-
-        return gridRes;
-    }
-}
Deleted: trunk/examples/DataGrid/example4/SimUser.java
===================================================================
--- trunk/examples/DataGrid/example4/SimUser.java	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/SimUser.java	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,155 +0,0 @@
-/*
- * Title:        GridSim Toolkit
- * Description:  GridSim (Grid Simulation) Toolkit for Modeling and Simulation
- *               of Parallel and Distributed Systems such as Clusters and Grids
- * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
- */
-
-import gridsim.GridSim;
-import gridsim.datagrid.DataGridUser;
-import gridsim.datagrid.File;
-import gridsim.datagrid.FileAttribute;
-import gridsim.net.SimpleLink;
-import java.util.ArrayList;
-import java.util.Iterator;
-import gridsim.net.flow.*;  // To use the new flow network package - GridSim 4.2
-
-/**
- * This class defines a user which executes a set of commands.
- * @author Uros Cibej and Anthony Sulistio
- */
-class SimUser extends DataGridUser {
-    private String name_;
-    private ArrayList tasks;
-
-    // constructor
-    SimUser(String name, double baud_rate, double delay, int MTU) throws Exception {
-
-        super(name, new SimpleLink(name + "_link", baud_rate, delay, MTU));
-
-        // NOTE: uncomment this if you want to use the new Flow extension
-        //super(name, new FlowLink(name + "_link", baud_rate, delay, MTU));
-
-        this.name_ = name;
-        this.tasks = new ArrayList();
-
-        // Gets an ID for this entity
-        System.out.println("Creating a grid user entity with name = " + name);
-    }
-
-    /**
-     * The core method that handles communications among GridSim entities.
-     */
-    public void body() {
-
-        //wait for all the entities to register
-        super.gridSimHold(100.0);
-
-        //execute all tasks
-        Iterator it = tasks.iterator();
-        while (it.hasNext()) {
-            this.executeTask((Object[]) it.next());
-        }
-
-        ////////////////////////////////////////////////////////
-        // shut down I/O ports
-        shutdownUserEntity();
-        terminateIOEntities();
-        System.out.println(this.name_ + ":%%%% Exiting body() at time " +
-            GridSim.clock());
-    }
-
-    /**
-     * Execute a user task, which can be one of the following:<br>
-     * Get a file<br>
-     * Replicate a file<br>
-     * Delete a file<br>
-     * Or get the attribute of a file
-     * @param task the task to be executed
-     */
-    private void executeTask(Object[] task) {
-        int taskID = ((Integer) task[0]).intValue();
-        File f = null;
-        int location = -1;
-
-        switch (taskID) {
-        case 0: //getFile
-
-            String name = getFullFilename((String) task[1]);
-            if (name != null) {
-                location = this.getReplicaLocation(name);
-
-                if (location != -1) {
-                    f = this.getFile(name, location);
-                    System.out.println(this.get_name() +
-                        ":- Transfer of file " + name + " succesful");
-                }
-            } else {
-                System.out.println("No such file: " + (String) task[1]);
-            }
-
-            break;
-
-        case 1: //replicateFile
-            name = getFullFilename((String) task[1]);
-            String resourceName = (String) task[2];
-
-            if (name != null) {
-                location = this.getReplicaLocation(name);
-            } else {
-                location = -1;
-            }
-
-            if (location != -1) {
-                f = this.getFile(name, location);
-
-                if (f != null) {
-                    replicateFile(f, GridSim.getEntityId(resourceName));
-                }
-            }
-
-            break;
-
-        case 2: //deleteReplica
-            name = getFullFilename((String) task[1]);
-            resourceName = (String) task[2];
-
-            if (name != null) {
-                this.deleteFile(name, GridSim.getEntityId(resourceName));
-            } else {
-                System.out.println("Could not delete " + (String) task[1]);
-            }
-
-            break;
-
-        case 3: //getAttribute
-            name = getFullFilename((String) task[1]);
-
-            if (name != null) {
-                FileAttribute attr = this.getFileAttribute(name);
-                System.out.println(this.get_name() +
-                    ":- Received attribute for file " + attr.getName());
-            } else {
-                System.out.println("Could not retrieve attribute for " +
-                    (String) task[1]);
-            }
-
-            break;
-
-        default:
-            System.out.println("Not a valid task for the user");
-            break;
-        }
-    }
-
-    /**
-     * Setter method for the array of tasks, which need to be executed.
-     *
-     * @param l the array of tasks which the user has to execute during
-     *          the simulation
-     */
-    public void setTasks(ArrayList l) {
-        tasks = l;
-    }
-
-} // end class
Deleted: trunk/examples/DataGrid/example4/UserReader.java
===================================================================
--- trunk/examples/DataGrid/example4/UserReader.java	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/UserReader.java	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,129 +0,0 @@
-/*
- * Title:        GridSim Toolkit
- * Description:  GridSim (Grid Simulation) Toolkit for Modeling and Simulation
- *               of Parallel and Distributed Systems such as Clusters and Grids
- * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
- */
-
-import gridsim.net.*;
-import gridsim.util.NetworkReader;
-import java.io.BufferedReader;
-import java.io.FileReader;
-import java.util.ArrayList;
-import java.util.LinkedList;
-import java.util.StringTokenizer;
-
-/**
- * Creates a list of users from a given file
- * @author Uros Cibej and Anthony Sulistio
- */
-public class UserReader {
-
-    /**
-     * @param filename
-     *            the name of the file containing the descriptions of Users
-     * @param experiments
-     *            the list of DataGridlets that can be used in the simulation
-     * @return the list of Users
-     * @throws Exception
-     */
-    public static LinkedList read(String filename, LinkedList routers,
-        LinkedList resources) throws Exception {
-        LinkedList userList = null;
-
-        try {
-            FileReader fRead = new FileReader(filename);
-            BufferedReader b = new BufferedReader(fRead);
-            userList = createUsers(b, routers);
-        } catch (Exception exp) {
-            System.out.println("User file not found");
-        }
-
-        return userList;
-    }
-
-    /**
-     *
-     * @param buf
-     * @param experiments
-     *            the list of requests executed by the users
-     * @return a list of Users initialized with the requests by the users.
-     * @throws Exception
-     */
-    private static LinkedList createUsers(BufferedReader buf, LinkedList routers)
-        throws Exception {
-        String line;
-        String name;
-        String baudRate;
-        String router_name;
-        StringTokenizer str;
-        LinkedList users = new LinkedList();
-
-        while ((line = buf.readLine()) != null) {
-            str = new StringTokenizer(line);
-            name = str.nextToken();
-
-            if (!name.startsWith("#")) {
-                router_name = str.nextToken();
-
-                String resource_name = str.nextToken(); //for the RC assignement
-                baudRate = str.nextToken(); //baud rate is given in MB/s
-
-                Router r = NetworkReader.getRouter(router_name, routers);
-
-                if (r == null) {
-                    System.out.println("Problem with ROUTER " + router_name);
-                }
-
-                SimUser dUser = new SimUser(name,
-                        Double.parseDouble(baudRate) * 1000000, 10, 1500);
-                dUser.setReplicaCatalogue(resource_name);
-
-                r.attachHost(dUser, new FIFOScheduler(name+"_scheduler"));
-
-                int index = 0;
-                ArrayList tasks = new ArrayList();
-
-                while (str.hasMoreTokens()) {
-                    Object[] tempTask = parseTask(str);
-
-                    if (tempTask != null) {
-                        tasks.add(tempTask);
-                    }
-                }
-
-                dUser.setTasks(tasks);
-                users.add(dUser);
-            }
-        }
-
-        return users;
-    }
-
-    private static Object[] parseTask(StringTokenizer str) {
-        String taskName = str.nextToken();
-        Object[] task = null;
-
-        if (taskName.equals("get")) {
-            task = new Object[2];
-            task[0] = new Integer(0);
-            task[1] = str.nextToken();
-        } else if (taskName.equals("replicate")) {
-            task = new Object[3];
-            task[0] = new Integer(1);
-            task[1] = str.nextToken();
-            task[2] = str.nextToken();
-        } else if (taskName.equals("attribute")) {
-            task = new Object[2];
-            task[0] = new Integer(3);
-            task[1] = str.nextToken();
-        } else if (taskName.equals("delete")) {
-            task = new Object[3];
-            task[0] = new Integer(2);
-            task[1] = str.nextToken();
-            task[2] = str.nextToken();
-        }
-
-        return task;
-    }
-}
Deleted: trunk/examples/DataGrid/example4/files.txt
===================================================================
--- trunk/examples/DataGrid/example4/files.txt	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/files.txt	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,10 +0,0 @@
-#this files contains the description of possible files than are on the grid in the current experiment
-#the format of the file is:
-#file_name file_size (in MB)
-testFile1 10
-testFile2 10
-fileM 10
-fileK 10
-fileH 10
-fileD 10
-fileF 1
\ No newline at end of file
Deleted: trunk/examples/DataGrid/example4/network.txt
===================================================================
--- trunk/examples/DataGrid/example4/network.txt	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/network.txt	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,11 +0,0 @@
-5
-router1
-router2
-router3
-router4
-router5
-router1 router2 0.1 10.0 1500
-router1 router5 0.1 10.0 1500
-router2 router5 0.1 10.0 1500
-router2 router3 0.1 10.0 1500
-router4 router5 0.1 10.0 1500
\ No newline at end of file
Deleted: trunk/examples/DataGrid/example4/output.txt
===================================================================
--- trunk/examples/DataGrid/example4/output.txt	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/output.txt	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,40 +0,0 @@
-Starting data grid simulation ...
-Initializing GridSim package
-Initialising...
-
-Starting to create one Grid resource with 3 Machines
-Finally, creates one Grid resource (name: Res_0 - id: 20)
-
-Adding file fileH
-Adding file testFile1
-
-Starting to create one Grid resource with 3 Machines
-Finally, creates one Grid resource (name: Res_1 - id: 27)
-
-Adding file testFile2
-
-Starting to create one Grid resource with 3 Machines
-Finally, creates one Grid resource (name: Res_2 - id: 34)
-
-Adding file fileF
-Adding file fileG
-Creating a grid user entity with name = user1
-Creating a grid user entity with name = user2
-Starting GridSim version 4.0
-Entities started.
-user1:- Transfer of file testFile2 succesful
-user2:- Transfer of file testFile1 succesful
-user1:- Transfer of file testFile1 succesful
-user1:- Received attribute for file testFile1
-user1:- Transfer of file fileF succesful
-user1:%%%% Exiting body() at time 1998.7168399991406
-user2.replicateFile(): testFile1 has been replicated to Res_1
-user2.deleteFile(): testFile1 has been deleted from Res_1
-user2:%%%% Exiting body() at time 2750.330159998607
-DataGIS: Notify all replica catalog entities for shutting down.
-DataGIS: Notify all GridSim entities for shutting down.
-Sim_system: No more future events
-Gathering simulation data.
-Simulation completed.
-
-Finish data grid simulation ...
Deleted: trunk/examples/DataGrid/example4/parameters.txt
===================================================================
--- trunk/examples/DataGrid/example4/parameters.txt	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/parameters.txt	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,8 +0,0 @@
-#WARNING numUsers should be the same as the number of users in the user configuration file
-numUsers=2
-files=files.txt
-resources=resources.txt
-network=network.txt
-users=users.txt
-#the router which the topRC is connected to
-topRCrouter=router1
\ No newline at end of file
Deleted: trunk/examples/DataGrid/example4/resources.txt
===================================================================
--- trunk/examples/DataGrid/example4/resources.txt	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/resources.txt	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,6 +0,0 @@
-#the description of resources in a grid
-#the format of the file:
-#resource_name storage_size(in GB) bandwidth router_name list_of_containing_files
-Res_0 100 0.1 router1 fileH testFile1
-Res_1 100 0.1 router2 testFile2
-Res_2 100 0.1 router5 fileF fileG
\ No newline at end of file
Deleted: trunk/examples/DataGrid/example4/users.txt
===================================================================
--- trunk/examples/DataGrid/example4/users.txt	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/example4/users.txt	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,8 +0,0 @@
-#user_name router_name rc_name baud_rate list_of_grid_tasks
-#grid tasks can be: 
-#get filename
-#attribute filename
-#replicate filename resource
-#delete filename resource
-user1 router2 Res_0 0.1 get testFile2 get testFile1 attribute testFile1 get fileF
-user2 router1 Res_1 0.1 get testFile1 replicate testFile1 Res_1 delete testFile1 Res_1
\ No newline at end of file
Deleted: trunk/examples/DataGrid/tutorial/Simulation.html
===================================================================
--- trunk/examples/DataGrid/tutorial/Simulation.html	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/tutorial/Simulation.html	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,605 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-
-
-
-
-
-
-
-
-
-
-  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
-
-
-
-
-
-
-
-
-
-
-  <title>Simulation</title>
-</head>
-
-
-<body>
-
-
-
-
-
-<div style="text-align: center;">
-<h1>SIMULATION PACKAGE</h1>
-
-
-
-
-
-<div style="text-align: left;">To make the construction of
-simulations easier, we created few file readers in the <br>
-<b>$GRIDSIM/examples/DataGridExample/example4</b> directory. <br>
-Hence, it is possible to design and run a
-simulation without any programming, only by defining a set of
-configuration files.<br>
-
-<br>
-
-To run the simulation, type the following in the command line:<br>
-
-<br>
-<code>cd $GRIDSIM/examples/DataGridExample</code><br>
-<code>javac -classpath $GRIDSIM/jars/gridsim.jar:. DataGridSim.java</code><br>
-<code>java -cp $GRIDSIM/jars/gridsim.jar:. DataGridSim parameters.txt</code><br>
-
-<br>
-
-<br>
-
-<h2>EXAMPLE<br>
-
-</h2>
-
-To demonstrate the functionality of this package we construct the same topology as in the "<a href="getting_started.html">Getting started</a>" example.<br>
-
-
-
-
-
-<br>
-
-
-
-
-
-<h2>Parameters configuration file</h2>
-
-This file is  the main configuration file, which is passed as a
-parameter to the  gridsim.datagrid.simulation,Sim class.<br>
-
-In this file we describe which files describe our experiment, how many
-users will be present in the simulation and on which router the Top
-replica catalogue will be connected to. We also define whether each resource has its own replica catalogue or not.<br>
-
-
-
-
-<span style="font-weight: bold;">Warning: </span>the number of users has to be the same as the actual number of users in the user configuration file.<br>
-
-
-
-
-<br>
-
-
-
-
-<span style="font-weight: bold;">Example:</span><span style="font-family: Courier New,Courier,monospace;">
-<br>
-
-
-
-numUsers=1</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-files=files.txt</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-resources=resources.txt</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-network=network.txt</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-users=users.txt<br>
-
-
-topRCrouter=router1<br>
-</span><span style="font-family: Courier New,Courier,monospace;">
-
-useLocalRC=false</span><span style="font-weight: bold;"></span>
-<h2> Files configuration file</h2>
-
-
-
-
-<span style="font-weight: bold;">Format of the file<br>
-
-
-
-
-<span style="font-style: italic;"></span></span><span style="font-style: italic;">filename1 size<br>
-
-
-
-
-</span><span style="font-style: italic;">filename2 size<br>
-
-
-
-
-.<br>
-
-
-
-
-.</span><span style="font-style: italic;"><br>
-
-
-
-
-filenameN size</span><span style="font-weight: bold;"><br>
-
-
-
-
-<br>
-
-
-
-
-Description of parameters</span><span style="font-style: italic;"><br>
-
-
-
-
-filename1 </span>............ the name of the file - arbitrary string (no spaces)<br>
-
-
-
-
-<span style="font-style: italic;">size </span>...................... the size of the file in MB<br>
-
-
-
-
-<span style="font-weight: bold;"><br>
-
-
-
-
-Example:</span><span style="font-family: Courier New,Courier,monospace;"></span> <br>
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">testFile1 10</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">testFile2 10</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">fileM 10</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">fileK 10</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">fileH 10</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">fileD 10</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">fileF 1</span>
-<h2>Resources configuration file </h2>
-
-
-
-
-<span style="font-weight: bold;">Format of the file</span><br>
-
-
-
-
-<span style="font-style: italic;">Resource1_name</span> <span style="font-style: italic;">storage_size bandwidth router_name list_of_containing_files<br>
-
-
-
-
-</span><span style="font-style: italic;">Resource2_name</span> <span style="font-style: italic;">storage_size bandwidth router_name list_of_containing_files<br>
-
-
-
-
-.<br>
-
-
-
-
-.<br>
-
-
-
-
-</span><span style="font-style: italic;">ResourceN_name</span> <span style="font-style: italic;">storage_size bandwidth router_name list_of_containing_files</span><br>
-
-
-
-
-<span style="font-style: italic;"><br>
-
-
-
-
-</span><span style="font-weight: bold;">Description of parameters</span><span style="font-style: italic;"><br>
-
-
-
-
-</span><span style="font-style: italic;">Resource1_name </span>.............. the name of the resource - arbitrary string, without spaces - uniquely defining the resource<br>
-
-
-
-
-<span style="font-style: italic;">storage_size</span> ..................... the size of the HarddriveStorage in GB.<br>
-
-
-
-
-<span style="font-style: italic;">bandwidth </span>........................ bandwidth of the connection to the router in GB/s<br>
-
-
-
-
-<span style="font-style: italic;">router_name </span>.................... the name of the router to which this resource is connected (see below network configuration)<br>
-
-
-
-
-<span style="font-style: italic;">list_of_containing_files </span>....
-the list of filenames of files (separated by spaces) which are stored
-on the storage of this resource (see file configuration)<br>
-
-
-
-
-<br>
-
-
-
-
-<span style="font-weight: bold;">Example:</span><span style="font-family: Courier New,Courier,monospace;"></span> <span style="font-family: Courier New,Courier,monospace;"></span><span style="font-family: Courier New,Courier,monospace;">
-<br>
-
-
-
-Res_0 100 0.1 router1 fileH testFile1</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-Res_1 100 0.1 router1 testFile2</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-Res_2 100 0.1 router1 fileF fileG</span><br>
-
-
-
-
-
-<h2>Network configuration file</h2>
-
-
-
-
-<br>
-
-
-
-
-<span style="font-weight: bold;">Format of the file</span><br>
-
-
-
-
-<span style="font-style: italic;">Num_routers<br>
-
-
-
-
-router_name1<br>
-
-
-
-
-</span><span style="font-style: italic;">router_name2<br>
-
-
-
-
-.<br>
-
-
-
-
-.<br>
-
-
-
-
-router_nameN<br>
-
-
-
-
-router_nameI router_nameJ  bandwidthI_J  propDelay MTU</span><br>
-
-
-
-
-<span style="font-style: italic;">router_nameK router_nameL  bandwidthK_L  propDelay MTU</span><span style="font-style: italic;"></span><br>
-
-
-
-
-<span style="font-style: italic;">.<br>
-
-
-
-
-.<br>
-
-
-
-
-</span><span style="font-style: italic;">router_nameM router_nameR  bandwidthM_R  propDelay MTU</span><br>
-
-
-
-
-<span style="font-style: italic;"><br>
-
-
-
-
-</span><span style="font-weight: bold;">Description of parameters<br>
-
-
-
-
-</span><span style="font-style: italic;">Num_routers </span>...................... the number of routers (which names follow)<br>
-
-
-
-
-<span style="font-style: italic;">router_name </span>...................... arbitrary string (no spaces) defining the name of the router<br>
-
-
-
-
-<span style="font-style: italic;">bandwidthX_Y </span>................... bandwidth in GB/s between routers whose names are defined in the beginning of the line<br>
-
-
-
-
-<span style="font-style: italic;"> propDelay </span>......................... propagation delay in miliseconds<br>
-
-
-
-
-<span style="font-style: italic;"> MTU </span>.................................. minimal transmission unit in bytes<br>
-
-
-
-
-<br>
-
-
-
-
-<span style="font-weight: bold;">Example:</span><span style="font-family: Courier New,Courier,monospace;"></span> <span style="font-family: Courier New,Courier,monospace;">
-<br>
-
-
-
-2</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-router1</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-router2</span><br style="font-family: Courier New,Courier,monospace;">
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">
-router1 router2 0.1 10.0 1500</span><br>
-
-
-
-
-
-<h2>User configuration file</h2>
-
-
-
-
-<span style="font-weight: bold;">Format of the file<br>
-
-
-
-
-</span><span style="font-style: italic;">user1_name router_name RC_name bandwidth list_of_operations<br>
-
-
-
-
-</span><span style="font-style: italic;">user2_name router_name RC_name bandwidth list_of_operations<br>
-
-
-
-
-.<br>
-
-
-
-
-.<br>
-
-
-
-
-</span><span style="font-style: italic;">userN_name router_name RC_name bandwidth list_of_operations</span><br>
-
-
-
-
-<span style="font-weight: bold;"><br>
-
-
-
-
-</span><span style="font-weight: bold;">Description of parameters<br>
-
-
-
-
-</span><span style="font-style: italic;">user1_name </span>........................... the name of the user<br>
-
-
-
-
-<span style="font-style: italic;">router_name </span>.......................... the name of the router to which this user is connected<span style="font-style: italic;"><br>
-
-
-
-
-RC_name </span>............................... the name of the entity
-that acts as the users Replica Catalogue - it can be a resource which
-has a local RC<br>
-
-
-
-
-<span style="font-style: italic;"> bandwidth </span>.............................. bandwith to the router in MB/s<br>
-
-
-
-
-<span style="font-style: italic;">list_of_operations </span>..................
- list of operations which the user will perform during the
-simulation separated by spaces (see Available operations below)<br>
-
-
-
-
-<br>
-
-
-
-
-<span style="font-weight: bold;">Available operations<br>
-
-
-
-
-</span><span style="font-style: italic;">get filename </span>............. transfer the file with this filename to the user<br>
-
-
-
-
-<span style="font-style: italic;">replicate filename resource_name </span>.......... make a replica of the file with this <span style="font-style: italic;">filename</span> on the resource <span style="font-style: italic;">resource_name<br>
-
-</span><span style="font-style: italic;">delete filename resource_name </span>.......... delete a replica of the file with this <span style="font-style: italic;">filename</span> on the resource <span style="font-style: italic;">resource_name</span><br>
-
-<span style="font-style: italic;">
-
-
-attribute filename </span>.................................... get the file attribute (with all the information about a certain file)<br>
-
-
-
-
-<span style="font-weight: bold;"></span><span style="font-style: italic;"><br>
-
-
-
-
-</span><span style="font-weight: bold;">Example:</span><br>
-
-
-
-
-<span style="font-family: Courier New,Courier,monospace;">user1 router2 Res_0 500.0 get testFile2 get testFile1 attribute testFile1 replicate testFile1 Res_0<br>
-
-
-
-
-<br>
-
-
-
-
-<a href="index.html"><span style="font-family: Times New Roman,Times,serif;"><home></span></a></span></div>
-
-
-
-
-
-</div>
-
-
-
-
-
-</body>
-</html>
Deleted: trunk/examples/DataGrid/tutorial/connectEntities.html
===================================================================
--- trunk/examples/DataGrid/tutorial/connectEntities.html	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/tutorial/connectEntities.html	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,75 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-
-  
-  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
-
-  
-  <title>Connect the entities to the network</title>
-</head>
-
-
-<body>
-
-<div style="text-align: center;">
-<h1>CONNECTING THE ENTITIES</h1>
-<div style="text-align: left;">When all the entities have been created,
-they need to be connected by a network. The following code demonstrates
-how to connect the resources, the user and the replica catalogue to
-different routers on the network.<br>
-</div>
-
-</div>
-
-<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0">
-
-  <tbody>
-
-    <tr>
-
-<!-- start source code --> <td align="left" nowrap="nowrap" valign="top"> <code><font color="#ffffff"> </font><font color="#7f0055"><b>try </b></font><font color="#000000">{</font><br>
-
-      <font color="#ffffff">            </font><font color="#3f7f5f">//connect resources</font><br>
-
-      <font color="#ffffff">            </font><font color="#000000">GridResource resObj = </font><font color="#7f0055"><b>null</b></font><font color="#000000">;</font><br>
-
-      <font color="#ffffff">            </font><font color="#7f0055"><b>for </b></font><font color="#000000">(</font><font color="#000000">i = </font><font color="#990000">0</font><font color="#000000">; i < resList.size</font><font color="#000000">()</font><font color="#000000">; i++</font><font color="#000000">)</font><br>
-
-      <font color="#ffffff">            </font><font color="#000000">{</font><br>
-
-      <font color="#ffffff">                </font><font color="#000000">FIFOScheduler resSched = </font><font color="#7f0055"><b>new </b></font><font color="#000000">FIFOScheduler</font><font color="#000000">()</font><font color="#000000">;</font><br>
-
-      <font color="#ffffff">                </font><font color="#000000">resObj = </font><font color="#000000">(</font><font color="#000000">GridResource</font><font color="#000000">) </font><font color="#000000">resList.get</font><font color="#000000">(</font><font color="#000000">i</font><font color="#000000">)</font><font color="#000000">;</font><br>
-
-      <font color="#ffffff">                </font><font color="#000000">r2.attachHost</font><font color="#000000">(</font><font color="#000000">resObj, resSched</font><font color="#000000">)</font><font color="#000000">;</font><font color="#3f7f5f">//attach the resource to router r2</font><br>
-
-      <font color="#ffffff">            </font><font color="#000000">}      </font><br>
-
-      <font color="#ffffff">            </font><font color="#3f7f5f">//connect user</font><br>
-
-      <font color="#ffffff">            </font><font color="#000000">FIFOScheduler userSched = </font><font color="#7f0055"><b>new </b></font><font color="#000000">FIFOScheduler</font><font color="#000000">()</font><font color="#000000">;</font><br>
-
-      <font color="#ffffff">            </font><font color="#000000">r1.attachHost</font><font color="#000000">(</font><font color="#000000">user, userSched</font><font color="#000000">)</font><font color="#000000">; </font><font color="#3f7f5f">//atach the user to router r1</font><br>
-
-      <font color="#ffffff">            </font><font color="#3f7f5f">//connect rc</font><br>
-
-      <font color="#ffffff">            </font><font color="#000000">FIFOScheduler gisSched = </font><font color="#7f0055"><b>new </b></font><font color="#000000">FIFOScheduler</font><font color="#000000">()</font><font color="#000000">;</font><br>
-
-      <font color="#ffffff">            </font><font color="#000000">r2.attachHost</font><font color="#000000">(</font><font color="#000000">rc, gisSched</font><font color="#000000">)</font><font color="#000000">;   </font><font color="#3f7f5f">// attach RC</font><br>
-
-      <font color="#000000">} </font><font color="#7f0055"><b>catch </b></font><font color="#000000">(</font><font color="#000000">ParameterException e4</font><font color="#000000">) {</font><br>
-
-      <font color="#ffffff">            </font><font color="#000000">e4.printStackTrace</font><font color="#000000">()</font><font color="#000000">;</font><br>
-
-      <font color="#000000">}</font></code> </td>
-
-<!-- end source code --> </tr>
-
-<!-- start Java2Html link --><!-- end Java2Html link -->
-  
-  </tbody>
-</table>
-
-</body>
-</html>
Deleted: trunk/examples/DataGrid/tutorial/createNetwork.html
===================================================================
--- trunk/examples/DataGrid/tutorial/createNetwork.html	2009-04-03 04:28:19 UTC (rev 260)
+++ trunk/examples/DataGrid/tutorial/createNetwork.html	2009-05-19 11:24:54 UTC (rev 261)
@@ -1,69 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-
-  
-  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
-
-  
-  <title>Creating the network</title>
-</head>
-
-
-<body>
-
-<div style="text-align: center;">
-<h1>CREATING THE NETWORK</h1>
-
-<br>
-
-<div style="text-align: left;">The following code shows how to create a simple network, with only two routers.<br>
-</div>
-
-<br>
-
-</div>
-
-<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0">
-
-  <tbody>
-
-    <tr>
-
-<!-- start source code --> <td align="left" nowrap="nowrap" valign="top"> <code><font color="#ffffff"> </font><font color="#000000">Router r1 = </font><font color="#7f0055"><b>new </b></font><font color="#000000">RIPRouter</font><font color="#000000">(</font><font color="#2a00ff">"router1"</font><font color="...
 
[truncated message content] |