cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/utilizationmodels/UtilizationModelPlanetLab.java
private double[] readWorkloadFile(final String inputPath, int dataSamples) throws IOException {
        dataSamples = Math.max(2, dataSamples);
        double[] data = createEmptyArray(dataSamples);

        try (BufferedReader input = new BufferedReader(new FileReader(inputPath))) {
            final int n = data.length;
            int i = 0;
            String line;
            while((line=input.readLine())!=null && i < n){
                data[i++] = Integer.valueOf(line) / 100.0;
            }
            data[n - 1] = data[n - 2];
        }

        return data;
    }
/**
     * Reads the planet lab workload file in which each one of its lines
     * is a resource utilization percentage to be used for a different simulation time.
     * The number of the line represents the simulation time to which
     * the value in such a line will be used as a resource utilization percentage.
     * For instance, the line 0 represents a resource utilization percentage for
     * simulation time 0.
     *
     * @param inputPath the path to the workload file
     * @param dataSamples the number of lines to read
     * @return an array containing the lines read from the file
     * @throws IOException
     */
Reads the planet lab workload file in which each one of its lines
is a resource utilization percentage to be used for a different simulation time.
The number of the line represents the simulation time to which
the value in such a line will be used as a resource utilization percentage.
For instance, the line 0 represents a resource utilization percentage for
simulation time 0.

@param inputPath the path to the workload file
@param dataSamples the number of lines to read
@return an array containing the lines read from the file
@throws IOException
Reads the planet lab workload file in which each one of its lines is a resource utilization percentage to be used for a different simulation time . The number of the line represents the simulation time to which the value in such a line will be used as a resource utilization percentage . For instance the line 0 represents a resource utilization percentage for simulation time 0 . @param inputPath the path to the workload file @param dataSamples the number of lines to read @return an array containing the lines read from the file @throws IOException
private double[] readWorkloadFile(final String inputPath, int dataSamples) throws IOException {
        dataSamples = Math.max(2, dataSamples);
        double[] data = createEmptyArray(dataSamples);
        try (BufferedReader input = new BufferedReader(new FileReader(inputPath))) {
            final int n = data.length;
            int i = 0;
            String line;
            while((line=input.readLine())!=null && i < n){
                data[i++] = Integer.valueOf(line) / 100.0;
            }
            data[n - 1] = data[n - 2];
        }
        return data;
    }
private double [ ] readWorkloadFile ( final String inputPath , int dataSamples ) throws IOException { dataSamples = Math . max ( 2 , dataSamples ) ; double [ ] data = createEmptyArray ( dataSamples ) ; try ( BufferedReader input = new BufferedReader ( new FileReader ( inputPath ) ) ) { final int n = data . length ; int i = 0 ; String line ; while ( ( line = input . readLine ( ) ) != null && i < n ) { data [ i ++ ] = Integer . valueOf ( line ) / 100.0 ; } data [ n - 1 ] = data [ n - 2 ] ; } return data ; }
Reads the planet lab workload file in which each one of its lines
 is a resource utilization percentage to be used for a different simulation time.
Reads the planet lab workload file in which each one of its lines is a resource utilization percentage to be used for a different simulation time .