core.pu 1.88 KB
Newer Older
1
2
package Core {

3
4
5
6
'     note as notePackageCore
'     <b>Write access is restricted to site admins and the members of the DRI group.</b>
'     On some models, users can make requests for modifications (for this a copy of the model is used for storing).
' end note
7
8
9
10
11
12
13
14
15


class City  #white {
    + name : string
    + local_name : string
    + area : string
}

class Country #white {
16
    # iso_alpha2_code : string{2}
17
    + name : string
18
19
20
21
22
23
    + region_code : string{3}
    + region_name : string
    + sub_region_code : string{3}
    + sub_region_name : string
    + intermediate_region_code : string{3}
    + intermediate_region_name : string
24
25
26
27
}

City "*" -left-* Country

28
29
30

note "Countries are intially \n hardcoded in the db." as N2
N2 .up. Country
31
32
33
34
35

class University  #wheat {
    + name : string
    + accronyme : string
    + logo : image
36
    + website : url
37
38
}

39
University "1" .right. "1" City
40
41
42
43
44
note on link #white
    This link is acheived
    through the main campus module
    end note

45
    abstract class CampusCopy1 as "Campus" #red
46
47
48

    class MainCampus

49
50
    MainCampus -|>  CampusCopy1
    MainCampus "1" -[bold,#green]up- "1" University
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74



    Class Offer {
        + nb_seats_offered : int
    }

    Class Semester{
        + name : string
        + searchable : bool
    }

    Class Departement{
        + name : string
        + accronyme : string
        + searchable : bool
    }

    Class Specialty {
        + name : string
        + accronyme : string
        + searchable : bool
    }

75
    Offer "*" -right- "1" University
76
77
78
79
80
81
82
83
84
85
    Offer "*" -down- "1" Semester
    Offer "*" -left- "1..n" Departement
    Specialty "1..n" -left- "1" Departement

    note "Initial data inserted in db." as N3
    Semester .. N3
    N3 .. Specialty
    N3 .. Departement


86
87
    class UsefullLinks #green{
        + content : MD
88
89
    }

90
    note left of UsefullLinks: It will be a dynamic page \n on the website
91
}
92
' End of Core block