You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposed solution:
Allow the Room class to be able to extend its features and functionality dynamically. The class currently has many boolean attributes that represent whether a room has additional features, such as TV or minibar. Instead of being static Booleans, these additional features could be set as decorators, which would provide greater flexibility to configure and customize rooms.
Consequences or implications of the redesign:
Since static Boolean attributes were previously used, it will be necessary to modify the data access logic in the database. Ideally, we would extract the data from BasicRoom and, in the business logic, handle the additional features using decorators.
Resources:
UML class diagram.
The text was updated successfully, but these errors were encountered:
Proposed solution:
Allow the Room class to be able to extend its features and functionality dynamically. The class currently has many boolean attributes that represent whether a room has additional features, such as TV or minibar. Instead of being static Booleans, these additional features could be set as decorators, which would provide greater flexibility to configure and customize rooms.
Consequences or implications of the redesign:
Since static Boolean attributes were previously used, it will be necessary to modify the data access logic in the database. Ideally, we would extract the data from BasicRoom and, in the business logic, handle the additional features using decorators.
Resources:
UML class diagram.
The text was updated successfully, but these errors were encountered: