This project involves the development of a simple smartwatch using Java. The smartwatch can display the current time, and date, and has features such as an alarm clock and stopwatch. It demonstrates various functionalities like time management, date display, and branding.
- Java was used to develop the entire smartwatch application, leveraging its object-oriented features to effectively manage different modes and functionalities.
- Object-oriented programming principles to structure the different functionalities of the smartwatch into various classes.
- Design patterns such as Singleton, Polymorphism, and State Pattern.
-
Time Display: The smartwatch can display the current time in AM/PM format using the HourMode class.
-
Date Display: The smartwatch can display the current date and the day of the week using the DateMode class.
-
Alarm Clock: An alarm clock feature that starts after a set time, managed through the AlarmClock class.
-
Stopwatch: A fully functional stopwatch managed through the StopwatchMode class.
-
Branding: A branding message written to an output file using the BrandMode class.
- Local environment
- git clone https://github.com/danieladam7/smartwatch
- cd your_project_directory Replace project_directory with the actual directory name of the cloned repository.
- Open your Java IDE/ VS Studio, import the project, and run the TheOneS2.java main class. This will start the smartwatch application and allow you to interact with different modes using predefined actions.