1
1
CS1007: Object Oriented Design and Programming in Java
Lecture #5 Jan 31
Shlomo Hershkop shlomo@cs.columbia.edu
2
Outline
- Feedback
- UML
- More UML and OOD
- Reading
Outline Feedback UML More UML and OOD Reading Chapter 2 2 - - PDF document
CS1007: Object Oriented Design and Programming in Java Lecture #5 Jan 31 Shlomo Hershkop shlomo@cs.columbia.edu 1 Outline Feedback UML More UML and OOD Reading Chapter 2 2 1 Feedback If you feel that the pace
1
Shlomo Hershkop shlomo@cs.columbia.edu
2
3
4
5
6
7
8
9
10
11 12
13
14
15
16
17
18
19
20
21
22
23
24
25
ME
26
ME Student Dean Get Roster Check Grades Enter Grades Verify Grades Validate User User
27
28
29
30
31
32
33
34
– States – Transitions – Rules for transitions – Actions
– Abstract machines and what they can solve – Used in AI – Related to formal language theory
35
36
37
/** Adds a message to the end of the new messages. @param aMessage a message */ public void addMessage(Message aMessage) { }
38
– (classes, interfaces, components, use cases, etc.)
– (associations, generalization, dependencies, etc.)
– (class diagrams, use case diagrams, interaction diagrams, etc.)
– elements, bonds and molecules in chemistry – components, connectors and circuit boards in hardware
39
40
41
Press 1 to listen to the current message Press 2 to delete the current message Press 3 to save the current message Press 4 to return to the mailbox menu
42
43
44
45
46
47
48
49
50
51 52
53
54
(Add collaborator Telephone to Connection)
(Add responsibility "manage greeting" to Mailbox, add collaborator Mailbox to Connection)
(Add responsibility "record voice input" to Connection)
(Add card for Message class, add collaborator Message to Connection)
55 56
57 58
59
(Add responsibility "manage passcode" to Mailbox)
Connection
(Add "retrieve messages" to responsibility of Mailbox). Connection asks Telephone to speak message
Connection 10.Connection tells Mailbox to save message (Modify responsibility of Mailbox to "retrieve,save,delete messages") 11.Connection asks Telephone to speak menu
60
61
62