DON'T BE SATISFIED WITH B when you can get A+
--Your friends at LectureNotes

Note for Object Oriented Analysis And Design With UML - OOAD By Debasish Nanda

  • Object Oriented Analysis And Design With UML - OOAD
  • Note
  • 14 Offline Downloads
  • Uploaded 11 months ago
Debasish Nanda
Debasish Nanda
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-2

Class ModelThe class model describes the static structure of objects in a system—their identity, their relationships to other objects, their attributes, and their operations. The class model provides context for the state and interaction models. State ModelThe state model describes those aspects of objects concerned with time and the sequencing of operations—events that mark changes, states that define the context for events, and the organization of events and states. The state model captures control, the aspect of a system that describes the sequences of operations that occur, without regard for what the operations do, what they operate on, or how they are implemented.State diagrams express the state model. Interaction ModelThe interaction model describes interactions between objects—how individual objects collaborate to achieve the behavior of the system as a whole. Use cases, sequence diagrams, and activity diagrams document the interaction model. Relationship Among the Models-Each model describes one aspect of the system but contains references to the other models. The class model describes data structure on which the state and interaction models operate. The operations in the class model correspond to events and actions. The state model describes the control structure of objects. It shows decisions that depend on object values and causes actions that change object values and state. The interaction model focuses on the exchanges between objects and provides a holistic overview of the operation of a system. CHAPTER--3 Class Modeling A class model captures the static structure of a system by characterizing the objects in the system, the relationships between the objects, and the attributes and operations for each class of objects. The class model is the most important of the three models. Object and Class Concepts Objects-The purpose of class modeling is to describe objects. For example , Joe Smith. Simplex company, process number 7648 and the top window are objects. An object is a concept, abstraction, or thing with identity that has meaning for an application. Classes-An object is an instance of a class. A class describes a group of objects with the same properties (attributes), behavior (operations), kinds of relationships, and semantics. Person, company, process, and window are all classes. Class Diagrams-There are two kinds of models of structure—classes diagrams and object diagrams. Class diagrams provide a graphic notation for modeling classes and their relationships, thereby describing possible objects. Class diagrams are useful both for abstract modeling and for designing actual programs. An object diagram shows individual objects and their relationships. Figure 3.1 shows a class (left) and instances (right) described by it.

Text from page-3

Values and Attributes-A value is a piece of data. An attribute is a named property of a class that describes a value held by each object of the class. Name, birthdate, and weight arc attributes of Person objects. Color, model Year, and weight are attributes of Car objects. Each attribute has a value for each object. Operations and Methods-An operation is a function or procedure that may be applied to or by objects in a class. Hire, fire, and payDividend are operations on class Company. Open, close, hide, and redisplay are operations on class Window. A method is the implementation of an operation for a class. For example, the class File may have an operation print. Links and Associations--A link is a physical or conceptual connection among objects. For example, Joe Smith Works-For Simplex company. A link is an instance of an association. An association is a description of a group of links with common structure and common semantics. For example ,a person WorksFor a company. Multiplicity--Multiplicity specifies the number of instances of one class that may relate to a single instance of an associated class. Multiplicity constrains the number of related objects. The UML specifies multiplicity with an interval, such as 1" (exactly one), "1...*" (one or more), or "3...5" (three to five, inclusive). The special symbol "*” is a shorthand notation that denotes "many" (zero or more).

Text from page-4

Figure illustrates zero-or-one multiplicity. A workstation may have one of its windows designated as the console to receive general error messages. Association End Names--The name given to the association end. In the figure Person and Company participate in association WorksFor. A person is an employee with respect to a company; a company is an employer with respect to a person. Use of association end names is optional.

Text from page-5

Ordering-The objects have an explicit order. The ordering is an inherent part of the association. We can indicate an ordered set of objects by writing "{ordered}" next to the appropriate association end. Bags and Sequences-A bag is a collection of elements with duplicates allowed. A sequence is an ordered collection of elements with duplicates allowed. In Figure an itinerary is a sequence of airports and the same airport can be visited more than once. Association Classes— An association class is an association that is also a class. In Figure accessPermission is an attribute of AccessibleBy. The sample data at the bottomn of the figure shows the value for each link. The UML notation for an association class is a box (a class box) attached to the association by a dashed line. Qualified Associations-A qualified association is an association in which an attribute called the qualifier disambiguates the objects for a "many" association end. It is possible to define qualifiers for one-tomany and many-to-many associations. Bank and Account are classes and accountNumber is the qualifier. Qualification reduces the effective multiplicity of this association from one-tomany to one-to-one.

Lecture Notes