|
From: <xsp...@us...> - 2016-04-12 09:01:47
|
Revision: 1899
http://sourceforge.net/p/jason/svn/1899
Author: xsplyter
Date: 2016-04-12 09:01:45 +0000 (Tue, 12 Apr 2016)
Log Message:
-----------
Waking up act stage instead of sense stage when getting feedback from some action execution
Modified Paths:
--------------
trunk/src/jason/architecture/AgArch.java
trunk/src/jason/asSemantics/TransitionSystem.java
Modified: trunk/src/jason/architecture/AgArch.java
===================================================================
--- trunk/src/jason/architecture/AgArch.java 2016-04-11 18:35:36 UTC (rev 1898)
+++ trunk/src/jason/architecture/AgArch.java 2016-04-12 09:01:45 UTC (rev 1899)
@@ -198,7 +198,7 @@
/** called to inform that the action execution is finished */
public void actionExecuted(ActionExec act) {
getTS().getC().addFeedbackAction(act);
- wakeUpAct(true);
+ wakeUpAct(false);
}
/** Returns true if the agent can enter in sleep mode. */
Modified: trunk/src/jason/asSemantics/TransitionSystem.java
===================================================================
--- trunk/src/jason/asSemantics/TransitionSystem.java 2016-04-11 18:35:36 UTC (rev 1898)
+++ trunk/src/jason/asSemantics/TransitionSystem.java 2016-04-12 09:01:45 UTC (rev 1899)
@@ -1389,7 +1389,8 @@
}
public boolean canSleepAct() {
- return !C.hasIntention() && !C.hasFeedbackAction() && !C.hasPendingAction() && C.getSelectedIntention() == null && getUserAgArch().canSleep();
+ //&& !C.hasPendingAction()
+ return !C.hasIntention() && !C.hasFeedbackAction() && C.getSelectedIntention() == null && getUserAgArch().canSleep();
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|