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

key not found solved?

parent 1cb9d571
No related branches found
No related tags found
No related merge requests found
...@@ -187,6 +187,8 @@ class AgentBehaviour(variable: Variable, ...@@ -187,6 +187,8 @@ class AgentBehaviour(variable: Variable,
if (debug) println(s"$variable in $stateName has received Accept") if (debug) println(s"$variable in $stateName has received Accept")
val newPartner: Variable = directory.variableOf(sender) val newPartner: Variable = directory.variableOf(sender)
var updatedMind: MGM2Mind = mind.commitFully(newPartner, offer) var updatedMind: MGM2Mind = mind.commitFully(newPartner, offer)
updatedMind = updatedMind.updateDeltas(variable: Variable, offer.moves.head.payoff)
updatedMind = updatedMind.setCurrBestOffer(Some(offer))
broadcast(InformDelta(updatedMind.deltas(variable))) broadcast(InformDelta(updatedMind.deltas(variable)))
// MM: Should be replaced by // MM: Should be replaced by
// broadcast(InformDelta(offer.moves.head.payoff)) // broadcast(InformDelta(offer.moves.head.payoff))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment