@SuppressWarnings("unchecked") public void loadHistory(String filename) throws Exception {
  FileInputStream fis=new FileInputStream(filename);
  ObjectInputStream ois=new ObjectInputStream(fis);
  setHistory((Map<Double,Double>)ois.readObject());
  ois.close();
}

@ SuppressWarnings ( "unchecked" ) public void loadHistory ( String filename ) throws Exception { FileInputStream fis = new FileInputStream ( filename ) ; ObjectInputStream ois = new ObjectInputStream ( fis ) ; setHistory ( ( Map < Double , Double > ) ois . readObject ( ) ) ; ois . close ( ) ; }
load an utilization history from a file .
