From: <jom...@us...> - 2014-04-25 21:04:51
|
Revision: 1775 http://sourceforge.net/p/jason/svn/1775 Author: jomifred Date: 2014-04-25 21:04:48 +0000 (Fri, 25 Apr 2014) Log Message: ----------- fix initial bels from project (add source and allows atoms) Modified Paths: -------------- trunk/src/jason/asSemantics/Agent.java Modified: trunk/src/jason/asSemantics/Agent.java =================================================================== --- trunk/src/jason/asSemantics/Agent.java 2014-04-23 13:24:33 UTC (rev 1774) +++ trunk/src/jason/asSemantics/Agent.java 2014-04-25 21:04:48 UTC (rev 1775) @@ -504,7 +504,10 @@ if (sBels != null) { try { for (Term t: ASSyntax.parseList("["+sBels+"]")) { - getBB().add((Literal)t); + Literal b = ((Literal)t).forceFullLiteralImpl(); + if (!b.hasSource()) + b.addAnnot(BeliefBase.TSelf); + getBB().add(b); } } catch (Exception e) { logger.log(Level.WARNING, "Initial beliefs from project '["+sBels+"]' is not a list of literals."); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |