//We assume that all the queries is referent to the same MEBN
mebn = queryList.get(0).getMebn();
//Parameters:
IdentationLevel in = new IdentationLevel(null);
//Add queries to the list of nodes
IdentationLevel in1 = new IdentationLevel(in);
if (logManager != null) {
logManager.printText(in1, true,
getResourceForHybridAlgorithm().getString("011_BuildingSSBNForQueries"));
}
for(Query query: queryList){
SimpleSSBNNode ssbnNode = SimpleSSBNNode.getInstance(query.getResidentNode());
query.setSSBNNode(ssbnNode);
for(OVInstance argument : query.getArguments()){
ssbnNode.setEntityForOv(argument.getOv(), argument.getEntity());
}
ssbnNode.setFinished(false);
ssbn.addSSBNNodeIfItDontAdded(ssbnNode);
ssbn.addQueryToTheQueryList(query);
if (logManager != null) {
logManager.printText(in1, false, " - " + ssbnNode);
}
}
if (logManager != null) {
logManager.skipLine();
}
//Add findings to the list of nodes
in1 = new IdentationLevel(in);
if (logManager != null) {
logManager.printText(in1, true,
getResourceForHybridAlgorithm().getString("012_BuildingSSBNForFindings"));
}