Skip to content
Snippets Groups Projects
Commit 5ca4f8f4 authored by Alex's avatar Alex
Browse files

giving nono

parent 55644ab8
Branches
No related tags found
No related merge requests found
......@@ -494,6 +494,11 @@ class AgentBehaviour(variable: Variable,
if (debug) println(s"$variable in $stateName has received Act(false)")
if (trace) println(s"$variable -> Supervisor : I didn't change = InformValue(${mind.context.getValue(variable).get})")
supervisor ! InformValue(mind.context.getValue(variable).get)
val partner: Variable = mind.partner match {
case Some(p) => p
case None => throw new RuntimeException(s"Error $variable is committed but lacks a partner in state $stateName")
}
directory.addressOf(partner) ! GiveNoGo
unstashAll
goto(Continue) using mind
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment