Beruflich Dokumente
Kultur Dokumente
System modelling
System modelling helps the analyst to understand the functionality of the system and models are used to communicate with customers. Different models present the system from different perspectives
Structural perspective showing the system or data architecture; Behavioural perspective showing the behaviour of the system; External perspective showing the systems context or environment.
Building a model of an application domain and then adding implementation details to it. Following four stages: Analysis; System Design; Object Design; Implementation.
Three Models
Object
Model describes the static structure of objects in the system and their relationships. Dynamic Model describes the aspect of the system that change over time, i.e. interaction among objects. Functional Model describes data value transformation in the system.
Object Model
Describes
a system- Identity - Relationship to other objects - Their attributes - And their operations.
Dynamic Model
Describes
those aspects of the system concerned with time and sequencing of operationsEvents that make change Sequence of events States that define context of events And organization of events and states.
Functional Model
Describes
Is
The UML is a standard representation devised by the developers of widely used object-oriented analysis and design methods. It has become an effective standard for object-oriented modelling.
Employee
is-member-of
Department
is-managed-by
manages
Manager
Associations
Connection Solid
between objects
line
Association Examples
Order
Not UML
Order 1 1..*
Attribute Elements
Visibility Name Type Multiplicity Default
Attribute Types
Instance
attributes
Each object of the class has its own attribute Changing the value of the attribute affects only the containing object
Class
attributes
Only one instance of the attributes for all objects of the class Changing the value of the attribute affects all objects of the class Underline the attribute
A : Foo2
B : Foo2
-Bar : int
Read er Af filiatio n
Multiple inheritance
Bo ok Auth or Ed ition Pu blicatio n da te ISBN Vo ice record in g Sp eak er Du ratio n Reco rdin g date
T in g bo ok alk # Tapes
Object aggregation
An
aggregation model shows how classes that are collections are composed of other classes.
Aggregation
Object aggregation
Generalization
Models
the concept of inheritance Subclasses inherit the attributes and operations of all their superclasses Objects of a subclass should be substitutable for objects of their superclasses Uses hollow triangle arrowhead on superclass
Generalization Example1
Shape +draw()
Rectangle +draw()
Triangle +draw()
Circle +draw()
Square +draw()
Generalisation Example2
Employee
Constraints
A restriction in the design Documented inside curly braces {} attached to any diagram element
ATM Transaction
{value >= 0} amount : Money {value is multiple of $20} balance : Money
ATM Transaction
{value >= 0} amount : Money {value is multiple of $20} balance : Money
line items
Employee
Abstract Classes
Used to hold common operations and data Used in inheritance hierarchy
behavioural model shows the interactions between objects to produce some particular system behaviour that is specified as a usecase. diagrams (or collaboration diagrams) in the UML are used to model interaction between objects.
Sequence
Characteristics of OOD
Objects are abstractions of real-world or system entities and manage themselves Objects are independent and encapsulate state and representation information. System functionality is expressed in terms of object services
Advantages of OOD
Easier
maintenance. Objects may be understood as stand-alone entities are appropriate reusable components some systems, there may be an obvious mapping from real world entities to system objects
Objects
For