Escolar Documentos
Profissional Documentos
Cultura Documentos
Agenda
Introduction Project Overview System Analysis Software Requirement OO Approach Design Approach Requirements Listing Next Steps Q&A
Introduction
ARS is part of Passenger Service System (application support direct contact with passenger) Inventory Management maintain flight details Manual Vs Technical System Model View Controller Design
2/5/2012
Manual: Time consuming & lazy, more error prone Technical System: Faster System Accuracy Reliability Informative Reservations and cancellations from any where to any place
2/5/2012
Model: Application Object View: screen presentation Controller: Control the user interface update as per the user input
2/5/2012
Project Overview
Objective is to Design and develop an Airline Reservation System Implement ARS as standalone system Database design as data storage Extensible system for future enhancement & maintenance Object oriented approach
2/5/2012
System Analysis
Block Diagram
User Interface (Customer)
Request Response
ARS
Reports
Database
Booking Processing
2/5/2012
Software Requirement
Language: C++ (Visual Studio) Store Information: File or Database (Oracle/ IIS) User Interface: MFC Platform: Windows Design diagram: Rational Rose
2/5/2012
OO Approach: Fundamentals
Procedural Vs Object Oriented Approach Why use OO Approach OO Overview Object Oriented Principle
2/5/2012
Procedural Approach
APPLICATION
Module 1 Module 2 .. Module N
Program 1
Program 2
Program N
Function 1
Function 2
Function N
Developing an application using the procedural approach would involve Identification of modules Programs inside each module Every program would contain several functions and data The data would be the information necessary for the program and its functions
9
2/5/2012
OO Approach
An Object oriented approach views systems and programs as a collection of interacting OBJECTS.
OBJECT
An object is a thing in a computer system that is capable of responding to messages. An object has to be created from a class so that it can be used
OBJECT
OBJECT
OBJECT
OBJECT
OBJECT
The procedural approach views systems and programs as a collection of interacting FUNCTIONS
In the procedural approach, a program responds to messages when its functions are invoked. By simply including the file, the functions can be invoked and invocation requires nothing else
2/5/2012
10
The unit in procedural programming is function, and unit function, in object-oriented programming is class objectProcedural programming concentrates on creating functions, while object-oriented programming starts from objectisolating the classes, and then look for the methods inside them. Procedural programming separates the data of the program from the operations that manipulate the data, while object-oriented programming focus on both of objectthem
figure1: procedural
2/5/2012
The OO approach Deals with classes as the building blocks Allows Real World Modeling The idea of OOP is to try to approach programming in a more natural way by grouping all the code that belongs to a particular objectsuch as an account or a customer together
Project * * ProjMgr 1 1 *
ProjLead *
Raise the level of abstraction Applications can be implemented in the same terms in which they are described by users Easier to find nouns and construct a system centered around the nouns than actions in isolation
Employee
Manager 1 *
Salesperson
Easier to visualize an encapsulated representation of data and responsibilities of entities present in the domain The modern methodologies recommend the object-oriented approach even for applications developed in C or Cobol
12
2/5/2012
About Object
2/5/2012
14
About Class
2/5/2012
15
2/5/2012
16
Encapsulation is the mechanism that binds together the code and the data it manipulates, and keeps both safe from outside interference and misuse. Public variables and methods Private variables and methods Public variables is not recommended
A Class
2/5/2012
17
Inheritance is the process by which one object acquires the properties of another object. By use of inheritance, an object need only define all of its characteristics that make it unique within its class, it can inherit its general attributes from its parent. Account Checking Mortgage Loan
18
2/5/2012
Design Overview
2/5/2012
19
2/5/2012
20
Syntax
UseCaseName
actor
ActorName
system boundary
2/5/2012
21
P la ce orde r
S al es p e r so n
F ill o r d e r s C u s to m er E sta b l is h c re d i t S h ip p in g C le r k
S u p e r vi so r
2/5/2012
22
2/5/2012
23
System Functionality
2/5/2012
24
User Functionality
2/5/2012
25
Administrator Functionality
Add/Delete/Modify customer information Add/Delete/Modify flight information List all passenger/flight details Cancellations of Reservation
2/5/2012
26
Requirements Listing
Enquiry Reservation Cancellation Report Concession Fare detail & payment List of all passenger List of all flights List of passenger(date wise) List of passenger(flight wise)
27
2/5/2012
Next Steps
Modules Identification Data type identification Interface definition Class identification Identify design pattern Interaction between object and database Table structure User Interface
2/5/2012 28
Q&A
Thank You!
2/5/2012 29