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

update to supervisor

parent 39646e76
Branches
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ dot -Tpng agentBeginning.gv -o agentBeginning.png ...@@ -8,6 +8,8 @@ dot -Tpng agentBeginning.gv -o agentBeginning.png
dot -Tpng offerer.gv -o offerer.png dot -Tpng offerer.gv -o offerer.png
dot -Tpng receiver.gv -o receiver.png
dot -Tpng uncommited.gv -o uncommited.png dot -Tpng uncommited.gv -o uncommited.png
dot -Tpng committed.gv -o committed.png dot -Tpng committed.gv -o committed.png
doc/fsm/offerer.png

190 KiB | W: | H:

doc/fsm/offerer.png

197 KiB | W: | H:

doc/fsm/offerer.png
doc/fsm/offerer.png
doc/fsm/offerer.png
doc/fsm/offerer.png
  • 2-up
  • Swipe
  • Onion skin
doc/fsm/supervisor.png

102 KiB | W: | H:

doc/fsm/supervisor.png

128 KiB | W: | H:

doc/fsm/supervisor.png
doc/fsm/supervisor.png
doc/fsm/supervisor.png
doc/fsm/supervisor.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -10,7 +10,7 @@ digraph finite_state_machine { ...@@ -10,7 +10,7 @@ digraph finite_state_machine {
start -> WaitingForAgentValues [label = " broadcast(agents) ! Trigger start -> WaitingForAgentValues [label = " broadcast(agents) ! Trigger
"]; "];
start -> start [label = " agent : KickStartMe => WaitingForAgentValues -> WaitingForAgentValues [label = " agent : KickStartMe =>
agent ! ContinueAlgo agent ! ContinueAlgo
"]; "];
...@@ -20,9 +20,12 @@ digraph finite_state_machine { ...@@ -20,9 +20,12 @@ digraph finite_state_machine {
WaitingForAgentValues -> DecidingToContinueOrStop [label = " sender : InformValue(val) && (#currentContext == #agents - 1) => WaitingForAgentValues -> DecidingToContinueOrStop [label = " sender : InformValue(val) && (#currentContext == #agents - 1) =>
currentContext.put(sender, val) currentContext.put(sender, val)
stopOrContinue = shouldAlgoKeepOn() self.shouldAlgoKeepOn() match {
broadcast(agents) ! WhatToDo(stopOrContinue) case true => broadcast ! ContinueAlgo
self ! WhatToDo(stopOrContinue) self ! ContinueAlgo
case false => broadcast ! StopAlgo
self ! StopAlgo
}
"]; "];
WaitingForAgentValues -> WaitingForAgentValues [label = " agent : Trigger => WaitingForAgentValues -> WaitingForAgentValues [label = " agent : Trigger =>
...@@ -30,7 +33,7 @@ digraph finite_state_machine { ...@@ -30,7 +33,7 @@ digraph finite_state_machine {
"]; "];
DecidingToContinueOrStop -> WaitingForAgentValues [label = " self ! ContinueAlgo => DecidingToContinueOrStop -> WaitingForAgentValues [label = " self ! ContinueAlgo =>
currentContext = ∅ currentContext.reset();
unstashall unstashall
"]; "];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment