Uses of Interface
sudoku.Teacher.Protocol
-
-
Uses of Teacher.Protocol in sudoku
Classes in sudoku that implement Teacher.Protocol Modifier and Type Class Description static class
Teacher.CreateMsg
Message for creating the Teacher.static class
Teacher.InspectChildDigitsMsg
Message commanding the Teacher to inspect it's Players' digits.static class
Teacher.IterationTimeoutMsg
Reply from the TimerManager, announcing that Teacher's tables are not responding.static class
Teacher.MemorisedDigitsMsg
Reply for a request for memorised Digits and Masks by the Player.static class
Teacher.PerformedMemoryResetMsg
The agent reports to the Teacher that it had performed reset of it's memory.static class
Teacher.PlayerPerformedMemoryResetMsg
The Player's version of PerformedMemoryResetMsg.static class
Teacher.RegisteredMsg
Message received after registering an agent.static class
Teacher.RegisteredPlayerMsg
Message received after registering a Player.static class
Teacher.RegisteredTableMsg
Message received after registering a Table.static class
Teacher.RewardReceivedMsg
Reply from the Player after granting it new reward.static class
Teacher.SimulateCrashMsg
Message for making the Teacher crash.static class
Teacher.TableFinishedNegotiationsMsg
Message reporting negotiation's finish for a one of Tables, providing solution - a digitstatic class
Teacher.TablePerformedMemoryResetMsg
The Table's version of PerformedMemoryResetMsg.static class
Teacher.TablesAreNotRespondingMsg
Reply from the TimerManager, announcing that Teacher's tables are not responding.Fields in sudoku with type parameters of type Teacher.Protocol Modifier and Type Field Description private akka.actor.typed.ActorRef<Teacher.Protocol>
Player. _parent
Reference to Player's parent - the Teacherprivate akka.actor.typed.ActorRef<Teacher.Protocol>
Table. _parent
Reference to Table's parent - the Teacherprivate akka.actor.typed.ActorRef<Teacher.Protocol>
TimerManager. _parent
Parent - the only agent TimeManager replies to.akka.actor.typed.ActorRef<Teacher.Protocol>
TimerManager.CreateMsg. _parent
(package private) akka.actor.typed.ActorRef<Teacher.Protocol>
Player.CreateMsg. _replyTo
akka.actor.typed.ActorRef<Teacher.Protocol>
Player.GrantRewardMsg. _replyTo
akka.actor.typed.ActorRef<Teacher.Protocol>
Player.MemorisedDigitsRequestMsg. _replyTo
(package private) akka.actor.typed.ActorRef<Teacher.Protocol>
Player.RegisterTableMsg. _replyTo
akka.actor.typed.ActorRef<Teacher.Protocol>
Player.ResetMemoryMsg. _replyTo
akka.actor.typed.ActorRef<Teacher.Protocol>
Player.ResetMemorySoftlyMsg. _replyTo
(package private) akka.actor.typed.ActorRef<Teacher.Protocol>
Table.CreateMsg. _replyTo
(package private) akka.actor.typed.ActorRef<Teacher.Protocol>
Table.RegisterPlayerMsg. _replyTo
akka.actor.typed.ActorRef<Teacher.Protocol>
Table.ResetMemoryMsg. _replyTo
private akka.actor.typed.ActorRef<Teacher.Protocol>
SudokuSupervisor. _teacher
Child Teacher agent.Methods in sudoku that return types with arguments of type Teacher.Protocol Modifier and Type Method Description static akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. create(Teacher.CreateMsg createMsg)
Public method that calls private constructor.akka.actor.typed.javadsl.Receive<Teacher.Protocol>
Teacher. createReceive()
Main method controlling incoming messages.private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onInspectChildDigits(Teacher.InspectChildDigitsMsg msg)
Sends MemorisedDigitsRequestMsg to all child Players.private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onIterationTimeout(Teacher.IterationTimeoutMsg msg)
private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onMemorisedDigits(Teacher.MemorisedDigitsMsg msg)
Gathers received MemorisedDigitsMsg from requested Players.private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onPlayerPerformedMemoryReset(Teacher.PlayerPerformedMemoryResetMsg msg)
Teacher collects messages reporting it's Players' memory being reset.private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onRewardReceived(Teacher.RewardReceivedMsg msg)
Teacher collects messages reporting receiving rewards.private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onSimulateCrash(Teacher.SimulateCrashMsg simulateCrashMsg)
Behaviour towards crashing message - simulates Teacher crashing.private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onTableFinishedNegotiations(Teacher.TableFinishedNegotiationsMsg msg)
Teacher collects messages reporting negotiations' solutions.private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onTablePerformedMemoryReset(Teacher.TablePerformedMemoryResetMsg msg)
Teacher collects messages reporting it's Tables' memory being reset.private akka.actor.typed.Behavior<Teacher.Protocol>
Teacher. onTablesAreNotResponding(Teacher.TablesAreNotRespondingMsg msg)
When Teacher got TablesAreNotRespondingMsg, mentioned Tables are treated dead.Constructor parameters in sudoku with type arguments of type Teacher.Protocol Constructor Description CreateMsg(int playerId, int sudokuSize, akka.actor.typed.ActorRef<Teacher.Protocol> replyTo)
CreateMsg(int tableId, Position tablePos, int sudokuSize, akka.actor.typed.ActorRef<Teacher.Protocol> replyTo)
CreateMsg(akka.actor.typed.ActorRef<Teacher.Protocol> parent)
GrantRewardMsg(float rewardValue, akka.actor.typed.ActorRef<Teacher.Protocol> replyTo)
MemorisedDigitsRequestMsg(akka.actor.typed.ActorRef<Teacher.Protocol> replyTo, int[] tableIds)
ResetMemoryMsg(akka.actor.typed.ActorRef<Teacher.Protocol> replyTo)
ResetMemoryMsg(akka.actor.typed.ActorRef<Teacher.Protocol> replyTo)
ResetMemorySoftlyMsg(akka.actor.typed.ActorRef<Teacher.Protocol> replyTo)
Teacher(akka.actor.typed.javadsl.ActorContext<Teacher.Protocol> context, Teacher.CreateMsg createMsg)
-