Skip to content

Yernur-git/midterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

midterm

Overview

This project is a simulation of a Smart Home Control System using various design patterns, including Composite, Decorator, Abstract Factory, Facade, and Adapter.

Features

Composite Pattern: Organizes devices into rooms and allows group control.

Decorator Pattern: Adds features like scheduled activation.

Abstract Factory Pattern: Creates different types of smart devices.

Facade Pattern: Provides a simple interface to manage all devices.

Adapter Pattern: Integrates a legacy lock system.

Structure of the Project

+---adapter
¦       LegacyLockSystem.java
¦       LockAdapter.java
¦       OldLockSystem.java
¦       
+---composite
¦       Light.java
¦       Room.java
¦       SmartDevice.java
¦       Thermostat.java
¦       
+---decorator
¦       ScheduledOperationDecorator.java
¦       SmartDeviceDecorator.java
¦       
+---facade
¦       SmartHomeController.java
¦       
+---factory
¦       AdvancedSmartHomeFactory.java
¦       BasicSmartHomeFactory.java
¦       SmartHomeFactory.java
¦       
+---main
        SmartHomeDemo.java

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages