Class ChaosGameDescriptionFactory
java.lang.Object
edu.ntnu.stud.chaosgame.model.generators.ChaosGameDescriptionFactory
Class that generates a set number of ChaosGameDescription instances using a set of
files read by a ChaosGameFileHandler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayList
<ChaosGameDescription> The list of all the descriptions generated from the data in the directory specified in constructor.private final ChaosGameFileHandler
The file handler for reading the files. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of descriptions.private void
Load the descriptions from the directory.
-
Field Details
-
descriptions
The list of all the descriptions generated from the data in the directory specified in constructor. -
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
Get the list of descriptions.- Returns:
- the list.
-