25262728293031323334353637
file = s; pn = loadNetworkFile(new File(".\\Example\\"+file+".xml")); } public void saveNetworkFile(File file, ProbabilisticNetwork pn){ XMLBIFIO netIO = new XMLBIFIO(); try { netIO.save(file, pn); } catch (IOException e) { e.printStackTrace(); } }
3637383940414243444546474849
} } public ProbabilisticNetwork loadNetworkFile(File file){ ProbabilisticNetwork pn = null; XMLBIFIO netIO = new XMLBIFIO(); try { pn = netIO.load(file); } catch (Exception e) { e.printStackTrace(); System.exit(1); }
114115116117118119120121122123124125126
* * @param file the file * @param pn the pn */ public void saveNetworkFile(File file, ProbabilisticNetwork pn){ XMLBIFIO netIO = new XMLBIFIO(); try { netIO.save(file, pn); } catch (IOException e) { e.printStackTrace(); } }