1 / 11

Stimulate 2005

Stimulate 2005. System Analysis and Design (SA&D) Object Oriented modeling Part 2: Use case modeling. Instructor: Luz M. Quiroga lquiroga@hawaii.edu University of Hawaii Information and Computer Science / Library and information Science POST 314b; 808-956-9988.

robyn
Download Presentation

Stimulate 2005

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Stimulate 2005 System Analysis and Design (SA&D) Object Oriented modeling Part 2: Use case modeling Instructor: Luz M. Quiroga lquiroga@hawaii.edu University of Hawaii Information and Computer Science / Library and information Science POST 314b; 808-956-9988

  2. Object ModelingClass Diagrams • Object • An entity that has a well-defined role in the application domain, and has state, behavior, and identity • State • A condition that encompasses an object’s properties and the values those properties have • Behavior • A manner that represents how an object acts and reacts • Object Class • A set of objects that share a common structure and a common behavior

  3. Object ModelingClass Diagrams • Class Diagram • Class is represented as a rectangle with three compartments • Objects can participate in relationships with objects of the same class

  4. Representing classes and objects UML notation Encapsulation reusability Source: Sinha

  5. Representing Associations • Association • A relationship between object classes • Degree may be unary, binary, ternary or higher • Depicted as a solid line between participating classes • Association Role • The end of an association where it connects to a class • Each role has multiplicity, which indicates how many objects participate in a given association relationship

  6. Toward class diagrams:Representing relationships Note similarity to ER Source: Sinha

  7. Class diagrams examples University example Customer order example Source: Sinha

  8. Representing Generalization • Generalization • Abstraction of common features among multiple classes, as well as their relationships, into a more general class • Subclass • A class that has been generalized • Superclass • A class that is composed of several generalized subclasses • Inheritance • A property that a subclass inherits the features from its superclass

  9. Class diagrams: representing Generalization (superclasses - subclasses) and inheritance Employee superclass Patientsuperclass Source: Sinha

  10. Representing Aggregation • Aggregation • A part-of relationship between a component object and an aggregate object • Example: Personal computer • Composed of CPU, Monitor, Keyboard, etc

  11. Class diagram: representing Aggregation: part - whole relationship Source: Sinha

More Related