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

updated deciding supervisor with inform message

parent 92f5aad9
Branches
No related tags found
No related merge requests found
...@@ -158,6 +158,11 @@ class Supervisor(val pb : DCOP, val algorithm: Algorithm, val initialContext: Co ...@@ -158,6 +158,11 @@ class Supervisor(val pb : DCOP, val algorithm: Algorithm, val initialContext: Co
*/ */
when(Deciding) { when(Deciding) {
case Event(Inform(measure), status) => {
stash
stay using status
}
//when an agent informs the supervisor of its current value //when an agent informs the supervisor of its current value
case Event(InformValue(v), status) => { case Event(InformValue(v), status) => {
stash stash
...@@ -173,6 +178,7 @@ class Supervisor(val pb : DCOP, val algorithm: Algorithm, val initialContext: Co ...@@ -173,6 +178,7 @@ class Supervisor(val pb : DCOP, val algorithm: Algorithm, val initialContext: Co
} }
case Event(StopAlgo, status) => { case Event(StopAlgo, status) => {
unstashAll
goto(FinalSupervisorState) using status goto(FinalSupervisorState) using status
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment