A B C D E F G H I M N O P Q R S T V W X Y _
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AcceptNegotiationsResultsMsg(int, ActorRef<Player.Protocol>, int, int) - Constructor for class sudoku.Table.AcceptNegotiationsResultsMsg
- AdditionalInfoMsg(int[], float[], boolean[], ActorRef<Player.Protocol>, int, int) - Constructor for class sudoku.Table.AdditionalInfoMsg
- AdditionalInfoRequestMsg(int[], ActorRef<Table.Protocol>, int, int) - Constructor for class sudoku.Player.AdditionalInfoRequestMsg
- addPlayerReset() - Method in class sudoku.TeacherMemory
- addPlayerRewarded() - Method in class sudoku.TeacherMemory
- addTableFinished(int) - Method in class sudoku.TeacherMemory
- addTableReset() - Method in class sudoku.TeacherMemory
- afterTableFinished(int) - Method in class sudoku.Teacher
-
Teacher marks Table as finished and checks if it was the last one - if so, calls returnNewSolution().
- AgentMap<T> - Class in sudoku
-
Map from global Table id to internal index and Table reference.
- AgentMap(int) - Constructor for class sudoku.AgentMap
- allAcceptances() - Method in class sudoku.TableMemory
- allResetsCollected() - Method in class sudoku.TeacherMemory
- allSpecifyFlagTrue() - Method in class sudoku.TableMemory
- alreadyAccepted(int) - Method in class sudoku.PlayerMemory
- attemptBestOffer() - Method in class sudoku.Table
-
Table tries to evaluate the best offer if gathered enough information.
B
- BadFinishException(String, int, int, int, int) - Constructor for exception sudoku.Player.BadFinishException
- BadRejectionException(String, int, int, int, int) - Constructor for exception sudoku.Player.BadRejectionException
C
- chooseBestOffer() - Method in class sudoku.TableMemory
- clearOffer(int) - Method in class sudoku.TableMemory
- compareTo(PlayerMemory.WeightValuePair) - Method in class sudoku.PlayerMemory.WeightValuePair
- ConsentToStartIterationMsg() - Constructor for class sudoku.Player.ConsentToStartIterationMsg
- countdown(int) - Method in class sudoku.Timer
-
Timer waits for some time.
- create() - Static method in class sudoku.SudokuSupervisor
-
Public method that calls private constructor.
- create(Player.CreateMsg) - Static method in class sudoku.Player
-
Public method that calls private constructor.
- create(Table.CreateMsg) - Static method in class sudoku.Table
-
Public method that calls private constructor.
- create(Teacher.CreateMsg) - Static method in class sudoku.Teacher
-
Public method that calls private constructor.
- create(Timer.CreateMsg) - Static method in class sudoku.Timer
-
Public method that calls private constructor.
- create(TimerManager.CreateMsg) - Static method in class sudoku.TimerManager
-
Public method that calls private constructor.
- CreateMsg(int, int, ActorRef<Teacher.Protocol>) - Constructor for class sudoku.Player.CreateMsg
- CreateMsg(int, Position, int, ActorRef<Teacher.Protocol>) - Constructor for class sudoku.Table.CreateMsg
- CreateMsg(ActorRef<Teacher.Protocol>) - Constructor for class sudoku.TimerManager.CreateMsg
- CreateMsg(ActorRef<TimerManager.Protocol>, int, int, int) - Constructor for class sudoku.Timer.CreateMsg
- CreateMsg(String, Sudoku, ActorRef<SudokuSupervisor.Protocol>) - Constructor for class sudoku.Teacher.CreateMsg
- createReceive() - Method in class sudoku.Player
-
Main method controlling incoming messages.
- createReceive() - Method in class sudoku.SudokuSupervisor
-
Main method controlling incoming messages.
- createReceive() - Method in class sudoku.Table
-
Main method controlling incoming messages.
- createReceive() - Method in class sudoku.Teacher
-
Main method controlling incoming messages.
- createReceive() - Method in class sudoku.Timer
-
Main method controlling incoming messages.
- createReceive() - Method in class sudoku.TimerManager
-
Main method controlling incoming messages.
D
- decrementRequestCount(int) - Method in class sudoku.TableMemory
- didAlreadyFinished(int) - Method in class sudoku.TableMemory
- DigitImmutableException(String) - Constructor for exception sudoku.Sudoku.DigitImmutableException
- DigitOutOfRangeException(String) - Constructor for exception sudoku.Sudoku.DigitOutOfRangeException
- DoubleFinishException(String, int, int, int) - Constructor for exception sudoku.Player.DoubleFinishException
E
- equals(Object) - Method in class sudoku.Position
- equals(Object) - Method in class sudoku.Sudoku
F
- finish(int) - Method in class sudoku.PlayerMemory
- finishedIterationWithDigit(int) - Method in class sudoku.TableMemory
- first - Variable in class sudoku.Pair
G
- genericReset(int, PlayerMemory.MaskState) - Method in class sudoku.PlayerMemory
- getAccepted(int) - Method in class sudoku.PlayerMemory
- getAgent(int) - Method in class sudoku.AgentMap
-
Get agent reference by internal index.
- getAgentById(int) - Method in class sudoku.AgentMap
-
Get agent reference by global id.
- getAgentCount() - Method in class sudoku.AgentMap
- getAward(int, int) - Method in class sudoku.PlayerMemory
- getBestOffer() - Method in class sudoku.TableMemory
- getBoard() - Method in class sudoku.Sudoku
- getCollision(int, int) - Method in class sudoku.PlayerMemory
- getDigit(int) - Method in class sudoku.PlayerMemory
- getDigit(int, int) - Method in class sudoku.Sudoku
- getDigitPriority(int, int) - Method in class sudoku.PlayerMemory
- getEmptyFieldsCount() - Method in class sudoku.Sudoku
- getIndex(int) - Method in class sudoku.AgentMap
-
Get internal index by global id.
- getIterationId() - Method in class sudoku.PlayerMemory
- getIterationId() - Method in class sudoku.TableMemory
- getMask(int) - Method in class sudoku.PlayerMemory
- getMask(int, int) - Method in class sudoku.Sudoku
- getNormalTableIds(Sudoku) - Method in class sudoku.Teacher
-
Returns tableIds only for tables that are responsible for not hardcoded fields.
- getOfferCount() - Method in class sudoku.TableMemory
- getPenalty(int, int) - Method in class sudoku.Teacher
-
Calculate amount of base reward granted to Player at the end of big iteration.
- getPlayerCount() - Method in class sudoku.Sudoku
- getRank() - Method in class sudoku.Sudoku
- getSize() - Method in class sudoku.Sudoku
- getSpecifyFlag(int) - Method in class sudoku.TableMemory
- getSudokuSize() - Method in class sudoku.PlayerMemory
- getTableCount() - Method in class sudoku.Sudoku
- getTableIdsForPlayerId(int) - Method in class sudoku.Teacher
-
Generates array of tableIds for given playerId.
- getTablePriority(int) - Method in class sudoku.PlayerMemory
- getTablesNotFinished() - Method in class sudoku.TeacherMemory
- getUniqueOfferIndex(int) - Method in class sudoku.TableMemory
-
Get index of a specific offer in _uniqueOffers based on a given digit.
- getUnknownDigits(int) - Method in class sudoku.TableMemory
- GrantRewardMsg(float, ActorRef<Teacher.Protocol>) - Constructor for class sudoku.Player.GrantRewardMsg
H
- HARD - sudoku.PlayerMemory.MaskState
- hardReset() - Method in class sudoku.PlayerMemory
-
Reset memory values that are not retained between "big" iterations.
- hashCode() - Method in class sudoku.Position
I
- IncorrectBoardSizeException(String) - Constructor for exception sudoku.Sudoku.IncorrectBoardSizeException
- IncorrectRegisterException(String) - Constructor for exception sudoku.Table.IncorrectRegisterException
- IncorrectRegisterException(String, int, int) - Constructor for exception sudoku.Player.IncorrectRegisterException
- incrementAcceptanceCount() - Method in class sudoku.TableMemory
- incrementRequestCount(int) - Method in class sudoku.TableMemory
- insertDigit(int, int, int) - Method in class sudoku.Sudoku
- InspectChildDigitsMsg(ActorRef<Sudoku>) - Constructor for class sudoku.Teacher.InspectChildDigitsMsg
- isDenied(int) - Method in class sudoku.TableMemory
- isFinished(int, int) - Method in class sudoku.PlayerMemory
- isFull() - Method in class sudoku.AgentMap
-
Check whether more agents can be registered.
- IterationFinishedMsg(Sudoku) - Constructor for class sudoku.SudokuSupervisor.IterationFinishedMsg
- IterationTimeoutMsg(int) - Constructor for class sudoku.Teacher.IterationTimeoutMsg
M
- main(String[]) - Static method in class sudoku.SudokuStart
- MaskState() - Constructor for enum sudoku.PlayerMemory.MaskState
- MemorisedDigitsMsg(Map<Integer, Pair<Integer, Boolean>>, int) - Constructor for class sudoku.Teacher.MemorisedDigitsMsg
- MemorisedDigitsRequestMsg(ActorRef<Teacher.Protocol>, int[]) - Constructor for class sudoku.Player.MemorisedDigitsRequestMsg
N
- NegotiationsFinishedMsg(int, ActorRef<Table.Protocol>, int, int) - Constructor for class sudoku.Player.NegotiationsFinishedMsg
- NegotiationsMsg(ActorRef<Player.Protocol>, int, int) - Constructor for class sudoku.Table.NegotiationsMsg
- NegotiationsMsg(ActorRef<Table.Protocol>, int, int) - Constructor for class sudoku.Player.NegotiationsMsg
- NegotiationsPositiveMsg(int, ActorRef<Table.Protocol>, int, int) - Constructor for class sudoku.Player.NegotiationsPositiveMsg
- NewIterationStartedMsg(int) - Constructor for class sudoku.TimerManager.NewIterationStartedMsg
- NONE - sudoku.PlayerMemory.MaskState
- noRequestsPending() - Method in class sudoku.TableMemory
O
- OfferMsg(int, float, ActorRef<Player.Protocol>, int, int) - Constructor for class sudoku.Table.OfferMsg
- onAcceptNegotiationsResults(Table.AcceptNegotiationsResultsMsg) - Method in class sudoku.Table
-
Table collects accepting messages and finishes negotiations.
- onAdditionalInfo(Table.AdditionalInfoMsg) - Method in class sudoku.Table
-
Receives requested weighs for given digits.
- onAdditionalInfoRequest(Player.AdditionalInfoRequestMsg) - Method in class sudoku.Player
-
Weighs given offer(s) for given digits.
- onConsentToStartIteration(Player.ConsentToStartIterationMsg) - Method in class sudoku.Player
-
Player receives permission to start new iteration.
- onGrantReward(Player.GrantRewardMsg) - Method in class sudoku.Player
-
Player receives reward or punishment from the Teacher for its choices during the last iteration.
- onInspectChildDigits(Teacher.InspectChildDigitsMsg) - Method in class sudoku.Teacher
-
Sends MemorisedDigitsRequestMsg to all child Players.
- onIterationFinished(SudokuSupervisor.IterationFinishedMsg) - Method in class sudoku.SudokuSupervisor
-
As every iteration finishes, SudokuSupervisor saves new (iterated) solution on the hard drive.
- onIterationTimeout(Teacher.IterationTimeoutMsg) - Method in class sudoku.Teacher
- onMemorisedDigits(Teacher.MemorisedDigitsMsg) - Method in class sudoku.Teacher
-
Gathers received MemorisedDigitsMsg from requested Players.
- onMemorisedDigitsRequest(Player.MemorisedDigitsRequestMsg) - Method in class sudoku.Player
-
During inspection, replies with all memorised Digits and Masks.
- onNegotiationsFinished(Player.NegotiationsFinishedMsg) - Method in class sudoku.Player
-
Action taken when negotiations finished.
- onNegotiationsPositive(Player.NegotiationsPositiveMsg) - Method in class sudoku.Player
-
Action taken when Player is informed of positive result of the negotiations.
- onNewIterationStarted(TimerManager.NewIterationStartedMsg) - Method in class sudoku.TimerManager
-
TimerManager when asked by the Teacher, creates an agent - Timer to measure some time.
- onOffer(Table.OfferMsg) - Method in class sudoku.Table
-
Receives new offer from registered Player.
- onPlayerIsDead(Table.PlayerIsDeadMsg) - Method in class sudoku.Table
-
Table is being informed that its Player is dead.
- onPlayerPerformedMemoryReset(Teacher.PlayerPerformedMemoryResetMsg) - Method in class sudoku.Teacher
-
Teacher collects messages reporting it's Players' memory being reset.
- onPostStop() - Method in class sudoku.Player
-
Handler of PostStop signal.
- onPostStop() - Method in class sudoku.SudokuSupervisor
-
Handler of PostStop signal.
- onPostStop() - Method in class sudoku.Teacher
-
Handler of PostStop signal.
- onPreRestart() - Method in class sudoku.Table
-
Handler of PreRestart signal.
- onPreRestart() - Method in class sudoku.Teacher
-
Handler of PreRestart signal.
- onRegisterPlayer(Table.RegisterPlayerMsg) - Method in class sudoku.Table
-
Registers new Player to this Table.
- onRegisterTable(Player.RegisterTableMsg) - Method in class sudoku.Player
-
Registers new Table to this Player.
- onRejectOffer(Player.RejectOfferMsg) - Method in class sudoku.Player
-
Player is informed that theirs offer is rejected.
- onRemindToCheckTables(TimerManager.RemindToCheckTablesMsg) - Method in class sudoku.TimerManager
-
TimerManager when asked by the Teacher, creates an agent - Timer to measure some time.
- onResetMemory(Player.ResetMemoryMsg) - Method in class sudoku.Player
-
Player resets it's memory to get ready for new iteration.
- onResetMemory(Table.ResetMemoryMsg) - Method in class sudoku.Table
-
Table resets it's memory to get ready for new iteration.
- onResetMemorySoftly(Player.ResetMemorySoftlyMsg) - Method in class sudoku.Player
-
Player resets it's memory softly to get ready for new mini-iteration.
- onRewardReceived(Teacher.RewardReceivedMsg) - Method in class sudoku.Teacher
-
Teacher collects messages reporting receiving rewards.
- onSimulateCrash(Teacher.SimulateCrashMsg) - Method in class sudoku.Teacher
-
Behaviour towards crashing message - simulates Teacher crashing.
- onSimulateTeacherCrash(SudokuSupervisor.SimulateTeacherCrashMsg) - Method in class sudoku.SudokuSupervisor
-
Behaviour towards SimulateTeacherCrashMsg message.
- onTableFinishedNegotiations(Teacher.TableFinishedNegotiationsMsg) - Method in class sudoku.Teacher
-
Teacher collects messages reporting negotiations' solutions.
- onTablePerformedMemoryReset(Teacher.TablePerformedMemoryResetMsg) - Method in class sudoku.Teacher
-
Teacher collects messages reporting it's Tables' memory being reset.
- onTablesAreNotResponding(Teacher.TablesAreNotRespondingMsg) - Method in class sudoku.Teacher
-
When Teacher got TablesAreNotRespondingMsg, mentioned Tables are treated dead.
- onTeacherWillRestart(SudokuSupervisor.TeacherWillRestartMsg) - Method in class sudoku.SudokuSupervisor
-
Behaviour towards TeacherWillRestartMsg message.
- onTermination(SudokuSupervisor.TerminateMsg) - Method in class sudoku.SudokuSupervisor
-
Behaviour towards TerminateMsg message.
- onTimePassed(TimerManager.TimePassedMsg) - Method in class sudoku.TimerManager
-
TimerManager is informed that certain time has passed.
- onWakeUp(Player.WakeUpMsg) - Method in class sudoku.Player
-
Player is being informed that is not enough responsive.
- onWakeUp(Table.WakeUpMsg) - Method in class sudoku.Table
-
Table is being informed that is not enough responsive.
- onWithdrawOffer(Table.WithdrawOfferMsg) - Method in class sudoku.Table
-
Action on the Player's present offer withdrawal.
- OverwriteOfferException(String, int) - Constructor for exception sudoku.TableMemory.OverwriteOfferException
P
- Pair<T1,T2> - Class in sudoku
- Pair(T1, T2) - Constructor for class sudoku.Pair
- PerformedMemoryResetMsg(int) - Constructor for class sudoku.Teacher.PerformedMemoryResetMsg
- Player - Class in sudoku
-
Playing agent, who actually learns to solve Sudoku.
- Player(ActorContext<Player.Protocol>, Player.CreateMsg) - Constructor for class sudoku.Player
- Player.AdditionalInfoRequestMsg - Class in sudoku
-
Message received from the Table, requesting for additional info about other stakeholder's(s') digit.
- Player.BadFinishException - Exception in sudoku
-
Custom exception thrown when Table finishes negotiations with a digit different from what was offered.
- Player.BadRejectionException - Exception in sudoku
-
Custom exception thrown when a Player receives RejectOfferMsg with a different digit it offered.
- Player.ConsentToStartIterationMsg - Class in sudoku
-
Message allowing the agent to start new iteration by sending new offers.
- Player.CreateMsg - Class in sudoku
-
Message for creating the Player.
- Player.DoubleFinishException - Exception in sudoku
-
Custom exception thrown when Player receives NegotiationsFinishedMsg with the same digit from more than one Table.
- Player.GrantRewardMsg - Class in sudoku
-
Message from the Teacher granting the Player reward (or punishment if negative) for its choices.
- Player.IncorrectRegisterException - Exception in sudoku
-
Custom exception thrown when excessive Table is about to be registered to this Player
- Player.InitialisationProtocol - Interface in sudoku
-
Protocol interface for messages for initialisation strategy.
- Player.MemorisedDigitsRequestMsg - Class in sudoku
-
Message - request for memorised Digits and Masks for given Table IDs by the Player.
- Player.NegotiationsFinishedMsg - Class in sudoku
-
Message received when the Table announces finish of the negotiations.
- Player.NegotiationsMsg - Class in sudoku
-
Abstract class for messages received from Table Agent during negotiations.
- Player.NegotiationsPositiveMsg - Class in sudoku
-
Message received when the Table announces positive result of the negotiations.
- Player.Protocol - Interface in sudoku
-
Protocol interface for input messages.
- Player.RegisterTableMsg - Class in sudoku
-
Message for registering a Table.
- Player.RejectOfferMsg - Class in sudoku
-
Message received when Player's offer is rejected, requesting for new offer.
- Player.ResetMemoryMsg - Class in sudoku
-
Message commanding the agent to reset it's memory due to start of new iteration.
- Player.ResetMemorySoftlyMsg - Class in sudoku
-
Message commanding the agent to reset it's memory softly due to start of new mini-iteration.
- Player.WakeUpMsg - Class in sudoku
-
Message received from the Table when agent is not responding.
- PlayerIsDeadMsg() - Constructor for class sudoku.Table.PlayerIsDeadMsg
- PlayerMemory - Class in sudoku
- PlayerMemory(int) - Constructor for class sudoku.PlayerMemory
- PlayerMemory.MaskState - Enum in sudoku
-
Definition of sudoku field mask.
- PlayerMemory.WeightValuePair - Class in sudoku
- PlayerPerformedMemoryResetMsg(int) - Constructor for class sudoku.Teacher.PlayerPerformedMemoryResetMsg
- Position - Class in sudoku
- Position(int, int) - Constructor for class sudoku.Position
- prepareForNewBigIterationAndRun() - Method in class sudoku.Teacher
- prepareForNewSmallIterationAndRun() - Method in class sudoku.Teacher
-
Teacher commands its agents (by sending ResetMemoryMsg) in appropriate order to reset theirs memory.
- prepareInspectionResults() - Method in class sudoku.Teacher
-
Prepares inspection results.
- printNatural() - Method in class sudoku.Sudoku
-
Prints the board of the Sudoku in natural, human-friendly style.
- prioritizeTables() - Method in class sudoku.PlayerMemory
Q
- quitNegotiations() - Method in class sudoku.Table
-
Ends negotiations irrevocably.
R
- readSudoku() - Method in class sudoku.SudokuSupervisor
-
Action of reading _sudoku from file.
- register(int, T) - Method in class sudoku.AgentMap
-
Register new agent in the map.
- registerAgentsOnSetup() - Method in class sudoku.Teacher
-
Action of registering all Players to Tables and all Tables to Players during startup.
- RegisteredMsg(int, boolean) - Constructor for class sudoku.Teacher.RegisteredMsg
- RegisteredPlayerMsg(int, boolean) - Constructor for class sudoku.Teacher.RegisteredPlayerMsg
- RegisteredTableMsg(int, boolean) - Constructor for class sudoku.Teacher.RegisteredTableMsg
- registerMutually(ActorRef<Player.Protocol>, int, int, int, int) - Method in class sudoku.Teacher
-
For given Player, registers to it the Table assigned to given position: (x,y).
- RegisterPlayerMsg(ActorRef<Player.Protocol>, int, ActorRef<Teacher.Protocol>) - Constructor for class sudoku.Table.RegisterPlayerMsg
- RegisterTableMsg(ActorRef<Table.Protocol>, int, int, boolean, ActorRef<Teacher.Protocol>) - Constructor for class sudoku.Player.RegisterTableMsg
- RejectOfferMsg(int, ActorRef<Table.Protocol>, int, int) - Constructor for class sudoku.Player.RejectOfferMsg
- RemindToCheckTablesMsg(int, int[]) - Constructor for class sudoku.TimerManager.RemindToCheckTablesMsg
- reset() - Method in class sudoku.Sudoku
-
Reset board to default state.
- reset() - Method in class sudoku.TableMemory
- reset() - Method in class sudoku.TeacherMemory
- resetAcceptanceCount() - Method in class sudoku.TableMemory
- ResetMemoryMsg(ActorRef<Teacher.Protocol>) - Constructor for class sudoku.Player.ResetMemoryMsg
- ResetMemoryMsg(ActorRef<Teacher.Protocol>) - Constructor for class sudoku.Table.ResetMemoryMsg
- ResetMemorySoftlyMsg(ActorRef<Teacher.Protocol>) - Constructor for class sudoku.Player.ResetMemorySoftlyMsg
- returnNewSolution() - Method in class sudoku.Teacher
-
After collecting all parts of current iteration's solution - all digits, Teacher returns new solution as a whole represented by Sudoku object to the parent - SudokuSupervisor.
- rewardCurrentDigits(float) - Method in class sudoku.PlayerMemory
-
Add reward for current combination of digits.
- rewardPlayersAndRun() - Method in class sudoku.Teacher
-
Hands out rewards to players and properly starts a new big iteration (resets agents' states beforehand).
- RewardReceivedMsg(int) - Constructor for class sudoku.Teacher.RewardReceivedMsg
S
- second - Variable in class sudoku.Pair
- sendBestOffer(int) - Method in class sudoku.Player
-
Send offer message to a Table.
- setAccepted(int, int) - Method in class sudoku.PlayerMemory
- setBestOffer(int) - Method in class sudoku.TableMemory
- setBoard(int[][]) - Method in class sudoku.Sudoku
-
Set board default state.
- setCollision(int, int) - Method in class sudoku.PlayerMemory
- setDigit(int, int) - Method in class sudoku.PlayerMemory
-
Set digit of mutable sudoku field.
- setDigitColliding(int) - Method in class sudoku.PlayerMemory
- setField(int, int, boolean) - Method in class sudoku.PlayerMemory
-
Set properties of a sudoku field.
- setNormalTables(HashSet<Integer>) - Method in class sudoku.TeacherMemory
- setOffer(int, int, float) - Method in class sudoku.TableMemory
- setSpecifyFlag(int, boolean) - Method in class sudoku.TableMemory
- setTableIdsConsideredDead(int[]) - Method in class sudoku.TeacherMemory
- setWeight(int, int, float) - Method in class sudoku.TableMemory
-
Set weight for an offer with specified digit for a single Player.
- SharedProtocols - Class in sudoku
-
Class of protocols for exchanged messages between different types of agents.
- SharedProtocols() - Constructor for class sudoku.SharedProtocols
- SharedProtocols.AssessmentProtocol - Interface in sudoku
-
Protocol for rewarding Players by the Teacher.
- SharedProtocols.InspectionProtocol - Interface in sudoku
-
Protocol for inspecting the Player by the Teacher, initiated by Supervisor.
- SharedProtocols.NegotiationsProtocol - Interface in sudoku
-
Protocol for negotiations between the Player and the Table.
- SharedProtocols.NewIterationProtocol - Interface in sudoku
-
Protocol for starting new iteration by the Teacher, affecting both the Player and the Table.
- SharedProtocols.RegisteringProtocol - Interface in sudoku
-
Protocol for registering both the Player and the Table by the Teacher.
- SharedProtocols.TimeMeasurementProtocol - Interface in sudoku
-
Protocol between TimerManager and Timers, used when some time is measured in parallel.
- SharedProtocols.ValidationProtocol - Interface in sudoku
-
Protocol for agents' validation with help of the Timer agent.
- SimulateCrashMsg() - Constructor for class sudoku.Teacher.SimulateCrashMsg
- SimulateTeacherCrashMsg(ActorRef<String>) - Constructor for class sudoku.SudokuSupervisor.SimulateTeacherCrashMsg
- SOFT - sudoku.PlayerMemory.MaskState
- softReset() - Method in class sudoku.PlayerMemory
-
Reset memory values that are not retained between "small" iterations.
- spawnPlayers() - Method in class sudoku.Teacher
-
Action of spawning all child Players agents.
- spawnTables() - Method in class sudoku.Teacher
-
Action of spawning all child Tables agents.
- startNewIteration() - Method in class sudoku.Teacher
-
The Teacher starts new iteration of solving the sudoku.
- sudoku - package sudoku
- Sudoku - Class in sudoku
-
Class representing Sudoku riddle.
- Sudoku(int) - Constructor for class sudoku.Sudoku
- Sudoku(Sudoku) - Constructor for class sudoku.Sudoku
- Sudoku.DigitImmutableException - Exception in sudoku
-
Custom exception thrown when trying to modify hard-coded sudoku field.
- Sudoku.DigitOutOfRangeException - Exception in sudoku
-
Custom exception thrown when a board digit is negative or greater than sudoku rank (0 indicates an empty field).
- Sudoku.IncorrectBoardSizeException - Exception in sudoku
-
Custom exception thrown when trying to initialize board with incorrect size.
- SudokuStart - Class in sudoku
-
Starting point of the whole application.
- SudokuStart() - Constructor for class sudoku.SudokuStart
- SudokuSupervisor - Class in sudoku
-
Simple agent-guardian of the whole multi-agent-system solving Sudoku.
- SudokuSupervisor(ActorContext<SudokuSupervisor.Protocol>) - Constructor for class sudoku.SudokuSupervisor
- SudokuSupervisor.IterationFinishedMsg - Class in sudoku
-
Message received from the Teacher on every iteration's finish, containing new solution of the Sudoku riddle.
- SudokuSupervisor.Protocol - Interface in sudoku
-
Abstract interface for all commands (messages) passed to the Agent.
- SudokuSupervisor.SimulateTeacherCrashMsg - Class in sudoku
-
Message for making the Teacher crash.
- SudokuSupervisor.TeacherWillRestartMsg - Class in sudoku
-
Message when Teacher is going to be restarted.
- SudokuSupervisor.TerminateMsg - Class in sudoku
-
Message for controlled termination of the agent.
- sumWeights(TableOffer) - Method in class sudoku.TableMemory
T
- Table - Class in sudoku
-
Table agent, who moderates negotiations between 3 players for choosing the best number in the Sudoku cell.
- Table(ActorContext<Table.Protocol>, Table.CreateMsg) - Constructor for class sudoku.Table
- Table.AcceptNegotiationsResultsMsg - Class in sudoku
-
Message telling that the Player accepted negotiations results.
- Table.AdditionalInfoMsg - Class in sudoku
-
Message received from the Player, consisting of it's subjective weights of requested digits.
- Table.CreateMsg - Class in sudoku
-
Message for creating the Table.
- Table.IncorrectRegisterException - Exception in sudoku
-
Custom exception thrown when 4th Player is about to be registered to this table.
- Table.InitialisationProtocol - Interface in sudoku
-
Protocol interface for messages for initialisation strategy
- Table.NegotiationsMsg - Class in sudoku
-
Abstract class for messages received from the Player during negotiations.
- Table.OfferMsg - Class in sudoku
-
Message received from the Player, consisting of it's subjectively the best digit to be inserted
- Table.PlayerIsDeadMsg - Class in sudoku
-
Message received from the Player when agent is about to crash.
- Table.Protocol - Interface in sudoku
-
Protocol interface for input messages.
- Table.RegisterPlayerMsg - Class in sudoku
-
Message for registering a Player.
- Table.ResetMemoryMsg - Class in sudoku
-
Message commanding the agent to reset it's memory due to start of new iteration.
- Table.WakeUpMsg - Class in sudoku
-
Message received from the Teacher when agent is not responding.
- Table.WithdrawOfferMsg - Class in sudoku
-
Message received when the Player withdraws it's present offer.
- TableFinishedNegotiationsMsg(int, Position, int) - Constructor for class sudoku.Teacher.TableFinishedNegotiationsMsg
- TableMemory - Class in sudoku
- TableMemory(int) - Constructor for class sudoku.TableMemory
- TableMemory.OverwriteOfferException - Exception in sudoku
-
Custom exception thrown when a Player is about to offer a digit the second time before rejection or withdrawal
- TableOffer - Class in sudoku
- TableOffer(int) - Constructor for class sudoku.TableOffer
- TablePerformedMemoryResetMsg(int) - Constructor for class sudoku.Teacher.TablePerformedMemoryResetMsg
- TablesAreNotRespondingMsg(int[]) - Constructor for class sudoku.Teacher.TablesAreNotRespondingMsg
- Teacher - Class in sudoku
-
Agent that interprets development of the playing agents and rewards them.
- Teacher(ActorContext<Teacher.Protocol>, Teacher.CreateMsg) - Constructor for class sudoku.Teacher
- Teacher.CreateMsg - Class in sudoku
-
Message for creating the Teacher.
- Teacher.InspectChildDigitsMsg - Class in sudoku
-
Message commanding the Teacher to inspect it's Players' digits.
- Teacher.IterationTimeoutMsg - Class in sudoku
-
Reply from the TimerManager, announcing that Teacher's tables are not responding.
- Teacher.MemorisedDigitsMsg - Class in sudoku
-
Reply for a request for memorised Digits and Masks by the Player.
- Teacher.PerformedMemoryResetMsg - Class in sudoku
-
The agent reports to the Teacher that it had performed reset of it's memory.
- Teacher.PlayerPerformedMemoryResetMsg - Class in sudoku
-
The Player's version of PerformedMemoryResetMsg.
- Teacher.Protocol - Interface in sudoku
-
Protocol interface for input messages.
- Teacher.RegisteredMsg - Class in sudoku
-
Message received after registering an agent.
- Teacher.RegisteredPlayerMsg - Class in sudoku
-
Message received after registering a Player.
- Teacher.RegisteredTableMsg - Class in sudoku
-
Message received after registering a Table.
- Teacher.RewardReceivedMsg - Class in sudoku
-
Reply from the Player after granting it new reward.
- Teacher.SimulateCrashMsg - Class in sudoku
-
Message for making the Teacher crash.
- Teacher.TableFinishedNegotiationsMsg - Class in sudoku
-
Message reporting negotiation's finish for a one of Tables, providing solution - a digit
- Teacher.TablePerformedMemoryResetMsg - Class in sudoku
-
The Table's version of PerformedMemoryResetMsg.
- Teacher.TablesAreNotRespondingMsg - Class in sudoku
-
Reply from the TimerManager, announcing that Teacher's tables are not responding.
- TeacherMemory - Class in sudoku
- TeacherMemory(int, int, HashSet<Integer>) - Constructor for class sudoku.TeacherMemory
- TeacherWillRestartMsg(String) - Constructor for class sudoku.SudokuSupervisor.TeacherWillRestartMsg
- TerminateMsg(long, ActorRef<String>) - Constructor for class sudoku.SudokuSupervisor.TerminateMsg
- TimePassedMsg(int, ActorRef<Timer.Protocol>, int) - Constructor for class sudoku.TimerManager.TimePassedMsg
- Timer - Class in sudoku
-
Simple reactive agent that replies after some time.
- Timer(ActorContext<Timer.Protocol>, Timer.CreateMsg) - Constructor for class sudoku.Timer
-
Private constructor called only by CreateMsg.
- Timer.CreateMsg - Class in sudoku
-
Message creating the agent, as well as starting the countdown.
- Timer.Protocol - Interface in sudoku
-
Protocol interface for input messages.
- TimerManager - Class in sudoku
-
Agent that manages Timers (in parallel), responding to the Teacher.
- TimerManager(ActorContext<TimerManager.Protocol>, TimerManager.CreateMsg) - Constructor for class sudoku.TimerManager
-
Private constructor called only by CreateMsg.
- TimerManager.CreateMsg - Class in sudoku
-
Message creating the agent.
- TimerManager.NewIterationStartedMsg - Class in sudoku
-
Message from the Teacher announcing new big iteration.
- TimerManager.Protocol - Interface in sudoku
-
Protocol interface for input messages.
- TimerManager.RemindToCheckTablesMsg - Class in sudoku
-
Message from the Teacher waking him up after passing given time to check if its Tables are still alive.
- TimerManager.TimePassedMsg - Class in sudoku
-
Message from the Timer announcing that given time has passed.
V
- valueOf(String) - Static method in enum sudoku.PlayerMemory.MaskState
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum sudoku.PlayerMemory.MaskState
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WakeUpMsg() - Constructor for class sudoku.Player.WakeUpMsg
- WakeUpMsg() - Constructor for class sudoku.Table.WakeUpMsg
- WeightValuePair(float, int) - Constructor for class sudoku.PlayerMemory.WeightValuePair
- withdrawAndInform(int) - Method in class sudoku.Table
-
Register a digit as colliding (denied) and inform proper Players about this fact.
- withdrawDigit(int) - Method in class sudoku.TableMemory
-
Withdraw all offers with a digit that causes conflict for some player.
- WithdrawOfferMsg(int, ActorRef<Player.Protocol>, int, int) - Constructor for class sudoku.Table.WithdrawOfferMsg
X
Y
_
- _acceptanceCount - Variable in class sudoku.TableMemory
-
Number of acceptance messages received from Players.
- _accepted - Variable in class sudoku.PlayerMemory
-
Array of digits that Player accepted on a Table.
- _acceptedDigit - Variable in class sudoku.Table.AcceptNegotiationsResultsMsg
- _agentCount - Variable in class sudoku.AgentMap
-
Number of agents currently registered.
- _agentId - Variable in class sudoku.Teacher.RegisteredMsg
- _agents - Variable in class sudoku.AgentMap
-
Array of agent references indexed internally.
- _approvedDigit - Variable in class sudoku.Player.NegotiationsPositiveMsg
- _areNegotiationsFinishedPositively - Variable in class sudoku.TableMemory
-
Does negotiations finished positively = with a consensus?
- _bestOffer - Variable in class sudoku.TableMemory
-
The offer (digit) chosen after negotiations with Players.
- _board - Variable in class sudoku.Sudoku
-
Current values of board fields
- _collisions - Variable in class sudoku.PlayerMemory
-
Array of collisions.
- _collisions - Variable in class sudoku.Table.AdditionalInfoMsg
- _crashingPlayerId - Variable in exception sudoku.Player.BadFinishException
- _crashingPlayerId - Variable in exception sudoku.Player.BadRejectionException
- _crashingPlayerId - Variable in exception sudoku.Player.DoubleFinishException
- _crashingPlayerId - Variable in exception sudoku.Player.IncorrectRegisterException
- _deniedMask - Variable in class sudoku.TableMemory
-
Mask of forbidden digits.
- _digit - Variable in class sudoku.Player.RegisterTableMsg
- _digit - Variable in class sudoku.TableOffer
-
Value of a digit offered by a Player.
- _digit - Variable in class sudoku.Teacher.TableFinishedNegotiationsMsg
- _digitPriorities - Variable in class sudoku.PlayerMemory
-
Array of digits ordered from highest to lowest priority for a specific Table.
- _digits - Variable in class sudoku.Table.AdditionalInfoMsg
- _digitVector - Variable in class sudoku.PlayerMemory
-
Vector of current sudoku digits
- _digitWeight - Variable in class sudoku.Table.OfferMsg
- _excessiveTableId - Variable in exception sudoku.Player.IncorrectRegisterException
- _finished - Variable in class sudoku.PlayerMemory
-
Array of flags indicating that a Table linked to a certain field ended negotiations.
- _finishTableId - Variable in exception sudoku.Player.BadFinishException
- _finishTableId - Variable in exception sudoku.Player.DoubleFinishException
- _hasFinishedIteration - Variable in class sudoku.TableMemory
-
Flag - does this table had already finished current negotiations.
- _id - Variable in class sudoku.Teacher.PerformedMemoryResetMsg
- _indices - Variable in class sudoku.AgentMap
-
Map from global agent id to internal index.
- _inspectedDigits - Variable in class sudoku.Teacher
-
HashMap for inspected digits.
- _inspector - Variable in class sudoku.Teacher
-
Inspector's reference.
- _isItDone - Variable in class sudoku.Teacher.RegisteredMsg
- _iterationId - Variable in class sudoku.Player.NegotiationsMsg
- _iterationId - Variable in class sudoku.PlayerMemory
-
Id of current iteration.
- _iterationId - Variable in class sudoku.Table.NegotiationsMsg
- _iterationId - Variable in class sudoku.TableMemory
-
Id of current iteration.
- _iterationNO - Variable in class sudoku.Teacher.IterationTimeoutMsg
- _lastIterationId - Variable in class sudoku.TimerManager
- _lastTimerId - Variable in class sudoku.TimerManager
-
Timers counter - it also represents the latest timerId.
- _latelyRequestedTableIds - Variable in class sudoku.TimerManager
-
Table Ids requested to be checked on the last message.
- _mask - Variable in class sudoku.Player.RegisterTableMsg
- _mask - Variable in class sudoku.PlayerMemory
-
Array of flags indicating hard-coded fields.
- _mask - Variable in class sudoku.Sudoku
-
Array of flags indicating hard-coded board fields.
- _maxPlayerCount - Variable in class sudoku.TeacherMemory
- _maxTableCount - Variable in class sudoku.TeacherMemory
- _memorisedDigits - Variable in class sudoku.Teacher.MemorisedDigitsMsg
- _memory - Variable in class sudoku.Player
-
Structure containing awards and current digit vector
- _memory - Variable in class sudoku.Table
-
Structure containing current state of Table
- _memory - Variable in class sudoku.Teacher
-
Data structure for counting acknowledgement messages from Players and Tables.
- _milliseconds - Variable in class sudoku.Timer.CreateMsg
- _msg - Variable in class sudoku.SudokuSupervisor.TeacherWillRestartMsg
- _name - Variable in class sudoku.Teacher.CreateMsg
- _newSolution - Variable in class sudoku.SudokuSupervisor.IterationFinishedMsg
- _normalTables - Variable in class sudoku.TeacherMemory
- _offerCount - Variable in class sudoku.TableMemory
-
Number of offers currently proposed by Players (offers don't have to be unique).
- _offeredDigit - Variable in class sudoku.Table.OfferMsg
- _offers - Variable in class sudoku.TableMemory
-
Values of digits offered by Players.
- _otherDigits - Variable in class sudoku.Player.AdditionalInfoRequestMsg
- _parent - Variable in class sudoku.Player
-
Reference to Player's parent - the Teacher
- _parent - Variable in class sudoku.Table
-
Reference to Table's parent - the Teacher
- _parent - Variable in class sudoku.Teacher
-
Parent agent
- _parent - Variable in class sudoku.Timer.CreateMsg
- _parent - Variable in class sudoku.TimerManager
-
Parent - the only agent TimeManager replies to.
- _parent - Variable in class sudoku.TimerManager.CreateMsg
- _playerDigit - Variable in exception sudoku.Player.BadFinishException
- _playerDigit - Variable in exception sudoku.Player.BadRejectionException
- _playerId - Variable in class sudoku.Player
-
Global ID of this Player
- _playerId - Variable in class sudoku.Player.CreateMsg
- _playerId - Variable in class sudoku.Table.NegotiationsMsg
- _playerId - Variable in class sudoku.Table.RegisterPlayerMsg
- _playerId - Variable in class sudoku.Teacher.RegisteredPlayerMsg
- _playerId - Variable in class sudoku.Teacher.RewardReceivedMsg
- _playerInternalIndex - Variable in exception sudoku.TableMemory.OverwriteOfferException
- _playerResetCount - Variable in class sudoku.TeacherMemory
- _playerRewardedCount - Variable in class sudoku.TeacherMemory
- _players - Variable in class sudoku.Table
-
Map from global Player id to internal index and Player reference Data structure for storing Players - agents registered to this Table.
- _players - Variable in class sudoku.Teacher
-
Data structure for storing all Players - child agents.
- _playerToRegister - Variable in class sudoku.Table.RegisterPlayerMsg
- _position - Variable in class sudoku.Teacher.TableFinishedNegotiationsMsg
- _prevSudoku - Variable in class sudoku.Teacher
-
Sudoku solution from the previous iteration
- _rank - Variable in class sudoku.Sudoku
-
Size of a single (small) sudoku square (aka. block)
- _rejectedDigit - Variable in exception sudoku.Player.BadRejectionException
- _rejectedDigit - Variable in class sudoku.Player.RejectOfferMsg
- _rejectingTableId - Variable in exception sudoku.Player.BadRejectionException
- _replyTo - Variable in class sudoku.Player.CreateMsg
- _replyTo - Variable in class sudoku.Player.GrantRewardMsg
- _replyTo - Variable in class sudoku.Player.MemorisedDigitsRequestMsg
- _replyTo - Variable in class sudoku.Player.NegotiationsMsg
- _replyTo - Variable in class sudoku.Player.RegisterTableMsg
- _replyTo - Variable in class sudoku.Player.ResetMemoryMsg
- _replyTo - Variable in class sudoku.Player.ResetMemorySoftlyMsg
- _replyTo - Variable in class sudoku.SudokuSupervisor.SimulateTeacherCrashMsg
- _replyTo - Variable in class sudoku.SudokuSupervisor.TerminateMsg
- _replyTo - Variable in class sudoku.Table.CreateMsg
- _replyTo - Variable in class sudoku.Table.NegotiationsMsg
- _replyTo - Variable in class sudoku.Table.RegisterPlayerMsg
- _replyTo - Variable in class sudoku.Table.ResetMemoryMsg
- _replyTo - Variable in class sudoku.Teacher.CreateMsg
- _replyTo - Variable in class sudoku.Teacher.InspectChildDigitsMsg
- _replyTo - Variable in class sudoku.TimerManager.TimePassedMsg
- _requestCount - Variable in class sudoku.TableMemory
-
Number of requests send to a specific Player (no feedback received).
- _requestedPlayerId - Variable in class sudoku.Teacher.MemorisedDigitsMsg
- _requestId - Variable in class sudoku.SudokuSupervisor.TerminateMsg
- _resultingDigit - Variable in exception sudoku.Player.DoubleFinishException
- _resultingDigit - Variable in class sudoku.Player.NegotiationsFinishedMsg
- _rewards - Variable in class sudoku.PlayerMemory
-
Array of reward values.
- _rewardValue - Variable in class sudoku.Player.GrantRewardMsg
- _simulationParent - Variable in class sudoku.SudokuSupervisor
-
Parent - agent for debugging when simulating Teacher's crash.
- _size - Variable in class sudoku.Sudoku
-
Board size
- _specifyFlags - Variable in class sudoku.TableMemory
-
Flags indicating that all _weightFlags for a specific Player are set to true for all the _uniqueOffers.
- _sudoku - Variable in class sudoku.SudokuSupervisor
-
Sudoku riddle to be solved by the app.
- _sudoku - Variable in class sudoku.Teacher
-
Sudoku riddle to be solved.
- _sudoku - Variable in class sudoku.Teacher.CreateMsg
- _sudokuSize - Variable in class sudoku.Player.CreateMsg
- _sudokuSize - Variable in class sudoku.Table.CreateMsg
- _tableDigit - Variable in exception sudoku.Player.BadFinishException
- _tableId - Variable in class sudoku.Player.NegotiationsMsg
- _tableId - Variable in class sudoku.Player.RegisterTableMsg
- _tableId - Variable in class sudoku.Table
-
Global ID of the Table
- _tableId - Variable in class sudoku.Table.CreateMsg
- _tableId - Variable in class sudoku.Teacher.RegisteredTableMsg
- _tableId - Variable in class sudoku.Teacher.TableFinishedNegotiationsMsg
- _tableIds - Variable in class sudoku.Player.MemorisedDigitsRequestMsg
- _tableIds - Variable in class sudoku.Teacher.TablesAreNotRespondingMsg
- _tableIds - Variable in class sudoku.TimerManager.RemindToCheckTablesMsg
- _tableIdsConsideredDead - Variable in class sudoku.TeacherMemory
- _tablePos - Variable in class sudoku.Table
-
Global position of the Table
- _tablePos - Variable in class sudoku.Table.CreateMsg
- _tablePriorities - Variable in class sudoku.PlayerMemory
-
Array of Table internal indices ordered from highest to lowest priority.
- _tableResetCount - Variable in class sudoku.TeacherMemory
- _tables - Variable in class sudoku.Player
-
Map from global Table id to internal index and Table reference.
- _tables - Variable in class sudoku.Teacher
-
Data structure for storing all Tables - child agents.
- _tablesNotFinished - Variable in class sudoku.TeacherMemory
- _tableToRegister - Variable in class sudoku.Player.RegisterTableMsg
- _teacher - Variable in class sudoku.SudokuSupervisor
-
Child Teacher agent.
- _timerId - Variable in class sudoku.Timer.CreateMsg
- _timerId - Variable in class sudoku.TimerManager.TimePassedMsg
- _timerManager - Variable in class sudoku.Teacher
-
Teacher's own Timer.
- _type - Variable in class sudoku.Timer.CreateMsg
- _type - Variable in class sudoku.TimerManager.TimePassedMsg
- _uniqueOffers - Variable in class sudoku.TableMemory
-
Structure of unique offers given by Players.
- _value - Variable in class sudoku.PlayerMemory.WeightValuePair
- _waitMilliseconds - Variable in class sudoku.TimerManager.NewIterationStartedMsg
- _waitMilliseconds - Variable in class sudoku.TimerManager.RemindToCheckTablesMsg
- _weight - Variable in class sudoku.PlayerMemory.WeightValuePair
- _weightFlags - Variable in class sudoku.TableOffer
-
Flags indicating whether _weights value for the _digit is known for a specific Player.
- _weights - Variable in class sudoku.Table.AdditionalInfoMsg
- _weights - Variable in class sudoku.TableOffer
-
Weights of the _digit given by different Players.
- _withdrawnDigit - Variable in class sudoku.Table.WithdrawOfferMsg
All Classes All Packages