Presentation is loading. Please wait.

Presentation is loading. Please wait.

Fall, 2002 SJSU -- CMPE Enterprise & Application Frameworks Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San.

Similar presentations


Presentation on theme: "Fall, 2002 SJSU -- CMPE Enterprise & Application Frameworks Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San."— Presentation transcript:

1 Fall, 2002 SJSU -- CMPE Enterprise & Application Frameworks Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San José State University One Washington Square San José, CA 95192-0180 URL: http://www.cmpe.sjsu.edu/~fayad

2 L3-S2OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 2 Lesson 3: Object-Oriented Concepts

3 L3-S3OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad Lesson Objectives 3 Understand OO concepts Using UML concepts Explore OO models

4 L3-S4OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad  Model building is a well established human tradition, e.g.  Ancient Egyptian built models for their pyramids and temples  Early ship builders produced physical models for the British Admiralty  Building plans  Electronic schematics  Physics 4 Modeling

5 L3-S5OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 5 More on Modeling  All models  Are description of something (i.e., a representation that is not the real thing)  Allow us to answer questions about the real thing, before we build it  Capture only those features deemed “essential” by model builders for their goals Any single thing can be represented by a large number of models

6 L3-S6OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 6 More on Modeling  Models can be validated (How?)  Experimenting with physical things  Quizzing experts, in a field of endeavor, about a conceptual entity.  We will focus on a model building approach to system development allowing:  An early explicit representation of the system to be built  Functionality  Data  Engineers to reason about implicit properties of the system  Deadlock  Response time

7 L3-S7OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 7 More on Modeling  In particular, we will focus on graphical modeling notations to utilize  “The parallel processing” capabilities of the human visual system in perceiving relationships A picture is worth a thousand words

8 L3-S8OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad  In this course, we will focus on the job of modelers:  How they collect facts/requirements about the application domain from different sources  How they prepare models of the application domain  How they limit their modeling activities  How they create one or more models of the target system  How they use models to create blueprints and architect software  How they test and validate their models 8 Modeling in this Course

9 L3-S9OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 9 Reading: Norman, D.A., Some Observations on Mental Models, In Dedre Gentner and Albert L. Stevens (Eds.), Mental Model. Hillsdale, NJ: Lawrence Erlbaum Associates, Inc. 1983. Target System Conceptual Model Mental Model Scientific Model Mental Model

10 L3-S10OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 10 Mental Model Properties  Incomplete  Limited  Unstable  Unscientific  Complicated ‘Parsimonious ’Unreliable

11 L3-S11OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 11 Modeling Concepts  Logical Forms  Structure  Abstraction  Concepts  Objects  Classes  Roles  Actors

12 L3-S12OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 12 Logical Forms  The same substance often take several forms.  ice, steam, water, snow, frost, fog are different forms of H 2 O  Some substances can be transformed from one form to another.  Not all of our studies are of material substances.  Speech, Writing, Geometry, Physics, etc.  But each area of human study acknowledges the existence of “good form”.  “Form” is thus equated with the existence of a pattern/order/consistency/regularity

13 L3-S13OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 13 Structure  “Structure” is the way a thing/construct/form is built up from its parts.  Changing the structure’s content can lead to new forms.  Musical notes, part of a house, etc.  A given content may exist in several different forms.  But each area of human study acknowledges the existence of “good form”.  Conversely, a form may also appear in several different contents  In fashion, dresses can be made from different materials.

14 L3-S14OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 14 Abstraction  “Abstraction” is the consideration of a form apart from its contents. Examples:  “roundness” is a property of a golf ball, a snow ball, a baseball, etc.  “hardness’ is a property of diamond, wood, steel, etc.  Abstraction can be improved upon by practice and study.  Abstract forms are discovered, and named, in the investigation of analogous forms.  A song ==> piano, guitar, etc.  A sphere ==> gold, steel, etc.  We teach abstraction by presenting a set of different things (physical or conceptual) and pointing out the common features that called formal properties.  formal properties are those properties that allow us to express the form of a thing.

15 L3-S15OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 15 Concept  “A concept” is an abstract form or an abstraction.  There is a set corresponding to each concept.  “The dress is white” means the dress is a member of the set of white things.  These sets need not to be disjoint (i.e., the same member may appear in several sets.  The white dress is short and charming.  These set are called classes or categories.  Concepts are formal properties we use to describe things.  The primitive notions of a factual scientific theory are its concepts  Biology ==> cells, bacteria, virus, animal, plant, etc.  Adjectives & adverbs usually are the names of concepts in English

16 L3-S16OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 16 Roles  A “role” is the part of a person or thing plays in a specific situation, operation, etc..  Many different object can play the same role.  Many roles can be played by the same object.  The white dress is short and charming.  A description of a role involves descriptions of:  Activities to be performed  Sequences or processes  Commands to be given and received  Roles are, therefore, abstractions (i.e., abstract forms or concepts).  In fact, roles are abstract temporal forms (i.e., a certain behavior at relative points in time).

17 L3-S17OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 17 Actors  Roles are defined independently of the things used to play that role.  Conversely, Actors are classes that are capable of playing different roles.  They are often classes of physical things.  Man, Woman, Car, etc.  They are often capable of playing different roles in the same time  Woman ==> Doctor, Mother, Pilot  They often take-on and lose roles over time

18 L3-S18OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 18 System Development is a Model Building  A model is any description of a system that captures some essential aspect while disregarding or ignoring others.  System development is the gradual transformation of a sequence of models.  Each model is an abstraction of the system which enables the designer to make the necessary decisions at this level in order to move closer to the final model, the tested source code.

19 L3-S19OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 19 Models Serve Several Purposes  Testing a physical entity before building it  Communication with customers  Visualization  Reduction of complexity

20 L3-S20OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 20 Modeling Notation Notation Again !

21 L3-S21OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 21 Objects/Classes Real-world systems can be decomposed into discrete entities called objects. Objects represent some things, concepts, or abstraction with definable boundaries and behaviors. An object is specific instance of a class to which it belongs. Classes have attributes and behaviors. Individual objects have their own specific values for each attribute and share the same behaviors.

22 L3-S22OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 22 More on Objects/Classes Examples: Objects ClassesAttributes A computer screenScreenResolution, # of colors A windowWindowSize, location IBMCompany Name, location, total revenue Chris JonesEmployee Name, department, salary

23 L3-S23OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 23 More on Objects/Classes Objects with the same attributes, behaviors, and relationships are grouped together into classes. A class describes general attributes and behaviors for a group of objects. An object is a single instance of its class (e.g., IBM is an instance of the Company class). A Class diagram is used to describe the attributes and behaviors of a class.

24 L3-S24OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad 24 More on Objects/Classes ClassName Attributes Behaviors Class Diagram Employee name salary dept calculatePay payAdjustment Examples Window size location background showWindow hidWindow

25 L3-S25OO Concepts Fall 2002 SJSU -- CmpE M.E. Fayad What is mental model? What are their properties? What are the properties of an essential model? What are the differences between tangible and intangible modeling? Identify examples of tangible modeling in system development Identify examples of intangible modeling in system development “System development is model building.” Please describe. “Models serve several purposes.” Please describe. Define: logical forms, abstraction, concepts, roles, actors, and objects 17 Discussion Questions


Download ppt "Fall, 2002 SJSU -- CMPE Enterprise & Application Frameworks Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San."

Similar presentations


Ads by Google