* Load the Bayesian Network
*/
private void initPNNetwork() {
try {
// XMLBIFIO io = new XMLBIFIO();
BaseXMLBIFIO io = new BaseXMLBIFIO();
// Change the file here
File file = null;
try {
file = new java.io.File(getClass().getResource(
"/bn/SimulationBN-v13.xml").getFile());
} catch (NullPointerException e) {
// OK, we can still look for other places
}
if (file == null || !file.exists()) {
file = new java.io.File("bn/SimulationBN-v13.xml");
}
if (file == null || !file.exists()) {
file = new java.io.File("/bn/SimulationBN-v13.xml");
}
pn = io.load(file);
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
}