//@author Stefano Omini
nodeNames = new String[entries.length];
//end NEW
for (int i = 0; i < entries.length; i++) {
EmpiricalEntry entry = entries[i];
if (entry.getValue() instanceof String) {
//gets the value contained in the empirical entry (in this case this
//object is the name of the output node)
String nodeName = (String) entry.getValue();
//sets the name of the node; the corresponding NetNode object will be found later
nodeNames[i] = nodeName;
//sets the corresponding routing probability
probabilities[i] = entry.getProbability();
} else {
throw new LoadException("Name of the node is not a String");
}
}