Академический Документы
Профессиональный Документы
Культура Документы
PART I
III. Flexibility: - Classes made through object orientation provide the units for
task allocation in the software development.
-1- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
Q2. What are model elements? Discuss stereotypes and tagged values.
Class Object
<<Actor>> Customer
Customer
Customer
LAGGED VALUE: - These values are the vary convenient tools to specify property
or characteristics of model elements. A tagged value is a pair of string keyword and a
value string that stores a peace of information about an element. These keyword-
value pairs are known as property specification, tagged values can be used to store
arbitrary values as well as store information about stereotypes model elements.
-2- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
Tagged values also provide a way to attach implementation dependent add in
information to element.
Instruments
{Abstract}
{Status = “Draft”}
Value = int.
expdate : date
Ans: - NODES - Nodes are physical objects that have some kinds of computational
source. Nodes include computers with processors with well as devices such as
printers, speakers, communication devices and so on.
A node can be shown both a type and instance where a type describes the
characteristics of a processors or device type and an instance represents actual
occurrences of that type.
Dell
Pentium Jack’s machin
MMX Dell
Pentium
MMX
The DELL Pentium MMX is a node type while jacks machine is a instance of that
type.
<<Printer>>
HP LaserJet 5MP
-3- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
CONNECTION: - Nodes are connected to each other by communication associations
as shown below .
Client:1
Xyz PC <<TCP/IP>>
:
Data Base
APPLICATI Server:
ON VAX
SERVER
SG02
Client:2
Xyz PC <<TCP/IP>>
There are drawn as normal association with straight line indicating that there is some
sort of communication path between them with the nodes exchanging objects or
messages through the communication path. The communication type is represented by
a stereotype that identified the communication protocol used.
----------------------------------------------THE
END-------------------------------------
-4- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
PART II
Subsystem A
Subsystem B Subsystem C
Subsystem D Subsystem E
-5- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
An interface is the general outline of a class showing the methods, the class will have
, when someone implements it. It defines the set of externally accessible operations
without methods. But it may specify only a limited part of behavior of actual class
whereas class can implement many interfaces.
It provides the service that is required to any element, which the
supplier provides. If a class implements it, it must declare or inherit all the operations
in the interface. If a class implement more than one interface then must have to
contain each operation found in any of its interfaces. It is a generalisable element that
inherits all the operations of its parent with some additional operations.
As: animal
Class A Class B
man
<<Interfaces>> <<Interfaces>>
Man Animal
{Abstract} {Abstract}
A( ) C( )
Class C
D( )
Packages: Packages are the way of grouping a verity of classes and/or interfaces
together. In fact packages acts as a container for classes and/or interfaces. here each
name must be unique. It may also contain the subordinate packages or models.
By organizing classers into packages following benefits can be found:
1. The classes contained in the package of other programs can be easily reused.
2. It provides a way to hide classes thus preventing other programs or packages from
accessing classes.
-6- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
package. Protected elements are available only to packages with generalization to the
containing package. Public elements are available to import package and to the
descendent of the package. Packages may have relationship to other packages
indicating that the relationship exists between at least some element they contain.
The diagram can be made using a large rectangle with a smaller
rectangle attached to upper left corner of large rectangle. If the contents of the
packages are or shown, then the name of the package is placed within the large
rectangle.
Here in the diagram subsystem E is dependent on subsystem B.
subsystem C depends on subsystem B and D. subsystem B, C and E are inside the
subsystem. All subsystems are represented as packages.
Ans:-
a. Class: - A class is a way to bind the data and it’s associated functions together. It
allows the data to be hidden, if necessary from external use. These are the
description of set of objects with common structural features, behavioral features,
relationships and semantics. This can be a description of any object in any system
– information, technique, embedded real time, distributed, software and business.
-7- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
b. Objects: - Objects are the basic runtime entities in an object-oriented system.
These are the instance of classes and are used to model particular entities. They
have a unique identity and may be referenced by a unique handle, which identifies
and provides access to it. The canonical notation for an object is a rectangle with
two compartments, top compartment containing the object name and other
containing the list of attribute names and values.
Shape: rectangle
Vertices = ((0,0),(0,4),(4,2),(2,0))
Backcolor = white
Forecolor = Black
c. Use case: - The use case is unified modeling language, which is defined as a set of
sequences of actions a system performs to yield as observable result of the values
to someone or something which interacts with the system. The actions can involve
communicating with a number of actors as well as performing calculations and
work inside the system.
d. Component: - The component is the implementation in the physical architecture
of the concept and the functionality defined in the logical architecture. These are
typically the implementation files in the logical architecture.
A component is the distributable physical units, including source code,
object code and executable code. A software component can be a source
component, binary component or executable component. These are usually
represented in UML by a rectangle with tow smaller rectangles to the left. The
component name is written inside or below the large rectangle.
ABC
-8- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
----------------------------------------------THE
END------------------------------------
-9- P.T.O
B.Sc. IT 13(01 & 02)
Object Oriented Analysis And Design
=========================================
==========
- 10 - P.T.O