Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
B
C
D
E
F
G
L
M
O
P
R
S
T
U
W
B
BinaryDrawingCanvas
- class mit.ai.techniques.
BinaryDrawingCanvas
.
This canvas allows the user to draw big, blocky, binary images with the mouse.
BinaryDrawingCanvas()
- Constructor for class mit.ai.techniques.
BinaryDrawingCanvas
Construct a canvas, default size is 15 x 15 big, blocky pixels.
BinaryDrawingCanvas(boolean[][])
- Constructor for class mit.ai.techniques.
BinaryDrawingCanvas
Constrct a canvas that displays the values in initPixels (true -> black, false -> white).
bruteForceSolvePuzzle()
- Method in class mit.ai.techniques.
PuzzleCreator
Solve the current puzzle with a brute-force method.
C
clearCanvas()
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Clear the canvas (and associated data structures).
clearCanvas()
- Method in class mit.ai.techniques.
PuzzleCreator
Clear the canvas, drop any stored puzzle loaded from a file.
colData
- Variable in class mit.ai.techniques.
Puzzle
createColData(boolean[][])
- Method in class mit.ai.techniques.
Puzzle
Create the row encodings.
createRowData(boolean[][])
- Method in class mit.ai.techniques.
Puzzle
Create the column encodings.
currentDrawSetting
- Variable in class mit.ai.techniques.
BinaryDrawingCanvas
True -> drawing black pixels, false -> drawing white pixels.
D
dpllSolvePuzzle()
- Method in class mit.ai.techniques.
PuzzleCreator
Solve the current puzzle with a DPLL method.
drawCanvas
- Variable in class mit.ai.techniques.
PuzzleCreator
Canvas for displaying and drawing the puzzle.
drawPixel(int, int, boolean)
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Accepts real-screen pixels, and adds their big, blocky superset pixels to the screen and internal data structure.
E
elementAt(int)
- Method in class mit.ai.techniques.
LinePossibilities
Retrieve a possibility.
F
filePuzzle
- Variable in class mit.ai.techniques.
PuzzleCreator
Holds a puzzle loaded from a file.
G
getBigPixelHeight()
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Return canvas height in big pixels.
getBigPixelWidth()
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Return canvas width in big pixels.
getBinaryData()
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Get the binary data.
getColData()
- Method in class mit.ai.techniques.
Puzzle
Return the column encodings.
getHeight()
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Return canvas height.
getHeight()
- Method in class mit.ai.techniques.
Puzzle
Get the puzzle height.
getRowData()
- Method in class mit.ai.techniques.
Puzzle
Return the row encodings.
getWidth()
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Return canvas width.
getWidth()
- Method in class mit.ai.techniques.
Puzzle
Get the puzzle width.
L
LinePossibilities
- class mit.ai.techniques.
LinePossibilities
.
This class computes all the possible assignments that can satisfy the constraints for one row or column of the puzzle.
LinePossibilities(Vector, int)
- Constructor for class mit.ai.techniques.
LinePossibilities
Given the lengths of the blocks in a puzzle line, generate all possible locations of the blocks.
lineVariables(int, int, Vector, int[])
- Method in class mit.ai.techniques.
LinePossibilities
Given a placement of blocks in a line and the sizes of the lines, generate a boolean array indicating which squares are occupied.
locateBlocks(int, int, int, int, Vector, int[])
- Method in class mit.ai.techniques.
LinePossibilities
Recursively assign blocks to locations.
M
main(String[])
- Static method in class mit.ai.techniques.
PuzzleCreator
Create a frame and let it run.
O
openPuzzle()
- Method in class mit.ai.techniques.
PuzzleCreator
Open a puzzle from a file, and display it's size on the main canvas.
P
paint(Graphics)
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Paint the screen with the big, blocky pixels demanded by the current set of pixels we have drawn over.
paint(Graphics)
- Method in class mit.ai.techniques.
PuzzleCreator
Some PuzzleCreator specific drawing instructions.
PIX_MULT
- Static variable in class mit.ai.techniques.
BinaryDrawingCanvas
Pixel size.
pixels
- Variable in class mit.ai.techniques.
BinaryDrawingCanvas
Pixel state storage.
possibilities
- Variable in class mit.ai.techniques.
LinePossibilities
Puzzle
- class mit.ai.techniques.
Puzzle
.
This class will construct the row and column data for a Paint By Numbers problem, if given a two-dimensional array that describes the binary picture to be encoded (true == black, false == white).
Puzzle(boolean[][])
- Constructor for class mit.ai.techniques.
Puzzle
Construct the puzzle.
Puzzle(File)
- Constructor for class mit.ai.techniques.
Puzzle
Construct the puzzle from a file.
PuzzleCreator
- class mit.ai.techniques.
PuzzleCreator
.
This class is a frame and a simple menu that allows us to draw binary images and convert them into Paint By Numbers puzzles.
PuzzleCreator(int, int)
- Constructor for class mit.ai.techniques.
PuzzleCreator
Create the frame and initialize the menu, then make everything visible.
puzzleHeight
- Variable in class mit.ai.techniques.
PuzzleCreator
Current puzzle height (in puzzle pixels).
puzzleWidth
- Variable in class mit.ai.techniques.
PuzzleCreator
Current puzzle width (in puzzle_pixels).
R
randCanvas()
- Method in class mit.ai.techniques.
PuzzleCreator
Randomize the pixel values.
randomize(double)
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Randomize the canvas value to produce a given percentage of black pixels.
readPuzzleFile(File)
- Method in class mit.ai.techniques.
Puzzle
Parse the puzzle file and create the puzzle.
resetSize(int, int)
- Method in class mit.ai.techniques.
PuzzleCreator
Does the work of resetting the canvas size.
rowData
- Variable in class mit.ai.techniques.
Puzzle
S
savePuzzle()
- Method in class mit.ai.techniques.
PuzzleCreator
Save the current puzzle.
setAssignment(boolean[][])
- Method in class mit.ai.techniques.
SolutionDisplay
Set the pixel assignment to display.
setAssignment(boolean[], int, int)
- Method in class mit.ai.techniques.
SolutionDisplay
Set the pixel assignment to display.
setSize()
- Method in class mit.ai.techniques.
PuzzleCreator
Set the size of the drawing canvas.
setSize(int, int)
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Set the size in big, blocky pixels.
size()
- Method in class mit.ai.techniques.
LinePossibilities
How many possibilities exist?
SolutionDisplay
- class mit.ai.techniques.
SolutionDisplay
.
This is a simple class for displaying Puzzle solutions.
SolutionDisplay()
- Constructor for class mit.ai.techniques.
SolutionDisplay
Construct a solution display.
T
toString()
- Method in class mit.ai.techniques.
Puzzle
Create a string version of the encodings for this puzzle.
U
update(Graphics)
- Method in class mit.ai.techniques.
BinaryDrawingCanvas
Usual lazy update routine.
W
walksatSolvePuzzle()
- Method in class mit.ai.techniques.
PuzzleCreator
Solve the current puzzle with a WALKSAT method.
B
C
D
E
F
G
L
M
O
P
R
S
T
U
W
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES