GETTING STARTED

This is a short example on how to use the gridsim.datagrid packages. Through this tutorial we will learn how to properly set up the simulation  and how to write your custom simulation scenario. The figure below demonstrates the network topology we are going to set up.




Simulation framework

Below is an example Java program, that uses the gridsim.datagrid package and implement a simple experiment on a grid with the topology shown on the figure above. Follow the links in the main method to see the description of the various steps needed for a proper simulation setup.

package tutorial;

import gridsim.*;
import gridsim.datagrid.*;
import gridsim.datagrid.index.*;
import gridsim.datagrid.storage.*;
import gridsim.net.FIFOScheduler;
import gridsim.net.Link;
import gridsim.net.RIPRouter;
import gridsim.net.Router;
import gridsim.net.SimpleLink;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.LinkedList;


public class Example {

    public static void main(String[] args) {

  1. Initialize the simulation
  2. Create a top level Replica Catalogue
  3. Create the Data Grid resources
  4. Create users
  5. Create network
  6. Connect the created entities to the network
  7. Start the simulation - GridSim.startGridSimulation();
    }
}




<home>