Class ChaosGameDescriptionFactory

java.lang.Object
edu.ntnu.stud.chaosgame.model.generators.ChaosGameDescriptionFactory

public class ChaosGameDescriptionFactory extends Object
Class that generates a set number of ChaosGameDescription instances using a set of files read by a ChaosGameFileHandler.
  • Field Details

    • descriptions

      private final ArrayList<ChaosGameDescription> descriptions
      The list of all the descriptions generated from the data in the directory specified in constructor.
    • fileHandler

      private final ChaosGameFileHandler fileHandler
      The file handler for reading the files.
  • Constructor Details

    • ChaosGameDescriptionFactory

      public ChaosGameDescriptionFactory()
      Constructor for the class.
  • Method Details

    • loadDescriptions

      private void loadDescriptions()
      Load the descriptions from the directory.
    • getDescriptions

      public List<ChaosGameDescription> getDescriptions()
      Get the list of descriptions.
      Returns:
      the list.