probRoutingPar = new XMLParameter("EmpiricalEntryArray",
EmpiricalEntry.class.getName(), null, empiricalEntries,
true);
innerRoutingPar = new XMLParameter[] { probRoutingPar };
}else if(routingStrat instanceof LoadDependentRouting){
LoadDependentRouting routing = (LoadDependentRouting)routingStrat;
XMLParameter ldRoutingPar = null;
XMLParameter[] ranges = new XMLParameter[routing.getEmpiricalEntries().size()];
Iterator<Integer> froms = routing.getEmpiricalEntries().keySet().iterator();
int countersRange =0;
while(froms.hasNext()){
Integer fromKey = froms.next();
String from = fromKey.toString();
XMLParameter fromEntry = new XMLParameter("from", Integer.class.getName(), null, from , true);
XMLParameter probLDRoutingPar = null;
XMLParameter[] empiricalEntries = new XMLParameter[routing.getEmpiricalEntries().get(fromKey).length];
for (int i = 0; i < empiricalEntries.length; i++) {
String station = routing.getEmpiricalEntries().get(fromKey)[i].getStationName();
XMLParameter stationDest = new XMLParameter("stationName", String.class.getName(), null, station, true);
Double probability = routing.getEmpiricalEntries().get(fromKey)[i].getProbability();
XMLParameter routProb = new XMLParameter("probability", Double.class.getName(), null, probability.toString(), true);
empiricalEntries[i] = new XMLParameter("EmpiricalEntry", EmpiricalEntry.class.getName(),null, new XMLParameter[] { stationDest,routProb }, true);
empiricalEntries[i].parameterArray = "false";
}
probLDRoutingPar = new XMLParameter("EmpiricalEntryArray", EmpiricalEntry.class.getName(), null, empiricalEntries, true);