Skip to content
Snippets Groups Projects
Commit 8ad2a10d authored by Alex's avatar Alex
Browse files

added handling of GiveGo in Committed

parent 13ab7c52
No related branches found
No related tags found
No related merge requests found
...@@ -356,6 +356,12 @@ class AgentBehaviour(variable: Variable, ...@@ -356,6 +356,12 @@ class AgentBehaviour(variable: Variable,
*/ */
when(Committed) { when(Committed) {
//when it receives its partner's giveGo
case Event(GiveGo, mind) => {
stash
stay using mind
}
// When it receives a reject it does NOTHING // When it receives a reject it does NOTHING
case Event(Reject(_), mind) => case Event(Reject(_), mind) =>
if (debug) println(s"$variable in $stateName has received Reject") if (debug) println(s"$variable in $stateName has received Reject")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment