public class FitIt
extends java.lang.Object
Constructor and Description |
---|
FitIt() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
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.
|
static Shape |
makeShape(java.lang.String layout,
char displayChar)
makeShape creates a shape of from the given string and input the displayChar on it.
|
static Space |
makeSpace(java.lang.String layout)
makeSpace creates a space object from the given string.
|
static Space |
searchForFit(Space space,
java.util.List<Shape> unplaced)
searchForFit is the logic of this project.
|
public static Shape makeShape(java.lang.String layout, char displayChar) throws FitItException
FitItException
public static Space makeSpace(java.lang.String layout)
public static Space searchForFit(Space space, java.util.List<Shape> unplaced)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException