Uses of Interface
sudoku.Player.Protocol
-
-
Uses of Player.Protocol in sudoku
Subinterfaces of Player.Protocol in sudoku Modifier and Type Interface Description static interface
Player.InitialisationProtocol
Protocol interface for messages for initialisation strategy.Classes in sudoku that implement Player.Protocol Modifier and Type Class Description static class
Player.AdditionalInfoRequestMsg
Message received from the Table, requesting for additional info about other stakeholder's(s') digit.static class
Player.ConsentToStartIterationMsg
Message allowing the agent to start new iteration by sending new offers.static class
Player.CreateMsg
Message for creating the Player.static class
Player.GrantRewardMsg
Message from the Teacher granting the Player reward (or punishment if negative) for its choices.static class
Player.MemorisedDigitsRequestMsg
Message - request for memorised Digits and Masks for given Table IDs by the Player.static class
Player.NegotiationsFinishedMsg
Message received when the Table announces finish of the negotiations.static class
Player.NegotiationsMsg
Abstract class for messages received from Table Agent during negotiations.static class
Player.NegotiationsPositiveMsg
Message received when the Table announces positive result of the negotiations.static class
Player.RegisterTableMsg
Message for registering a Table.static class
Player.RejectOfferMsg
Message received when Player's offer is rejected, requesting for new offer.static class
Player.ResetMemoryMsg
Message commanding the agent to reset it's memory due to start of new iteration.static class
Player.ResetMemorySoftlyMsg
Message commanding the agent to reset it's memory softly due to start of new mini-iteration.static class
Player.WakeUpMsg
Message received from the Table when agent is not responding.Fields in sudoku with type parameters of type Player.Protocol Modifier and Type Field Description private AgentMap<akka.actor.typed.ActorRef<Player.Protocol>>
Table. _players
Map from global Player id to internal index and Player reference Data structure for storing Players - agents registered to this Table.private Map<Integer,akka.actor.typed.ActorRef<Player.Protocol>>
Teacher. _players
Data structure for storing all Players - child agents.(package private) akka.actor.typed.ActorRef<Player.Protocol>
Table.RegisterPlayerMsg. _playerToRegister
akka.actor.typed.ActorRef<Player.Protocol>
Table.NegotiationsMsg. _replyTo
Methods in sudoku that return types with arguments of type Player.Protocol Modifier and Type Method Description static akka.actor.typed.Behavior<Player.Protocol>
Player. create(Player.CreateMsg createMsg)
Public method that calls private constructor.akka.actor.typed.javadsl.Receive<Player.Protocol>
Player. createReceive()
Main method controlling incoming messages.private akka.actor.typed.Behavior<Player.Protocol>
Player. onAdditionalInfoRequest(Player.AdditionalInfoRequestMsg msg)
Weighs given offer(s) for given digits.private akka.actor.typed.Behavior<Player.Protocol>
Player. onConsentToStartIteration(Player.ConsentToStartIterationMsg msg)
Player receives permission to start new iteration.private akka.actor.typed.Behavior<Player.Protocol>
Player. onGrantReward(Player.GrantRewardMsg msg)
Player receives reward or punishment from the Teacher for its choices during the last iteration.private akka.actor.typed.Behavior<Player.Protocol>
Player. onMemorisedDigitsRequest(Player.MemorisedDigitsRequestMsg msg)
During inspection, replies with all memorised Digits and Masks.private akka.actor.typed.Behavior<Player.Protocol>
Player. onNegotiationsFinished(Player.NegotiationsFinishedMsg msg)
Action taken when negotiations finished.private akka.actor.typed.Behavior<Player.Protocol>
Player. onNegotiationsPositive(Player.NegotiationsPositiveMsg msg)
Action taken when Player is informed of positive result of the negotiations.private akka.actor.typed.Behavior<Player.Protocol>
Player. onRegisterTable(Player.RegisterTableMsg msg)
Registers new Table to this Player.private akka.actor.typed.Behavior<Player.Protocol>
Player. onRejectOffer(Player.RejectOfferMsg msg)
Player is informed that theirs offer is rejected.private akka.actor.typed.Behavior<Player.Protocol>
Player. onResetMemory(Player.ResetMemoryMsg msg)
Player resets it's memory to get ready for new iteration.private akka.actor.typed.Behavior<Player.Protocol>
Player. onResetMemorySoftly(Player.ResetMemorySoftlyMsg msg)
Player resets it's memory softly to get ready for new mini-iteration.private akka.actor.typed.Behavior<Player.Protocol>
Player. onWakeUp(Player.WakeUpMsg msg)
Player is being informed that is not enough responsive.Method parameters in sudoku with type arguments of type Player.Protocol Modifier and Type Method Description private void
Teacher. registerMutually(akka.actor.typed.ActorRef<Player.Protocol> playerRef, int playerId, int sudokuSize, int x, int y)
For given Player, registers to it the Table assigned to given position: (x,y).Constructor parameters in sudoku with type arguments of type Player.Protocol Constructor Description AcceptNegotiationsResultsMsg(int acceptedDigit, akka.actor.typed.ActorRef<Player.Protocol> replyTo, int playerId, int iterationId)
AdditionalInfoMsg(int[] digits, float[] weights, boolean[] collisions, akka.actor.typed.ActorRef<Player.Protocol> replyTo, int playerId, int iterationId)
NegotiationsMsg(akka.actor.typed.ActorRef<Player.Protocol> replyTo, int playerId, int iterationId)
OfferMsg(int offeredDigit, float digitWeight, akka.actor.typed.ActorRef<Player.Protocol> replyTo, int playerId, int iterationId)
Player(akka.actor.typed.javadsl.ActorContext<Player.Protocol> context, Player.CreateMsg createMsg)
RegisterPlayerMsg(akka.actor.typed.ActorRef<Player.Protocol> playerToRegister, int playerId, akka.actor.typed.ActorRef<Teacher.Protocol> replyTo)
WithdrawOfferMsg(int withdrawnDigit, akka.actor.typed.ActorRef<Player.Protocol> replyTo, int playerId, int iterationId)
-