Website Summary Files Commits Branches @commit @diff @stats
path: root / docs / FMI-OOP-P1_TicketSystem Overview.nomnoml
blob: 2a8655279bf69dbbff7633910cab3e3c69f24a38 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#title: FMI-OOP-P1_TicketSystem Overview
#background: #fdf6e3
#bendSize: 0
#fillArrows: true
#lineWidth: 2
#leading: 1.3

#.groupui: title=italic fill=#b2ee97 direction=right
#.groupes: title=italic fill=#97c8ee direction=right
#.groupe: title=italic fill=#ee9797 direction=right
#.groupv: title=italic fill=#eee997 direction=right
#.groupsc: title=italic fill=#c0baac direction=right

[<groupui> User Interface|

	[Command|
		String name
    	void (*exec)()
	]

	[Menu|
		List<Command> commands
        navigate()
	]
	[Menu]-->[Command]
]

[<groupv> Venue Container|
	[Hall|
		int index
	    unsigned rowCount
    	unsigned seatsPerRow
	]

	[Venue|
		List<Hall> halls
    	EventSystem es
	]
	[Venue]-->[Hall]
]

[VenueConsoleUI.cpp|
	Venue* venue
	run()
]
[User Interface]--[VenueConsoleUI.cpp]
[Venue Container]--[VenueConsoleUI.cpp]

[<groupes> Events Manager|
	[EventSystem|
    	OrderedList<Event> events
        |
		+ createEvent()
    	. cancelEvent()
	    + reserveTicket()
    	+ cancelTicketReservation()
    	+ buyTicket()
        . queryEventHall()
        . queryTickets()
        . queryReservations()
    	~ queryMostVisited()
    	~ queryInsufficientlyVisited()
        + reportBoughtTickets()
        + reportReservations()
	]
    
    [StatusCodes.h|
    	enum StatusCode
    ]
    [EventSystem]-/-[StatusCodes.h]
]
[VenueConsoleUI.cpp]Venue (instance) ->[Events Manager]

[<groupe> Event Object|
	[Ticket|
    	unsigned row
    	unsigned seat
	]

	[Reservation|
    	Ticket ticket
		char\[8\] password
    	char\[32\] note
	]

	[Event|
     	Hall* hall
    	String name
		Date date
    	OrderedList<Ticket> _tickets
	    OrderedList<Reservation> _reservations
        |
	    reserveTicket()
    	cancelReservation()
    	buyTicket()
	]
	[Event]-->[Ticket]
	[Event]-->[Reservation]
]
[Events Manager]OrderedList<Event> ->[Event Object]

[<groupsc> Standard Classes|
	[List<T>|
    	add(elem)
        insertAt(elem, index)
        removeAt(index)
        findIndex(elem);
		contain(elem);
    	operator\[\](index)
	]
    
    [OrderedList<T>|
    	insert(elem)
        remove(elem)
    ]
    [List<T>]<:-[OrderedList<T>]

	[Date|
		unsigned day
    	unsigned month
	    int year
	]

	[String|
		char* str
	    unsigned length
    	unsigned count
	]
        
    [String]-/-[Date]
]
[<hidden>H1]-/-[<hidden>H2]
[H2]-/-[Standard Classes]