for (int i=0; i<this.getRobotArray().size();i++)
{
String file =((Robot)this.getRobotArray().get(i)).getXMLConfigFile();
xmlWriter.println("\t<robot>");
xmlWriter.println("\t\t<xmlfile>"+this.getBaseSimulationDirectory()+"\\components\\"+file+"</xmlfile>");
Plugin robot = ClassManager.getInstance().getPluginByName(((Robot)this.getRobotArray().get(i)).getClass().getCanonicalName());
xmlWriter.println("\t\t<xml-rules>"+robot.getContext().getPath()+robot.getXmlRulesFile()+"</xml-rules>");
xmlWriter.println("\t</robot>");
}
xmlWriter.println("\t<gps>");
xmlWriter.println("\t\t<xmlfile>"+this.getBaseSimulationDirectory()+"\\components\\gps.xml</xmlfile>");
Plugin gps = ClassManager.getInstance().getPluginByName(Simulation.getCurrent().getGps().getClass().getCanonicalName());
xmlWriter.println("\t\t<xml-rules>"+gps.getContext().getPath()+gps.getXmlRulesFile()+"</xml-rules>");
xmlWriter.println("\t</gps>");
// Bloques XML correspondientes a los lugares ("places").
xmlWriter.println("\t<places>");
for (int i=0;i<places.length;i++)