summaryrefslogtreecommitdiff
path: root/diagrams/assignment_3/mmd/framework_architecture.mmd
blob: 744f29f82161f0c9e024ad02214d93560fde16ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
graph TD
    subgraph "Framework Layer"
        A[Entity<br/>Abstract Base]
        B[Simulator~T~<br/>Abstract with Template Method]
        C[EntityReader~T~<br/>Abstract]
        D[IEntityFactory~T~<br/>Interface]
        E[IEntityIterator~T~<br/>Interface]
    end
    
    subgraph "Morg Specialisation"
        F[Morg<br/>Inherits Entity]
        G[Dish<br/>Inherits Simulator~Morg~]
        H[MorgReader<br/>Inherits EntityReader~Morg~]
        I[MorgFactory<br/>Implements IEntityFactory~Morg~]
    end
    
    subgraph "Strategy Pattern"
        J[IMovementStrategy]
        K[IFeedingStrategy]
        L[MovementStrategyPaddles]
        M[MovementStrategyOozes]
        N[FeedingStrategyAbsorbs]
        O[FeedingStrategyEnvelops]
    end
    
    subgraph "Decorator Pattern"
        P[FileReader]
        Q[CSVReader]
        R[MorgReader]
    end
    
    A --> F
    B --> G
    C --> H
    D --> I
    E --> S[EntityIterator~T~]
    
    F --> J
    F --> K
    J --> L
    J --> M
    K --> N
    K --> O
    
    P --> Q
    Q --> R
    R --> H
    
    I --> F
    I --> J
    I --> K