Uses of Interface
sudoku.Table.Protocol
-
-
Uses of Table.Protocol in sudoku
Subinterfaces of Table.Protocol in sudoku Modifier and Type Interface Description static interfaceTable.InitialisationProtocolProtocol interface for messages for initialisation strategyClasses in sudoku that implement Table.Protocol Modifier and Type Class Description static classTable.AcceptNegotiationsResultsMsgMessage telling that the Player accepted negotiations results.static classTable.AdditionalInfoMsgMessage received from the Player, consisting of it's subjective weights of requested digits.static classTable.CreateMsgMessage for creating the Table.static classTable.NegotiationsMsgAbstract class for messages received from the Player during negotiations.static classTable.OfferMsgMessage received from the Player, consisting of it's subjectively the best digit to be insertedstatic classTable.PlayerIsDeadMsgMessage received from the Player when agent is about to crash.static classTable.RegisterPlayerMsgMessage for registering a Player.static classTable.ResetMemoryMsgMessage commanding the agent to reset it's memory due to start of new iteration.static classTable.WakeUpMsgMessage received from the Teacher when agent is not responding.static classTable.WithdrawOfferMsgMessage received when the Player withdraws it's present offer.Fields in sudoku with type parameters of type Table.Protocol Modifier and Type Field Description akka.actor.typed.ActorRef<Table.Protocol>Player.NegotiationsMsg. _replyToprivate AgentMap<akka.actor.typed.ActorRef<Table.Protocol>>Player. _tablesMap from global Table id to internal index and Table reference.private Map<Integer,akka.actor.typed.ActorRef<Table.Protocol>>Teacher. _tablesData structure for storing all Tables - child agents.(package private) akka.actor.typed.ActorRef<Table.Protocol>Player.RegisterTableMsg. _tableToRegisterMethods in sudoku that return types with arguments of type Table.Protocol Modifier and Type Method Description static akka.actor.typed.Behavior<Table.Protocol>Table. create(Table.CreateMsg createMsg)Public method that calls private constructor.akka.actor.typed.javadsl.Receive<Table.Protocol>Table. createReceive()Main method controlling incoming messages.private akka.actor.typed.Behavior<Table.Protocol>Table. onAcceptNegotiationsResults(Table.AcceptNegotiationsResultsMsg msg)Table collects accepting messages and finishes negotiations.private akka.actor.typed.Behavior<Table.Protocol>Table. onAdditionalInfo(Table.AdditionalInfoMsg msg)Receives requested weighs for given digits.private akka.actor.typed.Behavior<Table.Protocol>Table. onOffer(Table.OfferMsg msg)Receives new offer from registered Player.private akka.actor.typed.Behavior<Table.Protocol>Table. onPlayerIsDead(Table.PlayerIsDeadMsg msg)Table is being informed that its Player is dead.private akka.actor.typed.Behavior<Table.Protocol>Table. onRegisterPlayer(Table.RegisterPlayerMsg msg)Registers new Player to this Table.private akka.actor.typed.Behavior<Table.Protocol>Table. onResetMemory(Table.ResetMemoryMsg msg)Table resets it's memory to get ready for new iteration.private akka.actor.typed.Behavior<Table.Protocol>Table. onWakeUp(Table.WakeUpMsg msg)Table is being informed that is not enough responsive.private akka.actor.typed.Behavior<Table.Protocol>Table. onWithdrawOffer(Table.WithdrawOfferMsg msg)Action on the Player's present offer withdrawal.Constructor parameters in sudoku with type arguments of type Table.Protocol Constructor Description AdditionalInfoRequestMsg(int[] otherDigits, akka.actor.typed.ActorRef<Table.Protocol> replyTo, int tableId, int iterationId)NegotiationsFinishedMsg(int resultingDigit, akka.actor.typed.ActorRef<Table.Protocol> replyTo, int tableId, int iterationId)NegotiationsMsg(akka.actor.typed.ActorRef<Table.Protocol> replyTo, int tableId, int iterationId)NegotiationsPositiveMsg(int approvedDigit, akka.actor.typed.ActorRef<Table.Protocol> replyTo, int tableId, int iterationId)RegisterTableMsg(akka.actor.typed.ActorRef<Table.Protocol> tableToRegister, int tableId, int digit, boolean mask, akka.actor.typed.ActorRef<Teacher.Protocol> replyTo)RejectOfferMsg(int rejectedDigit, akka.actor.typed.ActorRef<Table.Protocol> replyTo, int tableId, int iterationId)Table(akka.actor.typed.javadsl.ActorContext<Table.Protocol> context, Table.CreateMsg createMsg)
-