private void experiment() {

        // wait for all entities to register
        super.gridSimHold(50.0);
        int location = 0;

        // create three new files and add them as master files to resource Res_2
        try {
            ArrayList fList = new ArrayList();
            for (int i = 0; i < 3; i++) {
                File fNew = new File("file_" + i, 10);
                addMaster(fNew, GridSim.getEntityId("Res_2"));
            }
        } catch (ParameterException e) {
            e.printStackTrace();
        }

        // get the full name of file1, i.e. file1+ID, where ID is a unique
        // number assigned to the file by the top replica catalogue.
        String name = getFullFilename("file_0");
        File f = null;
        int fileLocation;
        if (name != null) {
            // get the location of the file
            location = this.getReplicaLocation(name);
            if (location != -1) {
                // transfer the file
                f = this.getFile(name, location);
                System.out.println("user:" + this.get_name()
                        + ":-Transfer of file " + name + " succesful");
            }
        }

        // replicate this file to Res_0
        replicateFile(f, GridSim.getEntityId("Res_0"));

        // replicate this file to Res_1
        replicateFile(f, GridSim.getEntityId("Res_1"));

        // delete replica of file from Res_0
        deleteFile(f.getName(), GridSim.getEntityId("Res_0"));

        // trying to delete a master file will not succeed
        // for deleting the master file one should use deleteMaster()
        deleteFile(f.getName(), GridSim.getEntityId("Res_2"));

        // but a master file cannot be deleted while there are replicas of the
        // file on the Data Grid, so the following will also produce an error
        deleteMaster(f.getName(), GridSim.getEntityId("Res_2"));

        // so we first have to delete the replica of file from Res_1
        deleteFile(f.getName(), GridSim.getEntityId("Res_1"));

        // and then we can delete the master file
        deleteMaster(f.getName(), GridSim.getEntityId("Res_2"));
    }