How ssy-epsi/couplages works
This project is a Java/Maven project designed to illustrate the concept of strong coupling ("couplage fort") by modeling an orchestra with different types of musicians. The primary purpose is educational—to demonstrate how tightly coupled components (like musical instruments and musicians) interact—and to challenge the reader to extend the design by adding a new musician type (batteurs).
Main Components
• DemoApplication: This is the entry point of the application.
• Orchestre: Acts as the central component managing a list of musicians.
• Pianiste and Violoniste: Represent two existing types of musicians.
• Piano and Violon: Represent the instruments associated with the musicians.
• (Future Component) Batteur: The extension point proposed in the README.
Directory Structure
• The package structure under org.sebsy.demo.orchestre.couplagefort indicates that all key classes (DemoApplication, Orchestre, Pianiste, Piano, Violon, Violoniste) are part of the “couplagefort” package.
Interactions and Relationships
• Orchestre holds a collection of musician objects (for instance, Pianiste and Violoniste).
• The DemoApplication bootstraps the system and probably coordinates between these components.
• Optionally, mention that adding “batteurs” would require extending the orchestration logic and possibly the instrument handling.
Architectural Patterns and Design Principles
• That the system uses strong coupling—components are directly dependent on each other’s concrete implementations.
• By comparing the current design (with explicit, concrete classes for each musician and instrument) to a more loosely coupled design, you highlight where potential refactoring might be employed.
• Single-entry point via DemoApplication, which is a common design in many Java applications.