cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/utilizationmodels/UtilizationModelStochastic.java
@SuppressWarnings("unchecked")
    public void loadHistory(String filename) {
        try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))) {
            setHistory((Map<Double, Double>) ois.readObject());
        } catch (ClassNotFoundException|IOException e) {
            throw new RuntimeException(e);
        }
    }
/**
     * Load an utilization history from a file.
     *
     * @param filename the filename
     * @throws Exception the exception
     */
Load an utilization history from a file.
@param filename the filename
@throws Exception the exception
Load an utilization history from a file . @param filename the filename @throws Exception the exception
@SuppressWarnings("unchecked")
    public void loadHistory(String filename) {
        try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))) {
            setHistory((Map<Double, Double>) ois.readObject());
        } catch (ClassNotFoundException|IOException e) {
            throw new RuntimeException(e);
        }
    }
@ SuppressWarnings ( "unchecked" ) public void loadHistory ( String filename ) { try ( ObjectInputStream ois = new ObjectInputStream ( new FileInputStream ( filename ) ) ) { setHistory ( ( Map < Double , Double > ) ois . readObject ( ) ) ; } catch ( ClassNotFoundException | IOException e ) { throw new RuntimeException ( e ) ; } }
Load an utilization history from a file.
Load an utilization history from a file .