|
From: <jom...@us...> - 2008-05-04 21:50:38
|
Revision: 1290
http://jason.svn.sourceforge.net/jason/?rev=1290&view=rev
Author: jomifred
Date: 2008-05-04 14:50:33 -0700 (Sun, 04 May 2008)
Log Message:
-----------
use the xsl stored in SF in the XML file generated on for the agent's mind
Modified Paths:
--------------
trunk/applications/jason-team/src/java/arch/WriteStatusThread.java
trunk/src/jason/asSemantics/Agent.java
Modified: trunk/applications/jason-team/src/java/arch/WriteStatusThread.java
===================================================================
--- trunk/applications/jason-team/src/java/arch/WriteStatusThread.java 2008-05-04 21:17:05 UTC (rev 1289)
+++ trunk/applications/jason-team/src/java/arch/WriteStatusThread.java 2008-05-04 21:50:33 UTC (rev 1290)
@@ -109,7 +109,8 @@
// store the agent'd mind
if (dirmind != null) {
String agmind = new asl2xml().transform(owner.getTS().getAg().getAgState());
- FileWriter outmind = new FileWriter(new File(dirmind.getName()+"/"+owner.getCycle()+".xml"));
+ String filename = String.format("%5d.xml",owner.getCycle()).replaceAll(" ","0");
+ FileWriter outmind = new FileWriter(new File(dirmind.getName()+"/"+filename));
outmind.write(agmind);
outmind.close();
}
Modified: trunk/src/jason/asSemantics/Agent.java
===================================================================
--- trunk/src/jason/asSemantics/Agent.java 2008-05-04 21:17:05 UTC (rev 1289)
+++ trunk/src/jason/asSemantics/Agent.java 2008-05-04 21:50:33 UTC (rev 1290)
@@ -679,7 +679,7 @@
}
}
Document document = builder.newDocument();
- document.appendChild(document.createProcessingInstruction("xml-stylesheet", "href='agInspection.xsl' type='text/xsl' "));
+ document.appendChild(document.createProcessingInstruction("xml-stylesheet", "href='http://jason.sf.net/xml/agInspection.xsl' type='text/xsl' "));
Element ag = getAsDOM(document);
document.appendChild(ag);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|