Index

C F G I M P R S T V W 
All Classes and Interfaces|All Packages

C

clone() - Method in class math.wfc.Gridstate
Overwrites the clone function from Object.
clone() - Method in class math.wfc.Superposition
Overwrites the clone function inherited from Object.
collapse() - Method in class math.wfc.Gridstate
Collapses the State until a random choice is needed or the grid can't be finished.
collapsePossibilities(Gridstate) - Method in class math.wfc.Superposition
Collapses possibilities for the position.
collapseTo(int) - Method in class math.wfc.Superposition
Collapses the Superposition to one possibility.
collapseToFromPossible(int) - Method in class math.wfc.Superposition
Collapses the Superposition to one of the still possible states.

F

FixedAmountPerBlock - Class in math.wfc.rules
A Rule that forces a certain amount of tiles to be inside each width x height area of the grid.
FixedAmountPerBlock(int, int, int) - Constructor for class math.wfc.rules.FixedAmountPerBlock
Constructer for a Rule that forces a certain count of tile to be in a certain row.
FixedAmountPerColumn - Class in math.wfc.rules
A rule that forces a certain amount of a tile to be in each column of the grid.
FixedAmountPerColumn(int) - Constructor for class math.wfc.rules.FixedAmountPerColumn
Constructer for a Rule that forces a certain count of tile to be in a certain row.
FixedAmountPerRow - Class in math.wfc.rules
A rule that forces a certain amount of a tile to be in each row of a grid.
FixedAmountPerRow(int) - Constructor for class math.wfc.rules.FixedAmountPerRow
Constructer for a Rule that forces a certain count of tile to be in a certain row.
FORBIDDEN - Enum constant in enum class math.wfc.rules.Rule.STATE
The Grid can't be filled anymore
FORCED - Enum constant in enum class math.wfc.rules.Rule.STATE
When this is returned the Tile will instantly be placed at that position

G

getGrid() - Method in class math.wfc.WFC_Handler
A function to get the finished Grid.
getHeight() - Method in class math.wfc.Gridstate
Getter Function for the height of the grid.
getId() - Method in class math.wfc.Tile
Getter Function for the id of the tile.
getPosition(int, int) - Method in class math.wfc.Gridstate
Gets the Superposition object at a certain coordinate following the rules set by looping.
getPossibilityCount() - Method in class math.wfc.Superposition
Gets the count of possibilities left for the Position.
getState(Gridstate, int, int) - Method in class math.wfc.Tile
Function to see if all Rules for this tile are fullfilles at a certain position
getState(Gridstate, int, int, Tile) - Method in class math.wfc.rules.FixedAmountPerBlock
 
getState(Gridstate, int, int, Tile) - Method in class math.wfc.rules.FixedAmountPerColumn
 
getState(Gridstate, int, int, Tile) - Method in class math.wfc.rules.FixedAmountPerRow
 
getState(Gridstate, int, int, Tile) - Method in class math.wfc.rules.Rule
A function to test if the Rule is fullfilled
getTile() - Method in class math.wfc.Superposition
Gets the tile a Superposition has collapsed to.
getWidth() - Method in class math.wfc.Gridstate
Getter Function for the width of the grid.
Gridstate - Class in math.wfc
A class storing the Superpositions in a grid.
Gridstate(int, int, Tile[]) - Constructor for class math.wfc.Gridstate
Constructor for a Gridstate object with just dimensions and tileset given.
Gridstate(Superposition[][], boolean, Superposition) - Constructor for class math.wfc.Gridstate
Constructer for a Gridstate object with all possible parameters.

I

IMPOSSIBLE - Enum constant in enum class math.wfc.rules.Rule.STATE
The Tile can't be at this position anymore.
isCollapsed() - Method in class math.wfc.Superposition
To test if the wave function has fully collapsed in this position (equivalent to getPossibilityCount() == 1).
isFinished() - Method in class math.wfc.Gridstate
Tests if the grid is fully collapsed.

M

main(String[]) - Static method in class math.testing.Sudoku
Main function that can solve or generate sudokus.
makeRandomChoice(Random) - Method in class math.wfc.Gridstate
Chooses a random possibility of a random Superposition that hasn't collapsed yet and collapses it down.
math.testing - package math.testing
 
math.wfc - package math.wfc
 
math.wfc.rules - package math.wfc.rules
 
mirrorX() - Method in class math.wfc.rules.FixedAmountPerBlock
 
mirrorX() - Method in class math.wfc.rules.FixedAmountPerColumn
 
mirrorX() - Method in class math.wfc.rules.FixedAmountPerRow
 
mirrorX() - Method in class math.wfc.rules.Rule
A function that mirrors the rule along the x-Axis
mirrorY() - Method in class math.wfc.rules.FixedAmountPerBlock
 
mirrorY() - Method in class math.wfc.rules.FixedAmountPerColumn
 
mirrorY() - Method in class math.wfc.rules.FixedAmountPerRow
 
mirrorY() - Method in class math.wfc.rules.Rule
A function that mirrors the rule along the y-Axis

P

POSSIBLE - Enum constant in enum class math.wfc.rules.Rule.STATE
When this is returned the Tile can be at this position.
printGrid() - Method in class math.wfc.WFC_Handler
Prints the current Grid.

R

rotate() - Method in class math.wfc.rules.FixedAmountPerBlock
 
rotate() - Method in class math.wfc.rules.FixedAmountPerColumn
 
rotate() - Method in class math.wfc.rules.FixedAmountPerRow
 
rotate() - Method in class math.wfc.rules.Rule
A function that rotates the rule clockwise.
Rule - Class in math.wfc.rules
A Interface for functions on a rule.
Rule() - Constructor for class math.wfc.rules.Rule
 
Rule.STATE - Enum Class in math.wfc.rules
Enum used to output the State of the Rule.

S

Sudoku - Class in math.testing
A Sudoku generator/solver.
Sudoku() - Constructor for class math.testing.Sudoku
 
Superposition - Class in math.wfc
A Class storing a single superposition of multiple tiles.
Superposition(int, int, Tile[]) - Constructor for class math.wfc.Superposition
Constructor for a Superposition object.
Superposition(int, int, Tile[], boolean[]) - Constructor for class math.wfc.Superposition
Constructor for a Superposition object with possibilities given.

T

Tile - Class in math.wfc
A Class to store data about a Tile.
Tile(int) - Constructor for class math.wfc.Tile
Default Constructer that initializes a Tile without rules.
Tile(int, Rule[]) - Constructor for class math.wfc.Tile
Constructer that takes a list of rules for the given Tile.
tilePossible(Tile) - Method in class math.wfc.Superposition
Tests whether a given tile is still possible at this position.
toString() - Method in class math.wfc.Gridstate
Converts the Grid to its String representation.

V

valueOf(String) - Static method in enum class math.wfc.rules.Rule.STATE
Returns the enum constant of this class with the specified name.
values() - Static method in enum class math.wfc.rules.Rule.STATE
Returns an array containing the constants of this enum class, in the order they are declared.

W

wfc() - Method in class math.wfc.WFC_Handler
Runs Wave function collapse algorithm.
WFC_Handler - Class in math.wfc
Class that handles the main Wave function collapse operations.
WFC_Handler(int, int, Tile[]) - Constructor for class math.wfc.WFC_Handler
Constructor for a WFC Handler
WFC_Handler(Gridstate) - Constructor for class math.wfc.WFC_Handler
 
C F G I M P R S T V W 
All Classes and Interfaces|All Packages