Docsity

Object Oriented Software Engineering, Study notes of Object Oriented Analysis and Design

Toggle sidebar
bg1
Unit๎˜ ๎˜-๎˜ ๎˜1
UNIFIED๎˜ ๎˜PROCESS
- Phases๎˜ ๎˜of๎˜ ๎˜the๎˜ ๎˜Unified๎˜ ๎˜Process
- Mapping๎˜ ๎˜of๎˜ ๎˜Phases๎˜ ๎˜and๎˜ ๎˜๎˜Generic๎˜ ๎˜Process๎˜ ๎˜Framework
- Unified๎˜ ๎˜Process๎˜ ๎˜Work๎˜ ๎˜Products
Unified๎˜ ๎˜Development๎˜ ๎˜Process๎˜ ๎˜(UDP)๎˜:
- UDP๎˜ ๎˜is๎˜ ๎˜a๎˜ ๎˜method๎˜ ๎˜of๎˜ ๎˜managing๎˜ ๎˜OO๎˜ ๎˜software๎˜ ๎˜development
- It๎˜ ๎˜can๎˜ ๎˜be๎˜ ๎˜viewed๎˜ ๎˜as๎˜ ๎˜a๎˜ ๎˜Software๎˜ ๎˜Development๎˜ ๎˜Framework๎˜ ๎˜which๎˜ ๎˜is๎˜ ๎˜extensible๎˜ ๎˜and
features:
- Iterative๎˜ ๎˜Development
- Requirements๎˜ ๎˜Management
- Component-Based๎˜ ๎˜Architectural๎˜ ๎˜Vision
- Quality๎˜ ๎˜Management
- Change๎˜ ๎˜Control๎˜ ๎˜Management
UDP๎˜ ๎˜Features:
- Templates๎˜ ๎˜for๎˜ ๎˜all๎˜ ๎˜major๎˜ ๎˜artifacts,๎˜ ๎˜including๎˜ ๎˜RequisitePro๎˜ ๎˜templates๎˜ ๎˜(requirements
tracking),๎˜ ๎˜Word๎˜ ๎˜templates๎˜ ๎˜for๎˜ ๎˜Use๎˜ ๎˜Cases,๎˜ ๎˜Project๎˜ ๎˜Templates๎˜ ๎˜for๎˜ ๎˜Project๎˜ ๎˜Management.
- Process๎˜ ๎˜Manuals๎˜ ๎˜describing๎˜ ๎˜key๎˜ ๎˜processes
- Online๎˜ ๎˜repository๎˜ ๎˜of๎˜ ๎˜Process๎˜ ๎˜Information๎˜ ๎˜and๎˜ ๎˜Description
Iterative๎˜ ๎˜Development๎˜ ๎˜Process๎˜:
- Recognizes๎˜ ๎˜the๎˜ ๎˜reality๎˜ ๎˜of๎˜ ๎˜changing๎˜ ๎˜requirements
- Promotes๎˜ ๎˜early๎˜ ๎˜risk๎˜ ๎˜mitigation๎˜ ๎˜by๎˜ ๎˜breaking๎˜ ๎˜down๎˜ ๎˜the๎˜ ๎˜system๎˜ ๎˜into๎˜ ๎˜mini๎˜ ๎˜projects๎˜ ๎˜and
focusing๎˜ ๎˜on๎˜ ๎˜the๎˜ ๎˜riskier๎˜ ๎˜elements๎˜ ๎˜first.
- Allows๎˜ ๎˜you๎˜ ๎˜to๎˜ ๎˜โ€˜plan๎˜ ๎˜a๎˜ ๎˜little,๎˜ ๎˜design๎˜ ๎˜a๎˜ ๎˜little,๎˜ ๎˜and๎˜ ๎˜code๎˜ ๎˜a๎˜ ๎˜littleโ€™
- Encourages๎˜ ๎˜all๎˜ ๎˜participants,๎˜ ๎˜including๎˜ ๎˜testers,๎˜ ๎˜integrators,๎˜ ๎˜and๎˜ ๎˜technical๎˜ ๎˜writers๎˜ ๎˜to
be๎˜ ๎˜involved๎˜ ๎˜earlier๎˜ ๎˜on
- Allows๎˜ ๎˜the๎˜ ๎˜process๎˜ ๎˜itself๎˜ ๎˜to๎˜ ๎˜modulate๎˜ ๎˜with๎˜ ๎˜each๎˜ ๎˜iteration,๎˜ ๎˜allowing๎˜ ๎˜you๎˜ ๎˜to๎˜ ๎˜correct
errors๎˜ ๎˜sooner๎˜ ๎˜and๎˜ ๎˜put๎˜ ๎˜into๎˜ ๎˜practice๎˜ ๎˜lessons๎˜ ๎˜learned๎˜ ๎˜in๎˜ ๎˜the๎˜ ๎˜prior๎˜ ๎˜iteration
- Focuses๎˜ ๎˜on๎˜ ๎˜component๎˜ ๎˜architectures,๎˜ ๎˜not๎˜ ๎˜final๎˜ ๎˜big๎˜ ๎˜bang๎˜ ๎˜deployments
Incremental๎˜ ๎˜Development๎˜ ๎˜Process:
- Allows๎˜ ๎˜for๎˜ ๎˜software๎˜ ๎˜to๎˜ ๎˜evolve,๎˜ ๎˜not๎˜ ๎˜be๎˜ ๎˜produced๎˜ ๎˜in๎˜ ๎˜one๎˜ ๎˜huge๎˜ ๎˜effort
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d

Partial preview of the text

Download Object Oriented Software Engineering and more Study notes Object Oriented Analysis and Design in PDF only on Docsity!

Unit - 1

UNIFIED PROCESS

- Phases of the Unified Process

  • Mapping of Phases and **Generic Process Framework
  • Unified Process Work Products**

Unified Development Process (UDP):

  • UDP is a method of managing OO software development
  • It can be viewed as a Software Development Framework which is extensible and features: - Iterative Development - Requirements Management - Component-Based Architectural Vision - Quality Management - Change Control Management

UDP Features:

  • Templates for all major artifacts, including RequisitePro templates (requirements tracking), Word templates for Use Cases, Project Templates for Project Management.
  • Process Manuals describing key processes
  • Online repository of Process Information and Description

Iterative Development Process:

  • Recognizes the reality of changing requirements
  • Promotes early risk mitigation by breaking down the system into mini projects and focusing on the riskier elements first.
  • Allows you to โ€˜plan a little, design a little, and code a littleโ€™
  • Encourages all participants, including testers, integrators, and technical writers to be involved earlier on
  • Allows the process itself to modulate with each iteration, allowing you to correct errors sooner and put into practice lessons learned in the prior iteration
  • Focuses on component architectures, not final big bang deployments Incremental Development Process:
  • Allows for software to evolve, not be produced in one huge effort
  • Allows software to improve, by giving enough time to the evolutionary process itself
  • Forces attention on stability, for only a stable foundation can support multiple additions
  • Allows the system (a small subset of it) to actually run much sooner than with other processes
  • Allows interim progress to continue through the stubbing of functionality
  • Allows for the management of risk, by exposing problems earlier on in the development process

Goals and features of each iteration:

  • Primary goal of each iteration is to slowly chip away at the risk facing the project, namely performance risks, integration risks, conceptual risks
  • Perform a โ€˜mini waterfallโ€™ project that ends with a delivery of something tangible in code, available for scrutiny by the interested parties, which produces validation or correctives
  • Each iteration is risk-driven
  • Result of a single iteration is an increment โ†’ an incremental improvement of the system, yielding an evolutionary approach

Development Phases:

  • Inception Phase
  • Elaboration Phase
  • Construction Phase
  • Transition Phase

Phases of the Unified Process:

  • Analysis and design models from the previous phase are completed to reflect the final version of the increment
  • Use cases are used to derive a set of acceptance tests that are executed prior to the next phase

Transition Phase:

  • Encompasses the last part of the construction activity and the first part of the deployment activity of the generic process
  • Software is given to end users for beta testing and user feedback reports on defects and necessary changes
  • The software teams create necessary support documentation (user manuals, troubleshooting guides, installation procedures)
  • At the conclusion of the phase, the software increment becomes a usable software release

Production Phase:

  • Encompasses the last part of the deployment activity of the generic process
  • On going use of the software is monitored
  • Support for the operating environment is provided
  • Defect reports and requests for changes are submitted and evaluated

Generic Process Framework: Generic Process Framework encompasses 5 activities:

  • Communication
  • Planning
  • Modeling
  • Construction
  • Deployment

Communication: This framework activity involves heavy communication and collaboration with the customers (and other stakeholders) and encompasses requirements gathering and other related activities.

Planning: This activity establishes a plan for the software engineering work that follows. It describes the technical tasks to be conducted, the risks that are likely, the resources that will be required, the work products to be produced and a work schedule.

Modeling: This activity encompasses the creation of models that allows the developer and the customer to better understand software requirements and the design that will achieve those requirements.

Construction: This activity combines code generation (either manual or automated) and the testing that is required to uncover errors in the code.

Deployment: The software (as a complete entity or as a partially completed increment) is delivered to the customer who evaluates the delivered product and provides feedback based on the evaluation.

These five generic framework activities can be used during the development of small programs, the creation of large web applications and for the engineering of large, complex, computer-based systems. The details of the software process will be quite different in each case, but the framework activities remain the same.

Unified Process Work Products:

  • Work products are produced in each of the first four phases of the unified process
  • Providing sufficient notation to address contemporary modeling issues directly and economically.
  • Providing extensibility mechanisms to extend UML for individual projects.
  • The UML enables and promotes a use-case-driven, architecture-centric, iterative, and incremental process that is object oriented and component based.

Evolution of the UML: Unification

- James Rumbaugh, Grady Booch and Ivar Jacobson joined Rational Software Corporation to unify their methods. Rumbaugh โ†’ Analysis oriented (OMT) Booch โ†’ Design and Construction oriented Jacobson โ†’ Use case oriented (OOSE) - Since the independent methods were evolving towards one another, continue evolution by unification. - Identify and incorporate fundamental concepts, building a meta model and a notation to describe them.

Standardization

  • More companies joined the UML partnerโ€™s consortium to contribute their ideas and produce version 1.1 of the UML with - Increased formalism - Improved structural packaging - Improved mapping of notation to semantics
  • UML 1.1 is accepted by OMG as a standard in fall 1997.

Common Mechanisms in UML UML has four common mechanisms:

  • Specifications
  • Adornments
  • Common divisions
  • Extensibility Mechanisms

Specifications: In UML, behind each graphical notation there is a textual statement denoting the syntax and semantics. These are the specifications. The specifications provide a semantic backplane that contains all the parts of a system and the relationship among the different paths.

Adornments: Each element in UML has a unique graphical notation. Besides, there are notations to represent the important aspects of an element like name, scope, visibility, etc.

Common Divisions: Object-Oriented systems can be divided in many ways. The two common ways of division are:

- Division of classes and objects : A class is an abstraction of a group of similar objects. An object is the concrete instance that has actual existence in the system. - Division of Interface and Implementation : An interface defines the rules for interaction. Implementation is the concrete realization of the rules defined in the interface.

Extensibility Mechanisms: UML is an open-ended language. It is possible to extend the capabilities of UML in a controlled manner to suit the requirements of a system. The extensibility mechanisms are:

- Stereotypes : It extends the vocabulary of the UML, through which new building blocks can be created out of existing ones - Tagged Values : It extends the properties of UML building blocks - Constraints : It extends the semantics of UML building blocks

UML Building Blocks: The basic building blocks of UML are: things, relationships, diagrams

Things:

  • The abstractions that are first-class citizens in a model
  • Things are the most important building blocks of UML.
  • Things can be- โ—‹ Structural โ—‹ Behavioral โ—‹ Grouping โ—‹ Annotational

- Collaboration: Collaboration defines an interaction between elements

Collaboration is represented by a dotted ellipse. Collaboration represent the responsibilities. Generally, responsibilities are in a group.

- Use Case: Use case represents a set of action performed by a system for a specific goal

Use case is represented as an ellipse with a name inside it. It may contain additional responsibilities. Use Case is used to capture high level functionalities of a system.

- Active Class: Active class is used to describe the concurrent behavior of a system.

Active class is used to represent the concurrency in a system.

- Component: Component describes the physical part of a system

Component is used to represent any part of a system for which UML diagrams are made.

- Node: A node can be defined as a physical element that exists at run time

A node represents the physical component of the system. Node is used to represent the physical part of a system such as the server, network, etc.

Behavioral things are dynamic parts of UML model. It represents behavior over time and space. It consists of the dynamic parts of UML models. Following are the behavioral things: interaction, state machine.

- Interaction: Interaction is defined as a behavior that consists of a group of messages exchanged among elements to accomplish a specific task.

Interaction is basically a message exchange between two UML components. The following diagram represents different notations used in an interaction.

State machine is used to describe different states of a system component. The state can be active, idle, or any other depending upon the situation.

Grouping things can be defined as a mechanism to group elements of a UML model together. There is only one grouping thing:

- Package: Package is the only one grouping thing available for gathering structural and behavioral things.

Package is used to wrap the components of a system. Package notation is shown below:

Annotational things can be defined as a mechanism to capture remarks, descriptions, and comments of UML model elements.

- Note: It is the only annotational thing. A note is used to render comments, constraints, etc. of an UML element.

The notation is show below:

These notations are used to provide necessary information of a system.

Relationship: Relationship shows how the elements are associated with each other and this association describes the functionality of an application. There are four kinds of relationships available: dependency, association, generalization, realisation.

- Dependency: Dependency is a relationship between two things in which change in one element also affects the other.

Dependency dependent elements and the direction of dependency. Dependency is represented by a dotted arrow. The arrow head represent the independent element and the other end represent the dependent element.

Dependency is used to represent the dependency between two elements of a

- Realization: Realization can be defined as a relationship in which two elements are connected. One element describes some responsibility which is not implemented and the other one implements them. This relationship exists in case of interfaces.

It is a semantic relationship between classifier wherein one classifier specifies a contract that another classifier guarantees to carry out. Realization encounter in two places: โ†’ between interfaces and the classes or components that realize them โ†’ between use cases and the collaborations that realize them

Realization is a relationship between the blueprint class (interface) and a class containing its respective implementation details.

Diagrams: All the elements, relationships are used to make a complete UML diagram and the diagram represents a system.

UML diagrams:

  • Use Case diagram : For High level business scenarios
  • Sequence diagram or Collaboration diagram : For detailed activities within a scenario
  • Class diagram : For a view of the static structure of the system
  • State chart diagram or Activity Diagram : For classes with a dynamic behavior Component diagrams : For describing organization and dependencies among software components
  • Deployment diagrams : For describing the configuration of resource elements and mapping of software implementation components onto them
  • Package diagram : For Modules
  • Association is a structural relationship that describes a set of links, a link being a connection among objects. Aggregation is a special kind of association representing a structural relationship between a whole and its parts.
  • Graphically, an association is rendered as a solid line, possibly directed, occasionally including a label, and often containing multiplicity and role names.
  • An association is a bi-directional connection between classes
  • An association is shown as a line connecting the related classes
  • An aggregation is a stronger form of relationship where the relationship is between a whole and its parts
  • An aggregation is shown as a line connecting the related classes with a diamond next to the class representing the whole

UML Modeling Types (or Basic Object Modelling ): Different diagrams are used for different for different types of UML modeling.

Structural Modeling captures the static features of a system. They consist of the following:

  • Class diagram
  • Objects diagram
  • Deployment diagram
  • Package diagram
  • Composite structure diagram
  • Component diagram Structural model represents the framework for the system and this framework is the place where all other components exist. Hence, the class diagram, component diagram and deployment diagrams are part of structural modeling. They all represent the elements and the mechanism to assemble them. The structural model never describes the dynamic behavior of the system.

Behavioral Modeling describes the interaction in the system. It represent the interaction among the structural diagrams. Behavioral modeling shows the dynamic nature of the system. They consist of the following:

  • Activity diagrams
  • Interaction diagrams
  • Use Case diagrams All the above show the dynamic sequence of flow in a system.

Architectural Modeling represents the overall framework of the system. It contains both structural and behavioral elements of the system. Architectural model can be defined as the blueprint of the entire system. Package diagram comes under architectural modeling.

Use Case Diagram: Use case diagrams consists of actors, use cases and their relationships. The diagram is used to model the system/subsystem of an application. A single use case diagram captures a particular functionality of a system. Hence to model the entire system, a number of use case diagrams are used.

Purpose of Use Case Diagrams is to capture the dynamic aspect of a system. Use case diagrams are used to gather the requirements of a system including internal and external influences. These requirements are mostly design requirements. Hence, when a system is analyzed to gather its functionalities, use cases are prepared and actors are identified. When the initial task is complete, use case diagrams are modelled to present the outside view. In brief, the purpose of use case diagrams can be said to be:

  • Used to gather the requirements of a system
  • Used to get an outside view of a system
  • Identify the external and internal factors influencing the system
  • Show the interaction among the requirements are actors.

Steps / procedure to draw Use Case diagram: Use case diagrams are considered for high level requirement analysis of a system. When the requirements of a system are analyzed, the functionalities are captured in use cases.

Use cases are the system functionalities written in an organized manner. Actors can be defined as something that interacts with the system. Actors can be a human user, some internal applications, or may be some external applications.

To draw use case, firstly we need to have the following items identified:

  • Functionalities to be represented as use case
  • Actors
  • Relationships among the use cases and actors

After identifying the above items, we have to use the following guidelines to draw an efficient use case diagram: