-
Notifications
You must be signed in to change notification settings - Fork 0
prompter
This class encapsulates user interaction in terms of prompting for input in the command line.
This class is built with the Singleton pattern, and as such, only one instance of it can exist at a time in the app. This instance can be accessed via the getInstance() method.
All methods inside this class are self-descriptive and self-documenting.
For example, the getDouble(String prompt) method prints the given prompt to the console and expects a double value to be entered by the user. Similarly, the getBoundedDouble(final String prompt, final double leftBound, final double rightBound) does the same thing, the only difference is that it keeps asking the user for input until a value is entered so that leftBound < value < rightBound.
-
Classes documentation
- 'App'
- 'objects.GenericJob'
- 'objects.filters.GenericFilter`
- 'objects.filters.IFilter`
- 'objects.filters.Filters`
- 'objects.image.BitmapImage'
- 'objects.image.Image'
- 'objects.image.Pixel'
- 'objects.runnables.Producer'
- 'objects.runnables.Consumer'
- 'objects.singletons.ArgParser'
- 'objects.singletons.BmpIO'
- 'objects.singletons.FilterBuilder'
- 'objects.singletons.Prompter'
- 'objects.singletons.Timer'
-
Overview of the homework requirements