cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/datacenters/DatacenterSimple.java
protected double predictFileTransferTime(final List<String> requiredFiles) {
        double time = 0.0;

        for (final String fileName: requiredFiles) {
            for (final FileStorage storage: getStorageList()) {
                final File file = storage.getFile(fileName);
                if (file != null) {
                    time += file.getSize() / storage.getMaxTransferRate();
                    break;
                }
            }
        }

        return time;
    }
/**
     * Predict the total time to transfer a list of files.
     *
     * @param requiredFiles the files to be transferred
     * @return the predicted time
     */
Predict the total time to transfer a list of files.
@param requiredFiles the files to be transferred
@return the predicted time
Predict the total time to transfer a list of files . @param requiredFiles the files to be transferred @return the predicted time
protected double predictFileTransferTime(final List<String> requiredFiles) {
        double time = 0.0;
        for (final String fileName: requiredFiles) {
            for (final FileStorage storage: getStorageList()) {
                final File file = storage.getFile(fileName);
                if (file != null) {
                    time += file.getSize() / storage.getMaxTransferRate();
                    break;
                }
            }
        }
        return time;
    }
protected double predictFileTransferTime ( final List < String > requiredFiles ) { double time = 0.0 ; for ( final String fileName : requiredFiles ) { for ( final FileStorage storage : getStorageList ( ) ) { final File file = storage . getFile ( fileName ) ; if ( file != null ) { time += file . getSize ( ) / storage . getMaxTransferRate ( ) ; break ; } } } return time ; }
Predict the total time to transfer a list of files.
Predict the total time to transfer a list of files .