ict117 week03 oo and uml s

Upload: danny-manno

Post on 07-Apr-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 ICT117 Week03 OO and UML s

    1/28

    Object-OrientationUML

    PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd EditionCopyright 2009 John Wiley & Sons, Inc. All rights reserved.

  • 8/6/2019 ICT117 Week03 OO and UML s

    2/28

    What is an object?Something identifiableSomething with attributesSomething able to do things (behaviour)And has meaning to people in its context

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    3. 2

  • 8/6/2019 ICT117 Week03 OO and UML s

    3/28

    Abstraction and objectsObject is an abstraction of somethingIn business, objects can be described

    CustomerProduct

    Order

    Delivery

    The Information System that is an abstractionof the business can be composed ofinteracting objects

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    3. 3

  • 8/6/2019 ICT117 Week03 OO and UML s

    4/28

    Characteristics of objectsObjects can be classified on the basis ofsimilarities

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3. 4

  • 8/6/2019 ICT117 Week03 OO and UML s

    5/28

    Characteristics of objectsSimilarly classified objects may be furtherspecialised (or generalised)

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3. 5

  • 8/6/2019 ICT117 Week03 OO and UML s

    6/28

    AbstractionA class is an abstraction of the objects that itdescribesA class is NOT a collection of all objectsA class is a TEMPLATE that applies to all itsobjects

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3. 6

    CLOCK: Tells time of day

    Has two handsHas numerals

    Circular display format

  • 8/6/2019 ICT117 Week03 OO and UML s

    7/28

    InheritanceGeneralisation and specialisation representan inheritance hierarchy

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3. 7

    Living Thing

    Animal Vegetable

    FishMammal

  • 8/6/2019 ICT117 Week03 OO and UML s

    8/28

    PolymorphismMeans (literally) one thing that has many formsor shapesIn Object-Orientation it applies to inheritancehierarchies.It means: a classs particular inheritedbehaviour being changeable depending onthe identity of the sub-class

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3. 8

  • 8/6/2019 ICT117 Week03 OO and UML s

    9/28

    PolymorphismThe class Animal will have a behaviour Movethat is inherited by its sub-classes.When Mammal receives a message to Move, itwill walk, but Fish receiving the samemessage will swim

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3. 9

    Animal

    FishMammal

  • 8/6/2019 ICT117 Week03 OO and UML s

    10/28

    EncapsulationTo put something inside something else(hiding something)The concept that we dont need to know howsomething is done just that it is done.In Object terms we can know the name of abehaviour in order to execute it, but wedont know how it is executed.

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3.10

  • 8/6/2019 ICT117 Week03 OO and UML s

    11/28

    Encapsulation

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3.11

    From Booch,Maksimchuk et al pg 51

  • 8/6/2019 ICT117 Week03 OO and UML s

    12/28

    Software objectsThe business objects that we identify in theProblem Domain can become:Software objects in the Solution Domain

    Software that is identifiable (named modules)

    Software that has attributes (data structures)

    Software that has behaviour (executes logical sequences)

    We construct an IS from software objects tosupport the business17 March, 2011 ICT117 Systems Analysis & Design, Semester 1, 2011

    Includes John Wiley& Sons Inc material

    3.12

  • 8/6/2019 ICT117 Week03 OO and UML s

    13/28

    The Unified Modeling

    Language

  • 8/6/2019 ICT117 Week03 OO and UML s

    14/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    14

    Unified Modeling LanguageUML provides a common vocabulary of object-oriented terms and diagramming techniquesrich enough to model any systemsdevelopment project from analysis throughto implementation

    Version 2.0 has 14 diagram types in 2 majorgroups:Structure diagrams

    Behaviour diagrams

  • 8/6/2019 ICT117 Week03 OO and UML s

    15/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    15

    Basic concepts (Booch et al, 2007)Object:A well-defined conceptCan be comprehended intellectuallyUniquely identifiableRepresents some part of realityCan be real (tangible) or abstractHas a well-defined role in the problemdomain

  • 8/6/2019 ICT117 Week03 OO and UML s

    16/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    16

    Basic concepts (Booch et al, 2007)Object definition for OOSAD purposes:

    An entity that has state, behaviour andidentity. The structure and behaviour ofsimilar objects are defined in theircommon class. The terms instance andobject are interchangeable.

    Class is a generalisation of (or classificationof) a set of like objects

  • 8/6/2019 ICT117 Week03 OO and UML s

    17/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    17

    State, behaviour, identityState: all the properties of an object plus theircurrent valuesBehaviour: an objects outwardly visibleactivity how it acts and reacts in terms ofits state and its stimuli (communications)Identity: that property of an object thatdistinguishes it from all other objects

    (Booch et al, 2007)

  • 8/6/2019 ICT117 Week03 OO and UML s

    18/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    18

    UML Structure DiagramsRepresent the data and static relationships inan information systemClassObject

    Package

    Deployment

    ComponentComposite structure

  • 8/6/2019 ICT117 Week03 OO and UML s

    19/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    19

    UML Behaviour DiagramsDepict the dynamic relationships among theinstances or objects that represent thebusiness information system- Activity - Timing

    - Sequence - Behaviour state machine

    - Communication - Protocol state machine

    - Interaction overview - Use Case diagrams

  • 8/6/2019 ICT117 Week03 OO and UML s

    20/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    20

    SummaryThe Unified Process is a two-dimensionalsystems development process describedwith a set of phases and workflowsThe Unified Modeling Language, or UML, is astandard set of diagramming techniques

  • 8/6/2019 ICT117 Week03 OO and UML s

    21/28

    OOSADUse case drivenArchitecture centricIterative and incremental

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    3.21

  • 8/6/2019 ICT117 Week03 OO and UML s

    22/28

    The Unified Process

    A variant of the SDLC using Object-

    Oriented modelling techniques

  • 8/6/2019 ICT117 Week03 OO and UML s

    23/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    23

    The Unified ProcessA specific methodology that maps out whenand how to use the various UML techniquesfor object-oriented analysis and designA two-dimensional process consisting ofphases and workflows

    Phases describe how the system evolves overtime Workflows are collections of tasks that occurthroughout the lifecycle, but vary in intensity

  • 8/6/2019 ICT117 Week03 OO and UML s

    24/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    24

    The Unified ProcessWorkflows

  • 8/6/2019 ICT117 Week03 OO and UML s

    25/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    25

    Unified Process PhasesInceptionElaborationConstructionTransition

  • 8/6/2019 ICT117 Week03 OO and UML s

    26/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    26

    Engineering WorkflowsBusiness modelingRequirements (gathering)AnalysisDesignImplementationTestingDeployment

  • 8/6/2019 ICT117 Week03 OO and UML s

    27/28

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    27

    Supporting WorkflowsProject managementConfiguration and change managementEnvironmentOperations and support*Infrastructure management*

    * Part of the enhanced unified process

  • 8/6/2019 ICT117 Week03 OO and UML s

    28/28

    Next weekRequirements determination(finding out what is required to be done)

    17 March, 2011 ICT117 Systems Analysis & Design, Semester 2, 2010

    Includes John Wiley& Sons Inc material

    28