I need to extract (aggregate) particular information about satellites (this should be done in external Modules which will be loaded by e.g. reflection). Furthermore, the result of such aggregation, which can be hierarchically indefinitely deep, should be output by modules too (e.g. sysout, write to JSON)
An Aggregation of this JSON-data could be for instance:
- Sattelite A
- Transponder B
- 20 radio programmes
- 10 tv programmes
- Transponder C
- 1 radio programme
- 100 tv programmes
or
Sattelite a
- english TV-Programme a
- english TV-Programme b
Sattelite b
- english TV-Programme a
- english TV-Programme b
- english TV-Programme c
Any idea, which approach (design patterns, classes) would be appropriate to tackle this? I thought about generic composite.
Aucun commentaire:
Enregistrer un commentaire