SE Lab File
SE Lab File
PO1: An ability to use the methodology and modern engineering tools necessary for
engineering practice.
Objective: Prepare a SRS document in line with the IEEE recommended standards.
Description:
An SRS is basically an organization's understanding (in writing) of a customer or potential client's system
requirements and dependencies at a particular point in time (usually) prior to any actual design or development work.
It's a two-way insurance policy that assures that both the client and the organization understand the other's
requirements from that perspective at a given point in time.
The SRS document itself states in precise and explicit language those functions and
capabilities a software system (i.e., a software application, an eCommerce Web site,
and so on) must provide, as well as states any required constraints by which the system
must abide. The SRS also functions as a blueprint for completing a project with as
little cost growth as possible. The SRS is often referred to as the "parent" document
because all subsequent project management documents, such as design specifications,
statements of work, software architecture specifications, testing and validation plans,
and documentation plans, are related to it.
It's important to note that an SRS contains functional and nonfunctional requirements
only; it doesn't offer design suggestions, possible solutions to technology or business
issues, or any other information other than what the development team understands the
customer's system requirements to be.
It provides feedback to the customer. An SRS is the customer's assurance that the
development organization understands the issues or problems to be solved and the
software behavior necessary to address those problems. Therefore, the SRS should be
written in natural language (versus a formal language, explained later in this article), in
an unambiguous manner that may also include charts, tables, data flow diagrams,
decision tables, and so on.
It decomposes the problem into component parts. The simple act of writing down
software requirements in a well-designed format organizes information, places borders
around the problem, solidifies ideas, and helps break down the problem into its
component parts in an orderly fashion.
It serves as a product validation check. The SRS also serves as the parent document
for testing and validation strategies that will be applied to the requirements for
verification.
SRSs are typically developed during the first stages of "Requirements Development,"
which is the initial product development phase in which information is gathered about
what requirements are needed--and not. This information-gathering stage can include
onsite visits, questionnaires, surveys, interviews, and perhaps a return-on-investment
(ROI) analysis or needs analysis of the customer or client's current business
environment. The actual specification, then, is written after the requirements have
been gathered and analyzed
The basic issues that the SRS shall address are the following:
An SRS should be
a) Correct
b) Unambiguous
c) Complete
d) Consistent
e) Ranked for importance and/or stability
f) Verifiable
g) Modifiable
h) Traceable
Correct - This is like motherhood and apple pie. Of course you want the specification
to be correct. No one writes a specification that they know is incorrect. We like to say
- "Correct and Ever Correcting." The discipline is keeping the specification up to date
when you find things that are not correct.
Unambiguous - An SRS is unambiguous if, and only if, every requirement stated therein has only one interpretation.
Again, easier said than done. Spending time on this area prior to releasing the SRS can be a waste of time. But as
you find ambiguities - fix them.
Complete - A simple judge of this is that is should be all that is needed by the
software designers to create the software.
Consistent - The SRS should be consistent within itself and consistent to its reference
documents. If you call an input "Start and Stop" in one place, don't call it "Start/Stop"
in another.
Ranked for Importance - Very often a new system has requirements that are really
marketing wish lists. Some may not be achievable. It is useful provide this information
in the SRS.
Verifiable - Don't put in requirements like - "It should provide the user a fast
response." Another of my favorites is - "The system should never crash." Instead,
provide a quantitative requirement like: "Every key stroke should provide a user
response within 100 milliseconds."
Modifiable - Having the same requirement in more than one place may not be wrong -
but tends to make the document not maintainable.
1. Introduction
Purpose
Document conventions
Intended audience
Additional information
References
2. Overall Description
Product perspective
Product functions
User classes and characteristics
Operating environment
User environment
Design/implementation constraints
User interfaces
Hardware interfaces
Software interfaces
4. System Features
System feature
Description and priority
Action/result
Performance requirements
Safety requirements
Security requirements
Project documentation
6. Other Requirements
Appendix B: To be determined
Output: SRS FOR ATM
SOFTWARE REQUIREMENT
SPECIFICATION
ATM
Version 1.0
September 8, 2006
1. Introduction
Purpose
Scope
References
Overview
Product Perspective
Product Functions
User Characteristics
Constraints
User Interfaces
Hardware Interfaces
Software Interfaces
Communications Interfaces
4. System Features
Performance Requirements
Capacity
Dynamic Requirements
Quality
Business Rules
6. Other Requirements
Appendix A:
Glossary
Appendix S:
Analysis
Models
1 Introduction
2. Purpose
This SRS defines External Interface, Performance and Software System Attributes
requirements of ATMExcl 3.0TM. This document is intended for the following group of
people:-
Developers for the purpose of maintenance and new releases of the software.
Management of the bank.
3. Scope
This document applies to Automated Teller Machine software ATM 3.0TM. This
software
facilitates the user to perform various transaction in his account without going to bank.
This software offers benefits such cash withdrawals, balance transfers, deposits,
inquiries, credit card advances and other banking related operations for customers. It also
allows the administrator to fix the tariffs and rules as and when required.
The software takes as input the login Id and the bank account number of the user for
login purposes. The outputs then comprise of an interactive display that lets the user
select the desirable function that he wants to perform..
The software is expected to complete in duration of six months and the estimated cost is
Rs.18 lakhs.
Definitions, Acronyms, and Abbreviations.
AC Alternate Current
services.
protocol.
Journals
MB Mega Bytes
ms Milliseconds.
sec Seconds
Smart Card Card without hardware which stores the user’s private keys
keyboard
V Volts
References
Section 3.0 details all the requirements needed to design the software.
Product Perspective
This software allows the user to access their bank accounts remotely through
This software also allows the perform various other functions apart from
just accessing his bank account such as mobile bill clearings etc.
i.e. for receipts and cash, a card reader, printer, switches, a console, a
The ATM communicates with the bank’s central server through a dial-up
communication link.
Product Functions
The major functions that ATMExcel 3.0TM performs are described as follows:-
Language Selection:- After the user has logged in, the display provides him with a list of
languages from which he can select any one in order to interact with the machine throughout that
session. After the language selection the user is prompted with an option that whether he wants the
selected language to be fixed for future use so that he is not offered with the language selection
menu in future thus making the transaction a bit faster. User also has the freedom to switch to a
different language mentioned in the list in between that session.
Account Maintenance: The various functions that a user can perform with his account are as follows:-
Account Type: The user has the freedom to select his account type to which all the transactions are
made.
Practical Number:2
Description: According to the UML specification a use case diagram is “a diagram that
shows the relationships among actors and use cases within a system.” Use case diagrams are
often used to:
Model your analysis of your usage requirements in the form of a system use case model
Use case models should be developed from the point of view of your project stakeholders and
not from the (often technical) point of view of developers. There are guidelines for:
Use Cases
Actors
Relationships
1. Use Cases
A use case describes a sequence of actions that provide a measurable value to an actor. A
use case is drawn as a horizontal ellipse on a UML use case diagram.
An actor is a person, organization, or external system that plays a role in one or more
interactions with your system (actors are typically drawn as stick figures on UML Use Case
diagrams).
3. Relationships
There are several types of relationships that may appear on a use case diagram:
Associations are depicted as lines connecting two modeling elements with an optional open-
headed arrowhead on one end of the line indicating the direction of the initial invocation of
the relationship. Generalizations are depicted as a close-headed arrow with the arrow pointing
towards the more general modeling element.
The rectangle around the use cases is called the system boundary box and as the name
suggests it indicates the scope of your system – the use cases inside the rectangle represent
the functionality that you intend to implement.
we start by identifying as many actors as possible. You should ask how the actors interact
with the system to identify an initial set of use cases. Then, on the diagram, you connect the
actors with the use cases with which they are involved. If actor supplies information, initiates
the use case, or receives any information as a result of the use case, then there should be an
association between them.
Conclusion: The Use case diagram was made successfully by following the steps
describe above.
Output:
Practical Number: 3
Description:
Hardware Requirements:
Pentium 4 processor (2.4 GHz), 128 Mb RAM, Standard keyboard n mouse, colored monitor.
Software Requirements:
Theory:
Activity diagrams are typically used for business process modeling, for modeling the logic
captured by a single usecase or usage scenario, or for modeling the detailed logic of a
business rule. Although UML activity diagrams could potentially model the internal logic of a
complex operation it would be far better to simply rewrite the operation so that it is simple
enough that you don’t require an activity diagram. In many ways UML activity diagrams are
the object-oriented equivalent of flow charts and data flow diagrams (DFDs) from structured
development.
● Initial node. The filled in circle is the starting point of the diagram. An initial node
isn’t required although it does make it significantly easier to read the diagram.
● Activity final node. The filled circle with a border is the ending point. An activity
diagram can have zero or more activity final nodes.
● Activity. The rounded rectangles represent activities that occur. An activity may be
physical, such as Inspect Forms, or electronic, such as Display Create Student
Screen.
● Join. A black bar with several flows entering it and one leaving it. All flows going
into the join must reach it before processing may continue. This denotes the end of
parallel processing.
● Condition. Text such as [Incorrect Form] on a flow, defining a guard which must
evaluate to true in order to traverse the node.
● Decision. A diamond with one flow entering and several leaving. The flows leaving
include conditions although some modelers will not indicate the conditions if it is
obvious.
● Merge. A diamond with several flows entering and one leaving. The implication is
that one or more incoming flows must reach this point until processing continues,
based on any guards on the outgoing flow.
● Sub-activity indicator. The rake in the bottom corner of an activity, such as in the
Apply to University activity, indicates that the activity is described by a more finely
detailed activity diagram.
● Flow final. The circle with the X through it. This indicates that the process stops at
this point.
General Guidelines
Decision Points
Decision Points
Guards
Parallel Activities
Swimlane Guidelines
.Action-Object Guidelines
General Guidelines
figure1. Modeling a business process with a UML Activity Diagram.
● Place The Start Point In The Top-Left Corner. A start point is modeled with a filled
in circle, using the same notation that UML State Chart diagrams use. Every UML
Activity Diagram should have a starting point, and placing it in the top-left corner
reflects the way that people in Western cultures begin reading. Figure1, which models
the business process of enrolling in a university, takes this approach.
● Always Include an Ending Point. An ending point is modeled with a filled in circle
with a border around it, using the same notation that UML State Chart diagrams use.
Figure1 is interesting because it does not include an end point because it describes a
continuous process – sometimes the guidelines don’t apply.
● Flowcharting Operations Implies the Need to Simplify. A good rule of thumb is that
if an operation is so complex you need to develop a UML Activity diagram to
understand it that you should consider refactoring it.
● Activities
An activity, also known as an activity state, on a UML Activity diagram typically represents
the invocation of an operation, a step in a business process, or an entire business process.
● Question “Black Hole” Activities. A black hole activity is one that has transitions
into it but none out, typically indicating that you have either missed one or more
transitions.
● Question “Miracle” Activities. A miracle activity is one that has transitions out of it
but none into it, something that should be true only of start points.
● Decision Points
● Decision Points Should Reflect the Previous Activity. In figure1 we see that there is
no label on the decision point, unlike traditional flowcharts which would include text
describing the actual decision being made, we need to imply that the decision
concerns whether the person was enrolled in the university based on the activity that
the decision point follows. The guards, depicted using the format [description], on
the transitions leaving the decision point also help to describe the decision point.
● Avoid Superfluous Decision Points. The Fill Out Enrollment Forms activity in
FIGURE1 includes an implied decision point, a check to see that the forms are
filled out properly, which simplified the diagram by avoiding an additional diamond.
● Guards
● Guards Should Not Overlap. For example guards such as x <0, x = 0, and x > 0 are
consistent whereas guard such as x <= 0 and x >= 0 are not consistent because they
overlap – it isn’t clear what should happen when x is 0.
● Guards on Decision Points Must Form a Complete Set. For example, guards such as x
< 0 and x >0 are not complete because it isn’t clear what happens when x is
● Exit Transition Guards and Activity Invariants Must Form a Complete Set. An
activity invariant is a condition that is always true when your system is processing an
activity.
● Guards Are Optional. It is very common for a transition to not include a guard, even
when an activity includes several exit transitions.
5. Parallel Activities
It is possible to show that activities can occur in parallel, as you see in FIGURE 1
depicted using two parallel bars. The first bar is called a fork, it has one transition
entering it and two or more transitions leaving it. The second bar is a join, with two or more
transitions entering it and only one leaving it.
● A Fork Should Have a Corresponding Join. In general, for every start (fork) there is
an end (join). In UML 2 it is not required to have a join, but it usually makes sense.
● Swimlane Guidelines
A swimlane is a way to group activities performed by the same actor on an activity diagram
or to group activities in a single thread. FIGURE 2 includes three swimlanes, one for each
actor.
Figure 3. Submitting expenses.
● Apply Swim Lanes To Linear Processes. A good rule of thumb is that swimlanes are
best applied to linear processes, unlike the one depicted in FIGURE 3.
● Have Less Than Five Swimlanes.
7 Action-Object Guidelines
Activities act on objects, In the strict object-oriented sense of the term an action object is a
system object, a software construct. In the looser, and much more useful for business
application modeling, sense of the term an action object is any sort of item. For example in
FIGURE 3 the ExpenseForm action object is likely a paper form.
Conclusion: The activity diagram was made successfully by following the steps
described above.
Practical Number: 4
Outcome: Class diagram helps to understand the static structure of a system. It shows
relationships between classes, objects, attributes, and operations.
Objective: Identify the classes. Classify them as weak and strong classes and draw the class
diagram.
Description:
A class diagram models the static structure of a system. It shows relationships between
classes, objects, attributes, and operations.
Classes
Illustrate classes with rectangles divided into compartments. Place the name of the
class in the first partition (centered, bolded, and capitalized), list the attributes in the
second partition (left-aligned, not bolded, and lowercase), and write operations into
the third.
Active Classes
Active classes initiate and control the flow of activity, while passive classes store data
and serve other classes. Illustrate active classes with a thicker border.
Visibility
Use visibility markers to signify who can access the information contained within a
class. Private visibility, denoted with a - sign, hides information from anything
outside the class partition. Public visibility, denoted with a + sign, allows all other
classes to view the marked information. Protected visibility, denoted with a # sign,
allows child classes to access information they inherited from a parent class.
Associations
Multiplicity (Cardinality)
Place multiplicity notations near the ends of an association. These symbols indicate
the number of instances of one class linked to one instance of the other class. For
example, one company will have one or more employees, but each employee works
for just one company.
Constraint
In real life coding examples, the difference between inheritance and aggregation can
be confusing. If you have an aggregation relationship, the aggregate (the whole) can
access only the PUBLIC functions of the part class.
On the other hand, inheritance allows the inheriting class to access both the PUBLIC
and PROTECTED functions of the superclass.
The UML Class diagram is used to visually describe the problem domain in terms of types of
objects (classes) related to each other in different ways.
i) Association
The most abstract way to describe static relationship between classes is using the
Association link, which simply states that there is some kind of a link or a dependency
between two classes or more.
Weak Association
ClassA may be linked to ClassB in order to show that one of its methods includes
parameter of ClassB instance, or returns instance of ClassB.
Strong Association
ClassA may also be linked to ClassB in order to show that it holds a reference to ClassB
instance.
ii) Aggregation (Shared Association) (Weak Class)
In cases where there’s a part-of relationship between ClassA (whole) and ClassB (part), we
can be more specific and use the aggregation link instead of the association link, highlighting
that the same ClassB instance can also be aggregated by other classes in the application
(therefore aggregation is also known as shared association). Class B is weak Class.
It’s important to note that the aggregation link doesn’t state in any way that ClassA owns
ClassB nor that there’s a parent-child relationship (when parent deleted all its child’s are
being deleted as a result) between the two. Actually, quite the opposite! The aggregation link
is usually used to stress the point that ClassA instance is not the exclusive container of
ClassB instance, as in fact the same ClassB instance has another container/s.
The association link can replace the aggregation link in every situation, while aggregation
cannot replace association in situations where there’s only a ‘weak link’
between the classes, i.e. ClassA has method/s that contain parameter of ClassB, but ClassA
doesn’t hold reference to ClassB instance.
Martin Fowler suggest that the aggregation link should not be used at all because it
has no added value and it disturb consistency, Quoting Jim Rumbaugh "Think of it as
a modeling placebo".
We should be more specific and use the composition link in cases where in addition to the
part-of relationship between ClassA and ClassB - there’s a strong lifecycle dependency
between the two, meaning that when ClassA is deleted then ClassB is also deleted as a result.
Class Person is strong class.
The composition link shows that a class (container, whole) has exclusive ownership over
other class/s (parts), meaning that the container object and its parts constitute a parent-child/s
relationship.
Unlike association and aggregation, when using the composition relationship, the composed
class cannot appear as a return type or parameter type of the composite class. Thus, changes
to the composed class cannot propagate to the rest of the system. Consequently, usage of
composition limits complexity growth as the system grows.
Clarification: It is possible for a class to be composed by more than one class. For example,
ClassA may be composed by ClassB and ClassC. However, unlike aggregation, instances of
ClassB and ClassC will never share the same ClassA instance. That would violate the
propagation of changes principle. ClassB instance will have its own instance of ClassA,
and ClassC instance will have its own instance of ClassA.
Conclusion: The Class diagram was made successfully by following the steps
describe above.
Output: Class diagram
Practical Number: 5
Components are wired together by using an assembly connector to connect the required
interface of one component with the provided interface of another component. This illustrates
the service consumer - service provider relationship between the two components.
An assembly connector is a "connector between two components that defines that one
component provides the services that another component requires. An assembly connector is
a connector that is defined from a required interface or port to a provided interface or port."
When using a component diagram to show the internal structure of a component, the provided
and required interfaces of the encompassing component can delegate to the corresponding
interfaces of the contained components.
A delegation connector is a "connector that links the external contract of a component (as
specified by its ports) to the internal realization of that behavior by the component’s parts."[1]
The example above illustrates what a typical insurance policy administration system might
look like. Each of the components depicted in the above diagram may have other component
diagrams illustrating its internal structure.
The lollipop, a small circle on a stick, represents an implemented or provided interface. The
socket symbol is a semicircle on a stick that can fit around the lollipop. This socket is a
dependency or needed interface.
The component diagram notation set now makes it one of the easiest UML diagrams to draw.
Figure 1 shows a simple component diagram using the former UML 1.4 notation; the
example shows a relationship between two components: an Order System component
that uses the Inventory System component. As you can see, a
component in UML 1.4 was drawn as a rectangle with two smaller rectangles
obtruding from its left side.
Output:
Hardware Requirements:
Pentium 4 processor (2.4 GHz), 128 Mb RAM, Standard keyboard and mouse, colored
monitor.
Theory:
UML sequence diagrams model the flow of logic within the system in a visual manner,
enabling the user both to document and validate the logic, and are commonly used for both
analysis and design purposes. Sequence diagrams are the most popular UML artifact for
dynamic modeling, which focuses on identifying the behavior within your system. Sequence
diagrams, along with class diagrams and physical data models are the most important design-
level models for modern application development.
2. The logic of methods. Sequence diagrams can be used to explore the logic of a
complex operation, function, or procedure. One way to think of sequence diagrams,
particularly highly detailed diagrams, is as visual object code.
3. The logic of services. A service is effectively a high-level method, often one that
can be invoked by a wide variety of clients. This includes web-services as well as
business transactions implemented by a variety of technologies such as
CICS/COBOL or CORBA-compliant object request brokers (ORBs).
FIG .shows the logic for how to enroll in a seminar. One should often develop a system-level
sequence diagram to help both visualize and validate the logic of a usage scenario. It also
helps to identify significant methods/services, such as checking to see if the applicant already
exists as a student, which the system must support.
The dashed lines hanging from the boxes are called object lifelines, representing the life span
of the object during the scenario being modeled. The long, thin boxes on the lifelines are
activation boxes, also called method-invocation boxes, which indicate processing is being
performed by the target object/class to fulfill a message.
Sequence diagramming really is visual coding, even when you are modeling a usage scenario
via a system-level sequence diagram.
While creating a sequence diagram ,start by identifying the scope of what you are trying to
model.You should typically tackle small usage scenarios at the system level or a single
method/service at the detailed object level.
You should then work through the logic with at least one more person, laying out classifiers
across the top as you need them. . The heart of the diagram is in the messages, which you add
to the diagram one at a time as you work through the logic. You should rarely indicate return
values, instead you should give messages intelligent names which often make it clear what is
being returned.
It is interesting to note that as you sequence diagram you will identify new responsibilities for
classes and objects, and, sometimes, even new classes. The implication is that you may want
to update your class model appropriately, agile modelers will follow the practice Create
Several Models in Parallel, something that CASE tools will do automatically. Remember,
each message sent to a class invokes a static method/operation on that class each message
sent to an object invokes an operation on that object.
Regarding style issues for sequence diagramming, prefer drawing messages going from left-
to-right and return values from right-to-left, although that doesn’t always work with complex
objects/classes. Justify the label on messages and return values, so they are closest to the
arrowhead. Also prefer to layer the sequence diagrams: from left-to-right. indicate the actors,
then the controller class(es), and then the user interface class(es), and, finally, the business
class(es). During design, you probably need to add system and persistence classes, which you
should usually put on the right-most side of sequence diagrams. Laying your sequence
diagrams in this manner often makes them easier to read and also makes it easier to find
layering logic problems, such as user interface classes directly accessing persistence .
Description:
Collaboration diagrams ar relatively easy to draw. They show the relationship between
objects and the order of messages passed between them. The objects are listed as icons
and arrows indicate the messages being passed between them. The numbers next to the
messages are called sequence numbers. As the name suggests, they show the sequence of
the messages as they are passed between the objects. There are many acceptable
sequence numbering schemes in UML. A simple 1, 2, 3... format can be used, as the
example below shows, or for more detailed and complex diagrams a 1, 1.1 ,1.2, 1.2.1...
scheme can be used.
Conclusion: The Collaboration diagram was made successfully by following the steps describe
Number: 8
Actions, which are represented by diamond shapes, show how two entities
share information in the database. In some cases, entities can be self-linked.
For example, employees can supervise other employees.
Attributes, which are represented by ovals. A key attribute is the unique, distinguishing
characteristic of the entity. For example, an employee's social security number might be
the employee's key attribute.
A multivalued attribute can have more than one value. For example, an
employee entity can have multiple skill values.
Connecting lines, solid lines that connect attributes to show the relationships of
entities in the diagram.
Cardinality specifies how many instances of an entity relate to one instance of
another entity. Ordinality is also closely linked to cardinality. While cardinality
specifies the occurrences of a relationship, ordinality describes the relationship
as either mandatory or optional. In other words, cardinality specifies the
maximum number of relationships and ordinality specifies the absolute
minimum number of relationships.
There are many notation styles that express cardinality.
Tips for Effective ER Diagrams
1. Make sure that each entity only appears once per diagram.
2. Name every entity, relationship, and attribute on your diagram.
3. Examine relationships between entities closely. Are they necessary? Are there any
relationships missing? Eliminate any redundant relationships. Don't connect relationships to
each other.
Components:
DFD rules