Skip navigation links
A B C E F G I M N P R S T V 

A

Amoeba - Class in <Unnamed>
The Amoeba are cells shapes that changes their forms to fit.
Amoeba(String, char) - Constructor for class Amoeba
Amoeba constructor is mad by string layout that we will read the shape of this amoeba and the char displayChar that is the repr of this shape.
AmoebaPlaced - Class in <Unnamed>
AmoebaPlaced class is an object that takes as parameter a shape and a position I will use this placedShapeInfo() into our Body class and also I will implement Comparable so it will help me to sort this object before put them into a string
AmoebaPlaced(Coord, Shape) - Constructor for class AmoebaPlaced
AmoebaPlaced constructor with two parameter positon and shape
appendColumns2(String[]) - Static method in class P6Tests
 
appendColumns2(String[], String) - Static method in class P6Tests
 
auto_sff_1() - Method in class P6Tests
 
auto_sff_10() - Method in class P6Tests
 
auto_sff_2() - Method in class P6Tests
 
auto_sff_3() - Method in class P6Tests
 
auto_sff_4() - Method in class P6Tests
 
auto_sff_5() - Method in class P6Tests
 
auto_sff_6() - Method in class P6Tests
 
auto_sff_7() - Method in class P6Tests
 
auto_sff_8() - Method in class P6Tests
 
auto_sff_9() - Method in class P6Tests
 

B

bad_shape1() - Method in class P6Tests
 
bad_shape2() - Method in class P6Tests
 
bad_shape3() - Method in class P6Tests
 
bad_shape4() - Method in class P6Tests
 
Body - Class in <Unnamed>
Body class is a class that implement Space and also represent a space for amoeba shapes to fit in.
Body(String) - Constructor for class Body
Body constructor takes a string and make from it a Body object.

C

c - Variable in class Coord
has two fileds of integer r, c to create a coordinate on the map
col - Variable in class P6Tests.ShapePlace
 
compareTo(AmoebaPlaced) - Method in class AmoebaPlaced
compareTo will help us to sort a list of AmoebaPlaced objects.
Coord - Class in <Unnamed>
The Coord class will create an object with the coordinates and will implement the methods step, copy, equals, adjacent and to String
Coord(int, int) - Constructor for class Coord
constructor Coord that constract the object Coord.
copy() - Method in class Coord
The copy method just creates a new copy of Coord object with same values.

E

empty - Static variable in class P6Tests
 
ensureTestDirExists() - Method in class P6Tests
 
equals(Object) - Method in class Coord
public boolean equals(Object o).

F

failFmt(String, Object...) - Static method in class P6Tests
 
filled - Static variable in class P6Tests
 
FitIt - Class in <Unnamed>
FitIt is the class that will put everything togother so its the brain of our project.
FitIt() - Constructor for class FitIt
 
FitItException - Exception in <Unnamed>
Catch-all exception for Shapes and Spaces so that explicit exception throwing can be checked
FitItException(String) - Constructor for exception FitItException
 
fitString() - Method in class Body
fitString Return a string representing the space and the shapes that have been fit into it.
fitString() - Method in interface Space
 

G

getAmoeba() - Method in class AmoebaPlaced
getAmoeba takes the shape from this object
getDisplayChar() - Method in class Amoeba
getDisplayChar() get the displayChar fields.
getDisplayChar(String) - Static method in class P6Tests
 
getDisplayChar() - Method in interface Shape
 
getHeight() - Method in class Amoeba
getHeight() get the height fields.
getHeight() - Method in class Body
getHeight gets the height of the space
getHeight() - Method in interface Shape
 
getHeight() - Method in interface Space
 
getRotation() - Method in class Amoeba
getRotation get the actual rotation of the shape
getRotation() - Method in interface Shape
 
getWidth() - Method in class Amoeba
getWidth() get the width fields.
getWidth() - Method in class Body
getWidth gets the width of the space
getWidth() - Method in interface Shape
 
getWidth() - Method in interface Space
 

I

impossible_sff_1() - Method in class P6Tests
 
impossible_sff_2() - Method in class P6Tests
 
impossible_sff_3() - Method in class P6Tests
 
isFilledAt(int, int) - Method in class Amoeba
isFilledAt(r,c) check if this point is in the shape bound and check if this spot is filled and no.
isFilledAt(int, int) - Method in class Body
isFilledAt(r,c) check if this point is in the space bound and check if this spot is filled and no.
isFilledAt(int, int) - Method in interface Shape
 
isFilledAt(int, int) - Method in interface Space
 

M

main(String[]) - Static method in class FitIt
main will read arguments that will be a file on args[0] and will create space and shapes and put this shapes into a list called unplaced.
main(String[]) - Static method in class P6Tests
 
make_shape1() - Method in class P6Tests
 
make_shape2() - Method in class P6Tests
 
make_shape3() - Method in class P6Tests
 
make_space1() - Method in class P6Tests
 
make_space2() - Method in class P6Tests
 
make_space3() - Method in class P6Tests
 
makeShape(String, char) - Static method in class FitIt
makeShape creates a shape of from the given string and input the displayChar on it.
makeSpace(String) - Static method in class FitIt
makeSpace creates a space object from the given string.

N

next() - Method in enum Rotation
Calling rot.next() will return the next enumeration element representing the next 90 degree clock-wise rotation after rot

P

P6Tests - Class in <Unnamed>
 
P6Tests() - Constructor for class P6Tests
 
P6Tests.ShapePlace - Class in <Unnamed>
 
performSearchForFit(String, String, String[]...) - Static method in class P6Tests
 
placedShapeCount() - Method in class Body
placedShapeCount keeps the count of how many shapes we have into a space tjat gets updated each time a change in space happend like adding one or remove one space
placedShapeCount() - Method in interface Space
 
placedShapeInfo() - Method in class Body
placedShapeInfo has all info about the shape like where the shape is located on the map what rotation was used to be there the name of the shape and how the shape looks.
placedShapeInfo() - Method in interface Space
 
placeShapeAt(int, int, Shape) - Method in class Body
This method will place a shape Amoeba into the body space.
placeShapeAt(int, int, Shape) - Method in interface Space
 

R

r - Variable in class Coord
has two fileds of integer r, c to create a coordinate on the map
removeShapeByDisplayChar(char) - Method in class Body
This method will remove the shapes that contains the char dc.
removeShapeByDisplayChar(char) - Method in interface Space
 
rot - Variable in class P6Tests.ShapePlace
 
rotateCW() - Method in class Amoeba
rotateCW rotate this shape clockwise by 90 degrees and creates a new shape that has had a rotation of the shape.
rotateCW() - Method in interface Shape
 
Rotation - Enum in <Unnamed>
Rotation enum class has four values CW0, CW90, CW180, CW270 that correspond the degree that a shape have been rotated.
row - Variable in class P6Tests.ShapePlace
 

S

searchForFit(Space, List<Shape>) - Static method in class FitIt
searchForFit is the logic of this project.
setDisplayChar(char) - Method in class Amoeba
Set how the shape will be displayed in order to change other than just seting the diplayChar=c I will update each position that had the previous displaychar c with the new char c in 2dlayout of amoeba.
setDisplayChar(char) - Method in interface Shape
 
shape - Variable in class P6Tests.ShapePlace
 
Shape - Interface in <Unnamed>
 
shape2dStr(String[][]) - Static method in class P6Tests
 
shape_basic_fill1() - Method in class P6Tests
 
shape_basic_fill2() - Method in class P6Tests
 
shape_basic_fill3() - Method in class P6Tests
 
shape_basic_fill4() - Method in class P6Tests
 
shape_basic_fill5() - Method in class P6Tests
 
shape_displayChar1() - Method in class P6Tests
 
shape_displayChar2_rot() - Method in class P6Tests
 
shape_displayChar3_rot() - Method in class P6Tests
 
shape_displayChar4() - Method in class P6Tests
 
shape_displayChar5_rot() - Method in class P6Tests
 
shape_rotations1() - Method in class P6Tests
 
shape_rotations2() - Method in class P6Tests
 
shape_rotations3() - Method in class P6Tests
 
shape_rotations4() - Method in class P6Tests
 
shape_rotations5() - Method in class P6Tests
 
shape_rotations6() - Method in class P6Tests
 
shape_rotations7() - Method in class P6Tests
 
shape_rotations8() - Method in class P6Tests
 
shape_toString1() - Method in class P6Tests
 
shape_toString2_rot() - Method in class P6Tests
 
shape_toString3_rot() - Method in class P6Tests
 
shape_toString4() - Method in class P6Tests
 
shape_toString5_rot() - Method in class P6Tests
 
shape_toString6() - Method in class P6Tests
 
shape_toString7_rot() - Method in class P6Tests
 
shapeFitsAt(int, int, Shape) - Method in class Body
shapeFitsAt check if this shape can fit into this space.
shapeFitsAt(int, int, Shape) - Method in interface Space
 
shapeInSpaceAt(char[][], char[][], int, int, boolean, boolean[][]) - Static method in class P6Tests
 
shapeIsInSpace(char[][], String, boolean[][]) - Static method in class P6Tests
 
ShapePlace(String, int, int, int) - Constructor for class P6Tests.ShapePlace
 
simpleDiff2(String, String) - Static method in class P6Tests
 
Space - Interface in <Unnamed>
 
space_comprehensive1() - Method in class P6Tests
 
space_fill1() - Method in class P6Tests
 
space_fill2() - Method in class P6Tests
 
space_fill3() - Method in class P6Tests
 
space_fill4() - Method in class P6Tests
 
space_fits1() - Method in class P6Tests
 
space_fits10() - Method in class P6Tests
 
space_fits11() - Method in class P6Tests
 
space_fits12() - Method in class P6Tests
 
space_fits13() - Method in class P6Tests
 
space_fits14() - Method in class P6Tests
 
space_fits2() - Method in class P6Tests
 
space_fits3() - Method in class P6Tests
 
space_fits4() - Method in class P6Tests
 
space_fits5() - Method in class P6Tests
 
space_fits6() - Method in class P6Tests
 
space_fits7() - Method in class P6Tests
 
space_fits8() - Method in class P6Tests
 
space_fits9() - Method in class P6Tests
 
space_mutiple_place1() - Method in class P6Tests
 
space_mutiple_place2() - Method in class P6Tests
 
space_mutiple_place3() - Method in class P6Tests
 
space_mutiple_place4() - Method in class P6Tests
 
space_mutiple_place5() - Method in class P6Tests
 
space_mutiple_place6() - Method in class P6Tests
 
space_place_fail1() - Method in class P6Tests
 
space_place_fail2() - Method in class P6Tests
 
space_place_fail3() - Method in class P6Tests
 
space_place_fail4() - Method in class P6Tests
 
space_place_succeed1() - Method in class P6Tests
 
space_place_succeed10_rot() - Method in class P6Tests
 
space_place_succeed2() - Method in class P6Tests
 
space_place_succeed3() - Method in class P6Tests
 
space_place_succeed4() - Method in class P6Tests
 
space_place_succeed5() - Method in class P6Tests
 
space_place_succeed6() - Method in class P6Tests
 
space_place_succeed7() - Method in class P6Tests
 
space_place_succeed8_rot() - Method in class P6Tests
 
space_place_succeed9_rot() - Method in class P6Tests
 
space_placedShapeInfo1() - Method in class P6Tests
 
space_placedShapeInfo2() - Method in class P6Tests
 
space_placedShapeInfo3() - Method in class P6Tests
 
space_placedShapeInfo4() - Method in class P6Tests
 
space_remove1() - Method in class P6Tests
 
space_remove2() - Method in class P6Tests
 
space_remove3() - Method in class P6Tests
 
space_shapes_colide1() - Method in class P6Tests
 
space_shapes_colide2() - Method in class P6Tests
 
space_shapes_colide3() - Method in class P6Tests
 
space_shapes_colide4() - Method in class P6Tests
 
space_shapes_colide5() - Method in class P6Tests
 
space_shapes_colide6() - Method in class P6Tests
 
string2char2D(String) - Static method in class P6Tests
 

T

test_main01() - Method in class P6Tests
 
test_main02() - Method in class P6Tests
 
test_main03() - Method in class P6Tests
 
test_main04() - Method in class P6Tests
 
test_main05() - Method in class P6Tests
 
test_main06() - Method in class P6Tests
 
test_main07() - Method in class P6Tests
 
test_main08() - Method in class P6Tests
 
test_main09() - Method in class P6Tests
 
test_main10() - Method in class P6Tests
 
test_main_files(String, boolean) - Method in class P6Tests
 
test_main_impossible1() - Method in class P6Tests
 
test_main_impossible2() - Method in class P6Tests
 
test_main_impossible3() - Method in class P6Tests
 
testDir - Variable in class P6Tests
 
testingDirectory - Variable in class P6Tests
 
toString() - Method in class Amoeba
toString will create a string repr that we like for our shape that follows this pattern.
toString() - Method in class AmoebaPlaced
toString will return the string representatopn of the AmoebaPlaced
toString() - Method in class Body
toString puts everything togother that have happend on the space first print the space with space info and later print info of shapes list get this info from fitString and placedShapeInfo return the represantion of the new space with shapes in it.
toString() - Method in class Coord
Return a string representation of Coord object
toString() - Method in class P6Tests.ShapePlace
 
toString() - Method in interface Shape
 
toString() - Method in interface Space
 

V

valueOf(String) - Static method in enum Rotation
Returns the enum constant of this type with the specified name.
values() - Static method in enum Rotation
Returns an array containing the constants of this enum type, in the order they are declared.
verify_rotations(String[], Shape) - Static method in class P6Tests
 
verify_shape_fill(String, Shape) - Static method in class P6Tests
 
verify_space_fill(String, Space) - Static method in class P6Tests
 
verifyFit(String, String, String[][]) - Static method in class P6Tests
 
A B C E F G I M N P R S T V 
Skip navigation links