Package Phase3

Class CreateDancingInput

java.lang.Object
Phase3.CreateDancingInput

public class CreateDancingInput
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) int depth  
    (package private) int height  
    (package private) boolean[][] inputMatrix  
    (package private) int[] order  
    (package private) java.util.ArrayList<boolean[][][]> placements  
    (package private) java.util.ArrayList<java.lang.Integer> rowTypes  
    (package private) float[] rowValueHelper  
    (package private) boolean[][][][][] shapes  
    (package private) java.lang.String type  
    (package private) int width  
  • Constructor Summary

    Constructors 
    Constructor Description
    CreateDancingInput​(java.lang.String type)  
  • Method Summary

    Modifier and Type Method Description
    void createPlacements()  
    boolean fits​(int startX, int startY, int startZ, boolean[][][] shape)
    Method checking if a shape fits at starting coordinates
    void selectInput()
    Method retrieving the input selected in the Wrapper class and generating input
    void threeDToOneD()
    Method converting a three-dimensional input to a one dimensional array and creating the 2D inputMatrix

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • selectInput

      public void selectInput()
      Method retrieving the input selected in the Wrapper class and generating input
    • createPlacements

      public void createPlacements()
    • threeDToOneD

      public void threeDToOneD()
      Method converting a three-dimensional input to a one dimensional array and creating the 2D inputMatrix
    • fits

      public boolean fits​(int startX, int startY, int startZ, boolean[][][] shape)
      Method checking if a shape fits at starting coordinates
      Parameters:
      startX - : starting X-dimension (width)
      startY - : starting Y-dimension (height)
      startZ - : starting Z-dimension (depth)
      shape - : shape to be fitted
      Returns:
      true if a shape can be fitted, false otherwise