Download presentation
Presentation is loading. Please wait.
Published byTiffany Bradford Modified over 9 years ago
2
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com UML - Unified Modeling Language By Judi Copeland
3
Visual Models What is a visual model? What is a visual model? An abstract representation of something An abstract representation of something A symbol on a map indicating a street A symbol on a map indicating a street A symbol on a menu to indicate low fat A symbol on a menu to indicate low fat A symbol on a GPS system to locate your location A symbol on a GPS system to locate your location A shortcut method to communicate A shortcut method to communicate Symbols associated with an idea Symbols associated with an idea Symbols associated with an instruction Symbols associated with an instruction Symbols associated with a command Symbols associated with a command
4
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com Why Use Visual Models? It communicates large amounts of complex information It communicates large amounts of complex information They help us to understand They help us to understand They help us to communicate They help us to communicate They can be used to synthesize new objects or models They can be used to synthesize new objects or models
5
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com What Is UML? Very complex and rich language Very complex and rich language Based on a visual model Based on a visual model Uses a visual language Uses a visual language A standard language for A standard language for specifying, specifying, visualizing, visualizing, constructing, constructing, and documenting and documenting UML is a 'language' for specifying not a method or procedure UML is a 'language' for specifying not a method or procedure
6
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com What is UML For? UML helps us design effective object oriented software UML helps us design effective object oriented software The artifacts of software systems The artifacts of software systems For business modeling For business modeling For non-software systems For non-software systems We can use UML to: We can use UML to: Describe objects Describe objects Describe their attributes Describe their attributes Describe the relationships between objects Describe the relationships between objects
7
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com UML to Describe Objects All objects have a unique identity All objects have a unique identity Certain aspects of the object never change Certain aspects of the object never change Example One: Example One: Barbara Jones is a female Barbara Jones is a female Barbara will always be a female Barbara will always be a female Example Two: Example Two: Yellow cake is made from a basic recipe Yellow cake is made from a basic recipe It will always be moist, fluffy, and delicious It will always be moist, fluffy, and delicious
8
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com UML to Describe Attributes All objects can have attributes All objects can have attributes These attributes define the object more These attributes define the object more Example One: Example One: Barbara Jones gets married and adopts a cat Barbara Jones gets married and adopts a cat Her new name is Barbara Waters Her new name is Barbara Waters She is still the same person, but with a new name and cat She is still the same person, but with a new name and cat Example Two: Example Two: A yellow cake made from one recipe A yellow cake made from one recipe The choice of frosting options vary The choice of frosting options vary The cake is still a basic yellow cake with a different frosting The cake is still a basic yellow cake with a different frosting
9
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com UML to Describe Relationships Objects can interact with other objects Objects can interact with other objects UML allows this to happen by describe UML allows this to happen by describe How these objects relate How these objects relate What they do when put together What they do when put together Example: Example: Barbara Jones-Waters is a baker who loves to make yellow cakes. Barbara Jones-Waters is a baker who loves to make yellow cakes. Yellow cakes go well with chocolate, vanilla, and lemon frostings. Yellow cakes go well with chocolate, vanilla, and lemon frostings. Barbara needs to buy frosting for the cakes. Barbara needs to buy frosting for the cakes.
10
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com Object-Oriented Programming Different from procedure-oriented programming Different from procedure-oriented programming Not designed to be broken down into procedures Not designed to be broken down into procedures Assigns tasks directly to the object by: Assigns tasks directly to the object by: Describing the object itself Describing the object itself Describing the attributes Describing the attributes Describing the relationships Describing the relationships
11
copyright 2008 Judith A Copeland - http://www.webprogramminglounge.com Both OOP and UML Assigns tasks directly to the object by: Assigns tasks directly to the object by: Describing the object itself Describing the object itself Describing the attributes Describing the attributes Describing the relationships Describing the relationships
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.