Documente Academic
Documente Profesional
Documente Cultură
display Panel
information
commands display
Control and data
panel alarm
http://java.sun.com/j2se/1.3/docs/api/
Composition Aggregation
http://msdn.microsoft.com/library/default.asp?url= Defines a whole/part Defines a containment
/library/en-us/cpref/html/frlrfsystemhierarchy.asp relationship relationship
Multiplicity may be specified in either case
EEC 521 EEC 521
Software Engineering Software Engineering
Identifying Analysis
Associations
Classes
• Just like data objects, classes can be • We begin with a grammatical parse
– Nouns
related to one another. These • Candidate classes
relationships are called “associations” – External entities, events, places, structures, things, etc.
• Candidate attributes
– Entities that naturally belong to a class
Phone
direction AnsweringMachine – Verbs
-phoneNumber -greeting • Candidate methods
-messages
– Operations that manipulate data
+getPhoneNumber() * 1 +setGreeting()
+dialPhone() +getMessages() – Operations that perform a computation
+answerPhone() +recordMessage() – Operations that inquire about state
“Handles calls for”
– Operations that check for a control event
multiplicity
UML notation
classes
accessibility modifiers
Java, C#, and VB .NET use a similar notion for categorizing
implementation
EEC 521
classes
Software Engineering