Using multiple design patterns in a program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bsalt
    New Member
    • Sep 2018
    • 1

    Using multiple design patterns in a program

    I am taking my second class in Java and this is based on patterns. I need to create a project for the class and I am a little stuck. I need to use 4 patterns in the project and I am not sure which ones I should focus on as I am just now learning about them. The project I want to create is a simple inventory system, more specifically an asset management system that could track IT hardware types (laptop, workstation, monitor, etc) and then assign values to it.

    I think a decorator pattern would be an obvious one to use. That way I could create an object (laptop for example) and decorate it with brand, OS, RAM, HD size, etc. I could maybe use a factory pattern so that each specific object is encapsulated so that if I am creating (adding) a monitor, I am not requiring the user to add the OS/RAM/HD size etc.

    What else is out there that you think I could use for this? Any help or suggestions you could offer would be great.
Working...