Professional Documents
Culture Documents
UNIT I:
Data Modeling: Business Growth-Organizational Model-Case Study of student
MIS-What is the purpose of such Models-Understanding the business-Types of models-
model development approach-the case for structural development-advantages of using a case
tool. System analysis and design-what is DFD-General Rules for Drawing DFD-Difference
Between Logical data flow diagram and Physical data flow diagram-Software verses
Information Engineering-How case tools store information.
UNIT II:
Approach used to solve the problem statement: How to deal with a problem
statement-Data flow diagram for Payroll System-Presentation Diagram for Payroll System-
sehematics of the model-Forms-Screens-Menu Screens-Data entry Screens-Report Output
Format-Utilities. Installation of Ubridge and Synthesis: How to use the tools in Ubridge
Synthesis for case-Installation of Ubridge Synthesis-Computer Aided Software Engineering-
Getting Ubridge to work-Setup-Assign-Housekeep-The Ubridge page.
UNIT III:
Introduction to Ubridge: Introduction - Main flow of the system prototyping your
Report-Introducing the Novice Model of the Operation. Introducing Synthesis - Synthesis
basic – Synthesis - Menu Drawing the screen-Requirement Definition-Diagram-Data
Dictionary-Document-Synthesis Main Administration - Synthesis reference - importing and
exporting screen.
UNIT IV:
Diagram definition tool: Introduction-Starting DDT-Drawing your own Icon -
Defining the connection rules-Rebuilding your icon. Object oriented methodologies:
Rambaugh et.al. s̳ object modeling techniques-The Booch methodology –The Jacobson et.al.
Methodologies-Pattern-Frame works-The Unified Approach.
UNIT V:
Introduction to UML-UML Diagram-Class Diagram-Use Case Diagram-Interaction
-Sequence Diagram-Collaboration Diagram-State Chart Diagram-Activity Diagram-
Component Diagram-Deployment Diagram.
1
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
UNIT - I
INTRODUCTION :
CASE stands for Computer Aided Software Engineering. It means, development and
maintenance of software projects with help of various automated software tools.
CASE tools are set of software application programs, which are used to automate SDLC
activities. CASE tools are used by software project managers, analysts and engineers to develop
software system.
There are number of CASE tools available to simplify various stages of Software
Development Life Cycle such as Analysis tools, Design tools, Project management tools,
Database Management tools, Documentation tools are to name a few.
Use of CASE tools accelerates the development of project to produce desired result and
helps to uncover flaws before moving ahead with next stage in software development.
CASE tools can be broadly divided into the following parts based on their use at a particular
SDLC stage:
Central Repository - CASE tools require a central repository, which can serve as a
source of common, integrated and consistent information. Central repository is a central
place of storage where product specifications, requirement documents, related reports
and diagrams, other useful information regarding management is stored. Central
repository also serves as data dictionary.
Upper Case Tools - Upper CASE tools are used in planning, analysis and design stages
of SDLC.
Lower Case Tools - Lower CASE tools are used in implementation, testing and
maintenance.
Integrated Case Tools - Integrated CASE tools are helpful in all the stages of SDLC,
from Requirement gathering to Testing and documentation.
CASE tools can be grouped together if they have similar functionality, process activities and
capability of getting integrated with other tools.
2
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Scope of Case Tools
Diagram tools
These tools are used to represent system components, data and control flow among various
software components and system structure in a graphical form. For example, Flow Chart Maker
tool for creating state-of-the-art flowcharts.
Process modeling is method to create software process model, which is used to develop the
software. Process modeling tools help the managers to choose a process model or modify it as
per the requirement of software product. For example, EPF Composer
These tools are used for project planning, cost and effort estimation, project scheduling and
resource planning. Managers have to strictly comply project execution with every mentioned
step in software project management. Project management tools help in storing and sharing
project information in real-time throughout the organization. For example, Creative Pro Office,
Trac Project, Basecamp.
Documentation Tools
Documentation in a software project starts prior to the software process, goes throughout all
phases of SDLC and after the completion of the project.
Documentation tools generate documents for technical users and end users. Technical users are
mostly in-house professionals of the development team who refer to system manual, reference
manual, training manual, installation manuals etc. The end user documents describe the
functioning and how-to of the system such as user manual. For example, Doxygen, DrExplain,
Adobe RoboHelp for documentation.
Analysis Tools
These tools help to gather requirements, automatically check for any inconsistency, inaccuracy
in the diagrams, data redundancies or erroneous omissions. For example, Accept 360, Accompa,
CaseComplete for requirement analysis, Visible Analyst for total analysis.
Design Tools
These tools help software designers to design the block structure of the software, which may
further be broken down in smaller modules using refinement techniques. These tools provides
detailing of each module and interconnections among modules. For example, Animated
Software Design
3
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Configuration Management Tools
An instance of software is released under one version. Configuration Management tools deal
with –
CASE tools help in this by automatic tracking, version management and release management.
For example, Fossil, Git, Accu REV.
These tools are considered as a part of configuration management tools. They deal with changes
made to the software after its baseline is fixed or when the software is first released. CASE tools
automate change tracking, file management, code management and more. It also helps in
enforcing change policy of the organization.
Programming Tools
Prototyping Tools
Software prototype is simulated version of the intended software product. Prototype provides
initial look and feel of the product and simulates few aspect of actual product.
Prototyping CASE tools essentially come with graphical libraries. They can create hardware
independent user interfaces and design. These tools help us to build rapid prototypes based on
existing information. In addition, they provide simulation of software prototype. For example,
Serena prototype composer, Mockup Builder.
These tools assist in designing web pages with all allied elements like forms, text, script, graphic
and so on. Web tools also provide live preview of what is being developed and how will it look
after completion. For example, Fontello, Adobe Edge Inspect, Foundation 3, Brackets.
Quality assurance in a software organization is monitoring the engineering process and methods
adopted to develop the software product in order to ensure conformance of quality as per
organization standards. QA tools consist of configuration and change control tools and software
testing tools. For example, SoapTest, AppsWatch, JMeter.
4
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Maintenance Tools
CASE technology is the automation of step by step methodologies for software and system
development. CASE tools are characterized by the stage or stages of software development life
cycle on which they focus.
Since different tools covering different stages share common information, it is required that
they integrate through some central repository system (data dictionary) to have a consistent view
of such information. In phases of software development life cycle integrated through a central
data dictionary. Case Tools are used in many ways in our organizations. Case tools can be
broadly classed into these broader areas:
While many organizations still use the SDLC methodology, it is often supplemented with other
methods.
Many systems developers use the CASE tools in various stages of the Software
Development Life Cycle. They mainly use it while developing the following methodologies:
Life Cycle
Object-oriented Approach
Rapid Applications Development (RAD)
Prototyping
Joint Applications Development (JAD)
The whole system is composed of many active objects. Active objects (AO) are
categorized into several groups. Active objects in the same group are responsible for the same
5
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
type of tasks. For example, active objects to support SA/SD methodology and object-oriented
methodology.
This is what we call horizontal division. All AO-groups are organized hierarchically. For
example, the group on top level is for users; the group on second level is for domains; the group
on third level is for development knowledge; the group on fourth level is for tools; the group on
fifth level is for technique support. This is what we call the vertical division. For each group,
there is a delegate which is a local server of that group. The communication among different
groups is through delegates at the corresponding levels.
The system maintains multiple layers of knowledge and has the ability of self-learning and self-
improvement. Especially, the system can do reasoning on incomplete information. Otherwise,
the system cannot 'figure out' users' intentions and the interaction between a user and a tool will
not be able to continue in some cases. Each node can be bound to a set of rules. Mixed
knowledge representation is good for reducing the size of the network, and thus speeding up the
learning process. In neural network, an output can always be derived from any input, even if the
input is incomplete. Self learning is a natural and standard process in a neural network.
Although a CASE shell is very useful for the creation and integration of CASE tools, we believe
it still is not simple and intuitive enough for CASE users. We suggest to provide CASE users
with more intuitive means to describe the integration of CASE tools. A diagramming tool,
similar to DFD diagramming tool, might be useful for this purpose. Pipe-filter, event-trigger and
message passing models are all useful means to realize the integration of CASE tools.
Basically, software project development is a team based activity. A CASE tool should be able to
support this feature. For this purpose, it is necessary to model the work process, and the
collaboration and coordination among team members. We hope to represent all these
information through a work flow model. Currently, there are many ways to model a work flow
for team based collaborative software development. However, most of them are too strict to
change dynamically (on the fly). We suggest using decentralized process models, such as
'ViewPoint' (E), which can be described visually and is also possible to cope with deviations
during process enactment.
Java Technologies
We are sure that the next generation CASE tools will be able to operate in heterogeneous and
distributed environments. JAVA is such a specification which allows for transparent access to
applications operating on multiple computing platforms. JAVA is endorsed by the OMG, an
organization that includes major computer manufacturers such as Digital, Sun, HP, IBM as well
as software providers such as Microsoft, Sunsoft, and Object Design among its members. JAVA
is possibly to become a de facto standard in the future. Based on this observation, we suggest
that the next generation CASE tools are established on CORBA standard. To develop platform
independent CASE tools, some platform independent programming languages, such as Java
programming language will be used.
Advertisement
Seminars conducted
Travel + miscellaneous expenses
SUB HEADS
FINANCIAL REQUIREMENT
DOCUMENTATION
Structured analysis
Improving system quality
Project team co-ordination
Planning
Analysis
Design
Implementation
Maintenance
Systems development is systematic process which includes phases such as planning, analysis,
design, deployment, and maintenance. Here, in this tutorial, we will primarily focus on −
Systems analysis
Systems design
Systems Analysis
It is a process of collecting and interpreting facts, identifying the problems, and decomposition
of a system into its components.
System analysis is conducted for the purpose of studying a system or its parts in order to
identify its objectives. It is a problem solving technique that improves the system and ensures
that all the components of the system work efficiently to accomplish their purpose.
Systems Design
It is a process of planning a new business system or replacing an existing system by defining its
components or modules to satisfy the specific requirements. Before planning, you need to
7
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
understand the old system thoroughly and determine how computers can best be used in order to
operate efficiently.
Systems
Processes
Technology
What is a System?
The word System is derived from Greek word Systema, which means an organized
relationship between any set of components to achieve some common cause or objective.
A system is “an orderly grouping of interdependent components linked together
according to a plan to achieve a specific goal.”
Elements of a System
The following diagram shows the elements of a system −
A picture is worth a thousand words. A Data Flow Diagram (DFD) is traditional visual
representation of the information flows within a system. A neat and clear DFD can
depict a good amount of the system requirements graphically. It can be manual,
automated, or combination of both.
It shows how information enters and leaves the system, what changes the information
and where information is stored. The purpose of a DFD is to show the scope and
boundaries of a system as a whole. It may be used as a communications tool between a
systems analyst and any person who plays a part in the system that acts as the starting
point for redesigning a system.
It is usually beginning with a context diagram as the level 0 of DFD diagram, a simple
representation of the whole system. To elaborate further from that, we drill down to a
level 1 diagram with lower level functions decomposed from the major functions of the
system. This could continue to evolve to become a level 2 diagram when further analysis
is required. Progression to level 3, 4 and so on is possible but anything beyond level 3 is
8
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
not very common. Please bear in mind that the level of details for decomposing
particular function really depending on the complexity that function.
9
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Gane and Sarson
One main difference in their symbols is that Yourdon-Coad and Yourdon-DeMarco use circles
for processes, while Gane and Sarson use rectangles with rounded corners, sometimes called
lozenges. There are other symbol variations in use as well, so the important thing to keep in
mind is to be clear and consistent in the shapes and notations you use to communicate and
collaborate with others.
External entity:
An outside system that sends or receives data, communicating with the system being
diagrammed. They are the sources and destinations of information entering or leaving the
system. They might be an outside organization or person, a computer system or a business
system. They are also known as terminators, sources and sinks or actors. They are typically
drawn on the edges of the diagram.
Process:
any process that changes the data, producing an output. It might perform computations,
or sort data based on logic, or direct the data flow based on business rules. A short label is used
to describe the process, such as “Submit payment.”
Data store:
files or repositories that hold information for later use, such as a database table or a
membership form. Each data store receives a simple label, such as “Orders.”
Data flow:
The Route that data takes between the external entities, processes and data stores. It
portrays the interface between the other components and is shown with arrows, typically labeled
with a short data name, like “Billing details.”
DFD rules and tips
Each process should have at least one input and an output.
Each data store should have at least one data flow in and one data flow out.
10
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Data stored in a system must go through a process.
All processes in a DFD go to another process or a data store.
11
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
CASE REPOSITORY
• A repository is a centralised database containing all models (diagrams), data dictionary entries,
form & report definitions and system & organisational information
12
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
• e.g. all classes in a sequence diagram are present in the class diagram and
messages are consistent
• Benefits:
• Automatic generation of program and database definition code from information stored in the
Repository
• Produce source code (not compiled) allows generation for several environments
• generate ER model, SQL schema (e.g. Oracle8), CORBA IDL and Web Publisher;
• an aid to prototyping
– adherence to standards,
– integrity of documentation,
14
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
– trace requirements from model to code,
Limitations of CASE
• Limited flexibility in documentation
UNIT - II
INSTALLATION OF UBRIDGE AND SYNTHESIS
15
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
*Sophisticated prototyping tools, which involve specifying system requirements and executing
specified to refine, correct & ensure completeness of the system to meet user requirements.
Tools are,
* Diagramming section
*Prototyping section
*Code generation section
INSTALLATION OF UBRIDGE SYNTHESIS:
*Hardware requirements
* Installation
Hardware requirements:
* To install case tools (Ubridge synthesis) on your machine the following hardware
requirement must be satisfied.
*1BM pc /xT or true compatible under MS_DOS version 3.0 or later.
*One floppy drive (5 ¼” or 3 ½”).
*640 kb of RAM.
*Hard disk with at least 3MB of free space.
*Other than mouse drives it’s advisable not to have any program resident in memory.
Example: when synthesis is running.
*Synthesis needs 520 KB of memory free for its use.
Installation:
(i) Create a directory, say synthesis
C :\> md synth
Change your directory to this directory.
C :\> cd synth
Insert the 1st floppy in the drive and copy it in synthesis directory.
In this way copy all the ten floppies in the synthesis directory.
C :\> copy a: *.*c:\ synth
Note: after all the ten floppies are copied, please find out the type of monitor you are using.
*if it’s a monitor then there is nothing to worry about it for MGA or HGA monitor please run
this command.
C:\>synhga
C:\ synth\ INSTSYN
*The installation program instsyn will operate for a while & then give the message.
16
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
“Synthesis installation complete”.
Notes: synthesis cannot run without installation.
*computerized software is generally divided into 2 broad classes.
1. System software
2. Commercial application software
*each class of software is developed in computer programming languages own vocabulary,
syntax & semantics.
*software can be a few lines of code or a single computer program & it can be a very large
block of code doing complex things which constitutes a package.
COMPUTER AIDED SOFTWARE ENGINEERING:
* Creative process, we can enhance productivity.
* CASE very reliable software.
* CASE tools automate activities in all stages of the software development lifecycle
* requirement definition
* design
* development
*testing
*implementation
*documentation
*One such product that helps automate most stages of the software development lifecycle is
Ubridge synthesis.
*CASE tools is the concept of a central repository called a data dictionary.
Data dictionary: * This is a central store which holds all the software synthesis design data, its
diagrams & documentation all related to the software under development.
*Using CASE tools can develop reusable modules which can reduce the amount of
repetitive work the developer needs to do form application to application.
GETTING UBRIDGE TO WORK
* The user interface that allows access to the system. Configuration & security facilities is
called the SYSTEM MANAGER.
* ’SYSMAN’ we are this executable we can access various options that Ubridge provides.
C:\ SYNTH>sysman
SYSTEM MANAGER
Password:
17
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
When the system is coded for the first time the password supplied is INDUS then the user
interface loads & we have access to various options of “SYSMAN” including the option of
changing the password.
SYNTHESIS SYSMAN
Setup Views
Ok Cancel Help
Synthesis setup
Video mode : Auto Printer port : Lpt 1
Printer: Epson24
Change password
Word processor :
18
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
3) The type of input and output for files.
4) The type of printer driver required to work your printer.
5) CHANGE THE PASSWORD to sysman to one of your choice.
6) Identify the sub- directory where your favorite word processor sills.
The GRAPHICS SETUP:
DEF FONT:
Several types of fonts are used in Ubridge while diagramming. We have to setup a
DEFAULT font to load when Ubridge loads up, this default is defined in this window.
MAXFONT:
Memory sized used by load fonts. Define the memory size used by Ubridge to load fonts.
LABEL IMMEDIATE:
While creating an OBJECT in a window. Ubridge will ask you to name & label them.
SYSTEM LABEL:
When you create a LABEL on screen. Ubridge will always mark the label area carefully.
CONNECTOR LABEL:
*You can select one of 16 class for the connectors between objects on screen. This is a default
setting but a connector color can also be set in a window session.
The object / text set up window:
Synthesis graphics setup (object/text)
Object scale factor: 3 text size: 3
ok cancel help
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Synthesis assignment
user project
ok cancel help
backup restore
ok cancel help
*We have defined users of the system as well as projects to Ubridge and assigned these users to
project with each user’s access rights.
THE UBRIDGE PAGE
*The visible area on the screen on which you work, which is much less than the actual page
length.
*The MAXIMUM no. of rows are 72
*The MAXIMUM no. of columns are 256
*Default settings that load up when Ubridge loads up but via the system management software
CHANGE SCREEN SIZE.
*TOP LEFT hand side of the page & you will be able to see only a part of the actual page.
*TOP right only a part the no’s -> status line indicates where in the cursor is on the page.
UNIT - III
INTRODUCTION TO UBRIDGE
Introduction:
*we have seen the different screen that have to be designed for the payroll project.
*CASE tool must have an option so that the designing of the screens can be achieved.
*Ubridge synthesis uses its first menu screen.
Example:Ubridge menu screen.
*using this menu, we must be able to draw our screens so that it satisfies the client as well as the
user using it.
21
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
*The forms that are designed for the payroll project suggest.
1. Draw boxes/ lines.
2. Define simple fields and table fields.
3. Attach text to the screen.
4. Attach default value for a field.
5. Stich field validation to a field.
6. Chain different screens together so that we can develop the pull down menu system.
7. Do cursor controlling.
8. Define the screen logic.
*To get started with Ubridge synthesis we used to first get into the tool by keying in
C:\ synth>synth
After entering the username &password and the project. Name you will be put on the 1st screen
of Ubridge.
*To get inside painting your screens you must choose the requirement option.
How Ubridge is used is essentially as following
MAIN FLOW OF THE SYSTEM
*use Ubridge to create a screen. All the necessary video attributes such as bright, flash, reverse
of the screen can be defined.
*including several graphic blocks can be used to enhance the screen aesthetic presentation.
Menu screens:
*We can use the paint tool to design menu screens.
*One menu screen can call as another menu or data entry type of screen. This is done by a
process called chaining.
Data as Ubridge see it:
*In Ubridge, DATA is defined as those areas of the screen representing variable information.
*Once the field to from has been identified Ubridge will display the set of values or ranges that
are currently defined for the field.
22
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
*When entering the screen name to link to, if you do not remember the names of the screens
press * Enter and a list of screens from your active library will be displayed.
*Position the highlight on the screen name you wish to select and press enter.
Now select the EXECUTE option:
Several options will be available,
1. Current screen
2. AIL from current
3. Specific screen
4. Data manager
*Press S and select the 1st screen of the working model we have created and Enter.
Display ->for executing the model of the Ubridge screen.
PROTOTYPING YOUR REPORTS
*Reports will be a major portion of your model.
25
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
*This part of the data dictionary comes populated with data with the initial SYNTHESIS
distribution disks.
2. Part II of the data dictionary:
*The 2nd part contains data that is stored for a project.
Example: all the entities that describe the “sales” project of your organization will be stored in
this part of the data dictionary.
*During Analysis and design of a system, you create screens and models of a requirement and
represent your logical and physical designs using diagrams.
*In the process of describing screens and diagrams SYNTHESIS automatically stores all data in
part II of the data dictionary.
Options are:
1). Direct Interface-> A means by which you can view, add, modify or delete courtiers of data
dictionary.
2). Diagram Analysis-> A facility to help you check completeness of your diagrams.
3). Reports-> you can extract selective lists of specific entities in a project.
4). Query-> you can find out “Where all” a field of data is used and “What if” a repository is
modified.
5). Extract-> using the extract facility, you can generate C and COBOL code of data structures
in your project data dictionary.
THE DIRECT INTERFACE:
*Entities in the data dictionary are handled by the direct interface in 3 ways.
1).General interface is entered through the “entity window” this applies to all entities.
2).The “field” entity requires additional interface that’s entered through the “field window”
3).”Record” entity add interface entered through the “record window”
DIAGRAM ANALYSIS:
Three types of diagram analysis can be performed,
26
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
1).DFD Analysis, for ensuring completeness of a diagram.
*When you invoke this option, a list of all data flow diagrams stored in the dictionary will be
displayed.
*select one for analysis.
*It used for check the diagram is correct or if it’s not.
*List out of missing interface.
2).Level balancing for ensuring across DFD:
*In a DFD you can have a “process” that exp codes to another DFD.
*The data flows that are connected to this “process” should be accounted for in the DFD
represents the process.
Leveled Data flow diagrams:
*At the top most in the hierarchy of a leveled DFD is the context Analysis diagram.
* This is the parent of the 1st level breakdown diagram.
*The next level of DFD (e.g. child)
Balancing of a data flow diagram:
Balancing -> Data flows into and out of a process in a parent diagram.
*This is the equivalent of input and output to and from a child diagram.
Advantage: Levelled DFD ‘S allow a top-down approach read from top-down.
Normalization:
Normalization is a technique that has been developed to ensure that the data structure is
efficient.
1NF (first normal form)
2NF (second normal form)
3NF (third normal form)
Un-normalized form (UNF) relation:
*1st we have to prepare a list of data items that are present in this form.
*we have to choose a key for the UNF.
Guidelines for choosing a key:
1. The key must have a unique values for each occurrence of the group of data connected.
2. The key must not repeat within a group of data.
3. Where the data can only be identified uniquely by a key made up of more than one d.item a
compound or composite key. ->choose the least no. of data items.
UNF Relations:
Data
Grn number
27
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Supplier name
Supplier Address
Order reference
*Item code *Total
*Description *Discount
*Rate *Grand total
*Quantity
*Indicates data element it’s repeating in this format.
1NF:
*Does not include any repeating groups.
*Any single data item or group of items within the UNF relation occur more than once for a
single value of the key should be removed.
2NF:
*2NF each field (or attribute or data item) depends on the whole key & not on part of the key.
Relation 1 R2 R3
Date GNR number item code
GNR number item code description
Supplier name Rate
Supplier address
Order ref quantity
Discount Total
Chancel total
*In the FNF relation2, Description & rate depend on item code and not on Grn no.
*Thus we remove this and form author relation.
3NF:
*Each field depends only on the key and doesn’t depend on other fields within that record.
Example: Supplier address in relation 1 is dependent on supplier name and Grand total is
dependent on discount.
*In relation 2 total is dependent on quantity.
Relation 1 Relation 2 R3 R4
Date GNR number item code supplier name
GNR number item code description supplier address
Supplier name Rate
Order ref Quantity
Discount
*Report
*Query
*Extract
28
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Reports:
*You can extract reports on any of the entities in the data dictionary.
*Reports are in the form of lists of data dictionary contents.
*after you select this option, you want reported.
Query:
*gives the information of fields & division for making a query.
2 divisions:
1. Field or records
2. Repositories.
Extract:
*Records described in the project data dictionary can be extracted in C or COBOL code formats.
*The “Extract “utility can be invoked through the “Data Dictionary “menu.
*Select the record to extract next give the name of the TEXT file that will be used as the output.
DOCUMENT:
*Document module you can build a complete document.
*Based on the contents of the data dictionary & extraneous data.
*The documents that you can build are system proposals, system specification, system manuals
& user manuals.
*Once you choose this option.
*Create a document
*modify a document
*Generate a document
*Word processor.
1 ST option -> enter a document.name
*A section can either be an Ubridge screen, a diagram or a text file.
Text files should be in ASCII format,
*Word processor output.
* Reports generated using the “Diagram analysis” “Query “or “Report” facilities.
* Reports generated using the Ubridge “print document” facility.
*All text files designed as section must be present in the uses directory.
Extensions “.txt”
*The “Introduction” chapter would contain the following sections:
29
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
1. INTR01 .TXT ->exp the object of system.
2. Stores interaction -> presentation diagram shows the human interaction.
3. INTR02.TXT -> overview of the system
4. Stores system -> DFD describes the data flows in the system.
INTR01.TXT:
*you are asked to select either t for text, s-> screen d-> diagram.
Generating a document:
*Generate an existing document.
*Get a selection list, select the document you just created.
* . Doc extension.
Printing a document:
PRDOC -> execute the program
Key in: PRDOC {project name} {user name}
SYNTHESIS ADMINISTRATOR:
*The synthesis administrator essentially gives you facilities to reconfigure synthesis colors,
select a different printer and change the function key short cut assignments.
*If also gives you a means to access DOS directly without exiting from SYNTHESIS.
THE SYNTHESIS REFERENCE
1. EXPLODE -> Describe a process, dataflow, connector or repository in detail as another
diagram, record or screen.
Diagramming tools icon selection list.
UNIT - IV
DIAGRAM DEFINITION TOOL
*In previous study about the DFD diagrams.
*Ubridge synthesis will create new icons or diagrams.
*If you take a listing of Ubridge synthesis home directory it will show you an executable
add.exe.
*When Ubridge is installed there is a file called DDT.EXE -> draw your own diagrams & icons.
*DDT works on CGA, EGA, VGA & her rules graphics monitors.
*Following files are present in the systems directory.
1. DDT.EXE
2. UBCOLOR.UBE
3. UBHELP.UBE
30
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
4. UBINDX.UBE
5. UCDATA.UBE
*The file UCDATA.UBE will be modified during DDT interaction. It’s suggested that you
make a backup copy of this file before using DDT.
*So that an accidental corruption of the file due to incorrect interaction can be avoided.
STARTING DDT
At the dos prompt key-in as follows
C:\synth >ddt
This will call the executable from the synthesis home directory.
Object : Diagram:
*Since we want to create a new diagram select the option new object/diagram.
*you will have to specify the diagram name, diagram description, manual connection
&overlap connection.
31
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Icon object list connector list symbol list
Ok cancel help
*You will have to specify a label to this icon. This will be automatically attached to the icon that
you will create.
*After specifying the icon label select DCON DRACE option.
32
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Delete
Redraw
Zap Do you wish to save changer? (Y/N)
*Use any or all the options that are available to you and draw an icon the way you like.
*Save your diagram by selecting the quit option that is given above you will return back to the
previous screen.
Example: Select the object list & set ok for the command button.
*You would like to have different objects in are DFD select the object list button.
[Diagram]
*The object name list will show you all the objects that are available to you.
*Choose the object that you want & click the Add menu.
DEFINING THE CONNECTION RULE
*For any object that you will select the explosion rule and the connection rule must be specified.
*1st select the explosion rule menu. A pop-up window opens up.
Ok cancel help
*Here since the external entity cannot be exploded we are not giving any explosion name list.
*You will have to select the object from the object name list and select the Add menu to add it
to the exploded name list.
*After you have finished select the ok menu to return back to the previous screen.
*Data store can be exploded into a record.
*Similarly for each of the object list it will ask for explosion rule & the connection rule.
*Select the connection list menu to define the type of connection you want.
Ok cancel help
*Select the connector name from the connector name list and choose the add menu to add that
connector to the diagram connector list.
*When you choose the add menu the following pop-up opens up on the screen.
*This will pick up the connector type from the name that you have selected.
*You will have to specify the c.name & hot key for the connector type that you have selected
34
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Add connector window
Connector type: Straight arrow
Connector name: St –arr Hot key: s
Expansion rule
Ok cancel help
*Now you will have to specify the expansion rule menu and the following pop-up window
opens up.
[Diagram]
*Select the name from the object name list and then select the add menu.
*This will add the entry in the connector expand list. After finished this, select the ok menu to
accept your changes and return back to the main screen.
New object/diagram
Get object/diagram
Save object/diagram
Get diagram
Save
Status: Quit
OBJECT-ORIENTED METHODOLOGIES
35
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
36
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
An external entity is a source or destination of a data element.
37
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
*The Jacobson ET AL. Methodologies cover the entire life cycle and struts traceability
between the different phases.
I. Use cases.
II. Object oriented software engineering
III. Object oriented business engineering
I) Use cases:
*A use case is an interaction between users and a system.
*The use-case model captures the goal of user and the responsibilities of the system.
The use case describe one of the followings:
*Non-formal text with no clear flow of events.
*Text easy to read but with a clear flow of event to follow.
*Format style using pseudo code.
The use case description must contain:
*How and when the use case begins & ends.
*The interaction between the use case and its actors.
*need to store the system.
*Exceptions to the flow of events.
*Concept of the problem domain.
-> Every single use case should describe one main flow of events.
-> An exceptional or additional flow of event could be added.
->The extend relationship is used when you have one use case it similar to another use case.
->An abstract use case is not complete and has no actors that intimate it but is used by another
use case.
library
Doing research
Purchasing supplier
supsuppliers
38
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
(ii) Object-oriented software engineering: objector
*Object-oriented software engineering (OOSE) also called objector.
*It is a method of object-oriented development with the specify aim to fit the development of
large, real-time system.
*The development process is called use-case driven development.
*The system development method based on OOSE is a disciplined process of the industrialized
of software.
*Jacobson ET.AL Objectorhas been developed and applies to numerous application areas and
embodies in the CASE TOOL systems.
*objector is built around several different models.
i) Use case tool:
The use case model defines the outside and inside of the system.
ii) Domain object model:
The object of the “real” world are mapped into the domain object model.
iii) Analysis object model:
The analysis object model presents how the source code should be carried out.
iv) Implementation model:
It represents the implementation of the system.
v) Test model:
It constitute the test plans, specifications and reports.
[
Tested in
Express in
Structured by realized by implemented by
Ok
Not ok
39
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
The analysis object are translated into design object that fit the current
implementation environment.
iii. Testing phase:
Finally jacobson describes several testing levels and techniques, the level
includes unit, integration, and system testing.
PATTERNS
Introduction:
*A pattern is instructive information that captures the essential structure and insight of a
successful family of proven solutions.
*A pattern involves a general descriptions of a solution to a recurring problem bundle with
various goals and constraints.
*”A pattern in waiting” which it is inappropriate to decisively to know to recur sometimes is
called a proto-pattern.
A Good Pattern will do the following:
I. It solve a problem
II. It is a proven concept.
III. The solution is not obvious.
IV. It describe a relationship.
V. The pattern has a significant human component.
It includes,
A. Generative and Non Generative pattern
B. Pattern templates
C. Ant patterns
D. Capturing patterns
40
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
4) Forces - a description of the relevant forces and constraints and how they interact or conflict
with one another.
5) Solution - static relation and dynamic rule describing how to realize the desired outcome.
6) Examples - one or more sample application are illustrated.
7) Resulting context - the static or configuration of the system after the patterns has been
applied, including consequences of applying patterns.
8) Rationale - a justifying explanation of step or rules in the pattern and also of the pattern as a
whole in terms of how and why if resolve.
9) Related patterns - the static and dynamic relationship of a pattern.
10) Known users - the known assurance within existing system.
c) Anti Patterns:
* A pattern represents a “best practice” whereas Anti patterns represents “worst
practices” or “a lesson learned”.
An ant patterns come in two varieties:
UNIT - V
INTRODUCTION TO UML (UNIFIED MODELING LANGUAGE)
UML is a standard language for specifying, visualizing, constructing, and documenting the
artifacts of software systems.
UML was created by the Object Management Group (OMG) and UML 1.0 specification draft
was proposed to the OMG in January 1997.
UML is not a programming language but tools can be used to generate code in various
languages using UML diagrams.
Goals of UML
A picture is worth a thousand words, this idiom absolutely fits describing UML. Object-
oriented concepts were introduced much earlier than UML. At that point of time, there were no
standard methodologies to organize and consolidate the object-oriented development. It was
then that UML came into picture.
There are a number of goals for developing UML but the most important is to define
some general purpose modeling language, which all modelers can use and it also needs to be
made simple to understand and use.
UML diagrams are not only made for developers but also for business users, common
people, and anybody interested to understand the system. The system can be a software or non-
software system. Thus it must be clear that UML is not a development method rather it
accompanies with processes to make it a successful system.
42
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
A conceptual model can be defined as a model which is made of concepts and their
relationships.
A conceptual model is the first step before drawing a UML diagram. It helps to
understand the entities in the real world and how they interact with each other.
As UML describes the real-time systems, it is very important to make a conceptual model and
then proceed gradually. The conceptual model of UML can be mastered by learning the
following three major elements −
This chapter describes all the UML building blocks. The building blocks of UML can be defined
as −
Things
Relationships
Diagrams
Things are the most important building blocks of UML. Things can be −
Structural
Behavioral
Grouping
Annotational
Structural things define the static part of the model. They represent the physical and
conceptual elements. Following are the brief descriptions of the structural things.
Interface − Interface defines a set of operations, which specify the responsibility of a class.
Use case −Use case represents a set of actions performed by a system for a specific goal.
43
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Component −Component describes the physical part of a system.
Node − A node can be defined as a physical element that exists at run time.
BEHAVIORAL THINGS
A behavioral thing consists of the dynamic parts of UML models. Following are the behavioral
things −
State machine − State machine is useful when the state of an object in its life cycle is
important. It defines the sequence of states an object goes through in response to events. Events
are external factors responsible for state change
GROUPING THINGS
Grouping things can be defined as a mechanism to group elements of a UML model together.
There is only one grouping thing available −
Package − Package is the only one grouping thing available for gathering structural and
behavioral things.
ANNOTATIONAL THINGS
44
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
RELATIONSHIP
Relationship is another most important building block of UML. It shows how the elements are
associated with each other and this association describes the functionality of an application.
Dependency
Dependency is a relationship between two things in which change in one element also affects
the other.
Association
Association is basically a set of links that connects the elements of a UML model. It also
describes how many objects are taking part in that relationship.
Generalization
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.
UML DIAGRAMS
UML diagrams are the ultimate output of the entire discussion. All the elements, relationships
are used to make a complete UML diagram and the diagram represents a system.
45
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
The visual effect of the UML diagram is the most important part of the entire process. All the
other elements are used to make it complete.
UML includes the following nine diagrams, the details of which are described in the subsequent
chapters.
Class diagram
Object diagram
Use case diagram
Sequence diagram
Collaboration diagram
Activity diagram
Statechart diagram
Deployment diagram
Component diagram
We prepare UML diagrams to understand the system in a better and simple way. A single
diagram is not enough to cover all the aspects of the system. UML defines various kinds of
diagrams to cover most of the aspects of a system.
You can also create your own set of diagrams to meet your requirements. Diagrams are
generally made in an incremental and iterative way.
There are two broad categories of diagrams and they are again divided into subcategories −
Structural Diagrams
Behavioral Diagrams
Structural Diagrams
The structural diagrams represent the static aspect of the system. These static aspects represent
those parts of a diagram, which forms the main structure and are therefore stable.
These static parts are represented by classes, interfaces, objects, components, and nodes. The
four structural diagrams are −
Class diagram
Object diagram
Component diagram
Deployment diagram
Class Diagram
Class diagrams are the most common diagrams used in UML. Class diagram consists of
classes, interfaces, associations, and collaboration. Class diagrams basically represent the
object-oriented view of a system, which is static in nature.
Class diagram represents the object orientation of a system. Hence, it is generally used
for development purpose. This is the most widely used diagram at the time of system
construction.
46
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Object Diagram
Object diagrams can be described as an instance of class diagram. Thus, these diagrams
are more close to real-life scenarios where we implement a system.
Object diagrams are a set of objects and their relationship is just like class diagrams.
They also represent the static view of the system.
The usage of object diagrams is similar to class diagrams but they are used to build
prototype of a system from a practical perspective.
Component Diagram
During the design phase, software artifacts (classes, interfaces, etc.) of a system are
arranged in different groups depending upon their relationship. Now, these groups are known as
components.Finally, it can be said component diagrams are used to visualize the
implementation.
Deployment Diagram
Deployment diagrams are a set of nodes and their relationships. These nodes are physical
entities where the components are deployed.
Deployment diagrams are used for visualizing the deployment view of a system. This is
generally used by the deployment team..
Behavioral Diagrams
Any system can have two aspects, static and dynamic. So, a model is considered as
complete when both the aspects are fully covered.
Behavioral diagrams basically capture the dynamic aspect of a system. Dynamic aspect
can be further described as the changing/moving parts of a system.
Use case diagrams are a set of use cases, actors, and their relationships. They represent
the use case view of a system.
47
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
A use case represents a particular functionality of a system. Hence, use case diagram is
used to describe the relationships among the functionalities and their internal/external
controllers. These controllers are known as actors.
Sequence Diagram
A sequence diagram is an interaction diagram. From the name, it is clear that the
diagram deals with some sequences, which are the sequence of messages flowing from one
object to another.
Collaboration Diagram
Statechart Diagram
Statechart diagram is used to represent the event driven state change of a system. It basically
describes the state change of a class, interface, etc.State chart diagram is used to visualize the
reaction of a system by internal/external factors.
Activity Diagram
Activity diagram describes the flow of control in a system. It consists of activities and
links. The flow can be sequential, concurrent, or branched.
Activities are nothing but the functions of a system. Numbers of activity diagrams are
prepared to capture the entire flow in a system.
Activity diagrams are used to visualize the flow of controls in a system. This is prepared
to have an idea of how the system will work when executed.
CLASS DIAGRAM
Class diagram is a static diagram. It represents the static view of an application. Class
diagram is not only used for visualizing, describing, and documenting different aspects
of a system but also for constructing executable code of the software application.
48
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Class diagram describes the attributes and operations of a class and also the constraints imposed
on the system. Class diagram shows a collection of classes, interfaces, associations,
collaborations, and constraints. It is also known as a structural diagram.
Class diagrams are the only diagrams which can be directly mapped with object-oriented
languages and thus widely used at the time of construction.
UML diagrams like activity diagram, sequence diagram can only give the sequence flow
of the application, however class diagram is a bit different. It is the most popular UML diagram
in the coder community.
Class diagrams are the most popular UML diagrams used for construction of software
applications. It is very important to learn the drawing procedure of class diagram.
Class diagram is basically a graphical representation of the static view of the system and
represents different aspects of the application. A collection of class diagrams represent the
whole system.
The name of the class diagram should be meaningful to describe the aspect of the
system.
Each element and their relationships should be identified in advance.
Responsibility (attributes and methods) of each class should be clearly identified
For each class, minimum number of properties should be specified, as unnecessary
properties will make the diagram complicated.
Use notes whenever required to describe some aspect of the diagram. At the end of the
drawing it should be understandable to the developer/coder.
Finally, before making the final version, the diagram should be drawn on plain paper and
reworked as many times as possible to make it correct.
First of all, Order and Customer are identified as the two elements of the system. They
have a one-to-many relationship because a customer can have multiple orders.
Order class is an abstract class and it has two concrete classes (inheritance relationship)
SpecialOrder and NormalOrder.
The two inherited classes have all the properties as the Order class. In addition, they
have additional functions like dispatch () and receive ().
49
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
The following class diagram has been drawn considering all the points mentioned above.
.Class diagram clearly shows the mapping with object-oriented languages such as Java, C++,
etc. From practical experience, class diagram is generally used for construction purpose.
The purpose of use case diagram is to capture the dynamic aspect of a system. However,
this definition is too generic to describe the purpose, as other four diagrams (activity, sequence,
collaboration, and Statechart) also have the same purpose. We will look into some specific
purpose, which will distinguish it from other four diagrams.
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.
50
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
In brief, the purposes of use case diagrams can be said to be as follows −
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.
We can say that use cases are nothing but the system functionalities written in an
organized manner. The second thing which is relevant to use cases are the actors. 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. When we are planning to draw a use case diagram, we should have the following
items identified.
Use case diagrams are drawn to capture the functional requirements of a system. After
identifying the above items, we have to use the following guidelines to draw an efficient use
case diagram
The name of a use case is very important. The name should be chosen in such a way so
that it can identify the functionalities performed.
Give a suitable name for actors.
Show relationships and dependencies clearly in the diagram.
Do not try to include all types of relationships, as the main purpose of the diagram is to
identify the requirements.
Use notes whenever required to clarify some important points.
Following is a sample use case diagram representing the order management system. Hence, if
we look into the diagram then we will find three use cases (Order, SpecialOrder, and
NormalOrder) and one actor which is the customer.
The SpecialOrder and NormalOrder use cases are extended from Order use case. Hence, they
have extended relationship. Another important point is to identify the system boundary, which is
shown in the picture. The actor Customer lies outside the system as it is an external user of the
system.
51
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Use case diagrams specify the events of a system and their flows. But use case diagram
never describes how they are implemented. Use case diagram can be imagined as a black box
where only the input, output, and the function of the black box is known.
These diagrams are used at a very high level of design. This high level design is refined
again and again to get a complete and practical picture of the system. A well-structured use case
also describes the pre-condition, post condition, and exceptions. These extra elements are used
to make test cases when performing the testing.
Although use case is not a good candidate for forward and reverse engineering, still they
are used in a slightly different way to make forward and reverse engineering. The same is true
for reverse engineering. Use case diagram is used differently to make it suitable for reverse
engineering.
In forward engineering, use case diagrams are used to make test cases and in reverse
engineering use cases are used to prepare the requirement details from the existing application.
INTERACTION DIAGRAM
From the term Interaction, it is clear that the diagram is used to describe some type of
interactions among the different elements in the model. This interaction is a part of dynamic
behavior of the system.
52
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
This interactive behavior is represented in UML by two diagrams known as Sequence
diagram and Collaboration diagram. The basic purpose of both the diagrams. are similar
Sequence and collaboration diagrams are used to capture the dynamic nature but from a
different angle.
We have two types of interaction diagrams in UML. One is the sequence diagram and
the other is the collaboration diagram. The sequence diagram captures the time sequence of the
message flow from one object to another and the collaboration diagram describes the
organization of objects in a system taking part in the message flow.
Following things are to be identified clearly before drawing the interaction diagram
Following are two interaction diagrams modeling the order management system. The first
diagram is a sequence diagram and the second is a collaboration diagram.
We have already discussed that interaction diagrams are used to describe the dynamic
nature of a system. Now, we will look into the practical scenarios where these diagrams are
used. To understand the practical application, we need to understand the basic nature of
sequence and collaboration diagram.
53
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
The main purpose of both the diagrams are similar as they are used to capture the dynamic
behavior of a system. However, the specific purpose is more important to clarify and
understand.
Sequence diagrams are used to capture the order of messages flowing from one object to
another. Collaboration diagrams are used to describe the structural organization of the objects
taking part in the interaction. A single diagram is not sufficient to describe the dynamic aspect
of an entire system, so a set of diagrams are used to capture it as a whole.
Interaction diagrams are used when we want to understand the message flow and the structural
organization. Message flow means the sequence of control flow from one object to another.
Structural organization means the visual organization of the elements in a system.
The sequence diagram has four objects (Customer, Order, SpecialOrder and
NormalOrder).
The following diagram shows the message sequence for SpecialOrder object and the
same can be used in case of NormalOrder object. It is important to understand the time
sequence of message flows. The message flow is nothing but a method call of an object.
The first call is sendOrder () which is a method of Order object. The next call is confirm
() which is a method of SpecialOrder object and the last call is Dispatch () which is a method of
SpecialOrder object. The following diagram mainly describes the method calls from one object
to another, and this is also the actual scenario when the system is running.
54
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
The second interaction diagram is the collaboration diagram. It shows the object
organization as seen in the following diagram. In the collaboration diagram, the method call
sequence is indicated by some numbering technique. The number indicates how the methods are
called one after another. We have taken the same order management system to describe the
collaboration diagram.
Method calls are similar to that of a sequence diagram. However, difference being the
sequence diagram does not describe the object organization, whereas the collaboration diagram
shows the object organization.
To choose between these two diagrams, emphasis is placed on the type of requirement. If
the time sequence is important, then the sequence diagram is used. If organization is required,
then collaboration diagram is used.
Sequence diagrams are used to capture the order of messages flowing from one object to
another. Collaboration diagrams are used to describe the structural organization of the objects
taking part in the interaction. A single diagram is not sufficient to describe the dynamic aspect
of an entire system, so a set of diagrams are used to capture it as a whole.
55
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Interaction diagrams are used when we want to understand the message flow and the
structural organization. Message flow means the sequence of control flow from one object to
another. Structural organization means the visual organization of the elements in a system.
STATECHART DIAGRAM
Statechart diagram is one of the five UML diagrams used to model the dynamic nature
of a system. They define different states of an object during its lifetime and these states are
changed by events.
Statechart diagrams are useful to model the reactive systems. Reactive systems can be
defined as a system that responds to external or internal events.
Statechart diagram describes the flow of control from one state to another state. States
are defined as a condition in which an object exists and it changes when some event is triggered.
The most important purpose of Statechart diagram is to model lifetime of an object from
creation to termination.
Statechart diagrams are also used for forward and reverse engineering of a system.
However, the main purpose is to model the reactive system.
Statechart diagram is used to describe the states of different objects in its life cycle.
Statechart diagrams are very important for describing the states. States can be identified
as the condition of objects when a particular event occurs.
Following is an example of a Statechart diagram where the state of Order object is analyzed
The first state is an idle state from where the process starts. The next states are arrived for events
like send request, confirm request, and dispatch order. These events are responsible for the state
changes of order object.
Statechart diagram defines the states of a component and these state changes are
dynamic in nature. Its specific purpose is to define the state changes triggered by events. Events
are internal or external factors influencing the system.
Statechart diagrams are used to model the states and also the events operating on the
system. When implementing a system, it is very important to clarify different states of an object
during its life time and Statechart diagrams are used for this purpose. When these states and
events are identified, they are used to model it and these models are used during the
implementation of the system.
If we look into the practical implementation of Statechart diagram, then it is mainly used
to analyze the object states influenced by events. This analysis is helpful to understand the
system behavior during its execution.
ACTIVITY DIAGRAM
Activity diagram is another important diagram in UML to describe the dynamic aspects
of the system.
Activity diagram is basically a flowchart to represent the flow from one activity to
another activity. The activity can be described as an operation of the system.
The control flow is drawn from one operation to another. This flow can be sequential,
branched, or concurrent. Activity diagrams deal with all type of flow control by using different
elements such as fork, join, etc
The basic purposes of activity diagrams is similar to other four diagrams. It captures the
dynamic behavior of the system. Other four diagrams are used to show the message flow from
one object to another but activity diagram is used to show message flow from one activity to
another.
Activity is a particular operation of the system. Activity diagrams are not only used for
visualizing the dynamic nature of a system, but they are also used to construct the executable
system by using forward and reverse engineering techniques. The only missing thing in the
activity diagram is the message part.
It does not show any message flow from one activity to another. Activity diagram is
sometimes considered as the flowchart. Although the diagrams look like a flowchart, they are
not. It shows different flows such as parallel, branched, concurrent, and single.
Activity diagrams are mainly used as a flowchart that consists of activities performed by
the system. Activity diagrams are not exactly flowcharts as they have some additional
capabilities. These additional capabilities include branching, parallel flow, swimlane, etc.
Before drawing an activity diagram, we must have a clear understanding about the
elements used in activity diagram. The main element of an activity diagram is the activity itself.
An activity is a function performed by the system. After identifying the activities, we need to
understand how they are associated with constraints and conditions.
Activities
58
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Association
Conditions
Constraints
Once the above-mentioned parameters are identified, we need to make a mental layout of the
entire flow. This mental layout is then transformed into an activity diagram.
Following is an example of an activity diagram for order management system. In the diagram,
four activities are identified which are associated with conditions. One important point should
be clearly understood that an activity diagram cannot be exactly matched with the code. The
activity diagram is made to understand the flow of activities and is mainly used by the business
users
After receiving the order request, condition checks are performed to check if it is normal or
special order. After the type of order is identified, dispatch activity is performed and that is
marked as the termination of the process.
The basic usage of activity diagram is similar to other four UML diagrams. The specific
usage is to model the control flow from one activity to another. This control flow does not
include messages.
Activity diagram is suitable for modeling the activity flow of the system. An application can
have multiple systems. Activity diagram also captures these systems and describes the flow
59
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
from one system to another. This specific usage is not available in other diagrams. These
systems can be database, external queues, or any other system.
This diagram is used to model the activities which are nothing but business requirements. The
diagram has more impact on business understanding rather than on implementation details.
COMPONENT DIAGRAM
Component diagrams are different in terms of nature and behavior. Component diagrams
are used to model the physical aspects of a system. Physical aspects are the elements such as
executables, libraries, files, documents, etc. which reside in a node.
Component diagrams are used to visualize the organization and relationships among
components in a system. These diagrams are also used to make executable systems.
Component diagram is a special kind of diagram in UML. The purpose is also different
from all other diagrams discussed so far. It does not describe the functionality of the system but
it describes the components used to make those functionalities.
Thus from that point of view, component diagrams are used to visualize the physical
components in a system. These components are libraries, packages, files, etc.
A single component diagram cannot represent the entire system but a collection of
diagrams is used to represent the whole.
Component diagrams are used to describe the physical artifacts of a system. This artifact
includes files, executables, libraries, etc
The purpose of this diagram is different. Component diagrams are used during the
implementation phase of an application. However, it is prepared well in advance to visualize the
implementation details.
60
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Initially, the system is designed using different UML diagrams and then when the
artifacts are ready, component diagrams are used to get an idea of the implementation.
Before drawing a component diagram, the following artifacts are to be identified clearly −
After identifying the artifacts, the following points need to be kept in mind.
Use a meaningful name to identify the component for which the diagram is to be drawn.
Prepare a mental layout before producing the using tools.
Use notes for clarifying important points.
Following is a component diagram for order management system. Here, the artifacts are
files. The diagram shows the files in the application and their relationships. In actual, the
component diagram also contains dlls, libraries, folders, etc.
In the following diagram, four files are identified and their relationships are produced.
Component diagram cannot be matched directly with other UML diagrams discussed so far as it
is drawn for completely different purpose.
The following component diagram has been drawn considering all the points mentioned
above.
These diagrams show the physical components of a system. To clarify it, we can say that
component diagrams describe the organization of the components in a system.
As we have already discussed, those components are libraries, files, executables, etc.
Before implementing the application, these components are to be organized. This component
organization is also designed separately as a part of project execution.
Component diagrams are very important from implementation perspective. Thus, the
implementation team of an application should have a proper knowledge of the component
details
DEPLOYMENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical components of a
system, where the software components are deployed.
Deployment diagrams are used to describe the static deployment view of a system.
Deployment diagrams consist of nodes and their relationships.
The term Deployment itself describes the purpose of the diagram. Deployment diagrams
are used for describing the hardware components, where software components are deployed.
Component diagrams and deployment diagrams are closely related.
Component diagrams are used to describe the components and deployment diagrams
shows how they are deployed in hardware.
UML is mainly designed to focus on the software artifacts of a system. However, these
two diagrams are special diagrams used to focus on software and hardware components.
Most of the UML diagrams are used to handle logical components but deployment
diagrams are made to focus on the hardware topology of a system. Deployment diagrams are
used by the system engineers.
Deployment diagrams are useful for system engineers. An efficient deployment diagram is
very important as it controls the following parameters −
Performance
Scalability
Maintainability
Portability
Nodes
Relationships among nodes
Following is a sample deployment diagram to provide an idea of the deployment view of order
management system. Here, we have shown nodes as −
Monitor
Modem
Caching server
Server
The following deployment diagram has been drawn considering all the points mentioned above.
63
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
Deployment diagrams are mainly used by system engineers. These diagrams are used to
describe the physical components (hardware), their distribution, and association.
Now-a-days software applications are very complex in nature. Software applications can
be standalone, web-based, distributed, mainframe-based and many more. Hence, it is very
important to design the hardware components efficiently.
65
PIONEER COLLEGE OF ARTS AND SCIENCE CASE TOOLS
66