Skip to content
Oleh Shklyar edited this page Mar 30, 2018 · 12 revisions

Model UML

+--------------+             +---------------+        +----------------+
|<<interface>> |             | <<interface>> |        | <<interface>>  |
|   Bouquet    |      +------+    Flower     |    +---+   Freshness    |
+-------+------+      |      +------+--------+    |   +-------+--------+
        ^             |             ^             |           ^
        |             |             |             |           |
+-------+------+      |      +------+--------+    |   +-------+--------+
|MarriedBouquet|      |      |GeneralFlower A|    |   |FreshnessInteger|
+--------------+      |      +---------------+    |   +----------------+
|id            |      |      |id             |    |   |freshness       |
|price         |      |      |freshness      +----+   +----------------+
|name          |      |      |length         |
|assemblePrice |      |      |price          |
|flowers       +------+      +--+----+----+--+
|price         |                ^    ^    ^
+--------------+       +--------+    |    +--------+
                       |             |             |
                  +----+----+   +----+----+   +----+----+
                  |Chamomile|   |  Rose   |   |  Tulip  |
                  +---------+   +---------+   +---------+
                  |petals   |   |spike    |   |         |
                  +---------+   +---------+   +---------+

Clone this wiki locally