Sunteți pe pagina 1din 2

What is the best way to identify software classes

from use cases


Name:
1 Department One, Institution One, City One, Country One

E-mail: xxx@xxx.xx

Abstract
The transformation of user requirements into system requirements models can be achieved using the 4-Step Rule Set method.
This method transforms UML use case diagrams into system-level object diagrams. These diagrams represent the logical
architecture of the system . They also integrate the system-level entities, their responsibilities and relationships among them.
The logical architecture captures the system functional requirements and its non functional intentionalities. Although
contributing to the formalization of the design of software architectures, the 4SRS method needs to be extended in order to
support the design of the database subsystems that may be considered pertinent within the specified logical architecture. This
paper presents the methods of identifying software classes from use cases.

1.1 Related Work


1. Introduction
The most complex activity in the development of a software In SRS method the functional requirements of a software
system is the transformation of a requirements system are captured and documented in use cases. Although
specification(SRS) into an architectural design. The process of use case-driven approaches are widely used to identify system
designing software architectures is less formalised and often classes, there is no proven technique for the transition from
is an intuitive ad-hoc activity based on engineering principles. use cases to class diagrams . In these approaches, the build
The 4-Step Rule Set also called 4SRS method employs process may lead to missing classes because the use cases are
successive model transformations in order to obtain a logical insufficient for deriving all necessary classes. The
architecture that satisfies the previously signed off user identification of classes from the documented SRS is one of
requirements. It is based on the mapping of UML use case the most important and difficult tasks during the analysis and
diagrams into their corresponding UML objects diagrams . the design of object-oriented systems. Use cases describe
The usage of diagrammatic models and iterative nature help to specific behaviour of the system and, therefore, the candidate
ensure that the obtained logical architecture reflects the client objects involved in those functionalities. In this approach, the
requirements. Once the first logical architecture of the system use cases are extracted from equirements, validated against
is generated, the design of class diagrams is needed for the the functional specifications in each sentence so that classes
specification of the static characteristics of the software to be can be identified, and the previous use cases can be reused to
produced. In this approach , a derivation technique is used to supply missing functional specifications that contain
obtain the class diagram, using not only the use case model participating classes. In this approach, ambiguity problems are
but also the logical architecture that results from the mitigated by imposing restrictions on the language that can be
application of the 4SRS method. Since the 4SRS method used for writing requirements. The Liang method also follows
supports a recursive approach to ensure that the system a use case-driven process in which classes are identified based
functional requirements are present in the logical architecture on the goals of use cases without descriptions. The proposed
independently of the subsystem we may need to refine, the approach identifies use case-entity diagrams as a vehicle for
approach proposed in this paper guarantees that the necessary deriving classes from use cases. Classes are identified from
classes are able to be identified. use cases’ goals rather than use case descriptions. Classes are
the entities that participate in achieving the goals in the real
world. With this approach, the identification of too many also inherited from the raw object diagram. After the
classes at one time is avoided execution of this step, the classes and the
relationships among them are dervived.
1.2 Synopsis
This 4SRS method derives logical architectures,
representing system requirements, from user requirements 1.1.2 Discussion
models. It is organized mainly in the below steps to convert
use cases into system-level objects. Usually, object-oriented methodologies do not pay
1. Object creation. It automatically transforms each attention to the object diagram, i.e., they are mostly class
use case into three object types, interface, control driven. The class diagram is built firstly and only later the
and data. Only objects exist as design entities from object diagram is specified. The approach presented in this
this step. Use cases continue to be used in the next paper reverses this order, in an object-driven perspective. It is
steps allowing the introduction of the user more important to have a good system level object model
requirements into the object model. (with logical architecture), because the system is composed of
2. Object elimination. For each object, it must be objects and not by their classes. This is the main reason to first
decided what are the three type of objects that must identify the system level objects and classify them at a later
be maintained taking into consideration the whole stage, that is, select the classes to which those objects belong.
system . This is the most complex step of the 4SRS; The 4SRS method focuses on a model-driven development
divided further in seven sub-steps. approach, a technique that uses models during the software
Use case Classification: Uses cases clasified as data or development. It is executed by successively transforming
control , interface or combination of these to transform each models into other refined models, until the final system design
use case to objects. is obtained.
a. Local Elimination : Identifies if each
object created makes sense to the problem
domain based on textual description.
b. Object Naming : The left over objects will REFERENCES
receive a name that reflects both their “Software Architectures by Recursive Model
corresponding use case and also the role Transformations”, Proc. of the 7th International Conference
in the man functionality of the system. on Product Focused Software Process Improvement -
c. Object Description: The objects are PROFES’06. 2006. Amsterdam: Springer-Verlag. By R.J
described based on the textual description Machado, J.M. Fernandes, P. Monteiro, and H. Rodrigues,
in previous step thereby introducing “Transformation of UML Models for Software
system requirements into object model. Architectures”, Proc. of the 12th IEEE International
d. Object Representation: The elimination Conference on the Engineering of Computer-Based Systems -
of redundancy in user requirements ECBS 2005. 2005. Maryland, U.S.A.: IEEE Computer Society
happens at this step. It also identifies the Press by R.J. Machado, J.M. Fernandes, P. Monteiro, and H.
missing requirements. Rodrigues,
e. Global elimination:Eliminates objects B. Anda and D.I.K. Sjoberg, “ Role of Use Cases in the
represented by other ones Construction of Class Diagrams”, Empirical Software
f. Object renaming: Renames the left over Engineering, vol. 10, 2005, pp. 285-309.
objects not eliminated throughout the step.
3. Object packing and Aggregation: This step
supports the construction of a coherent object model
thereby adding an additional semantic layer at a
higher abstraction layer.
4. Object Association : This step supports the
introduction of associations in the object model
based on the information available in the use case
model . In the 4SRS terminology, this last version of
the object diagram is called raw object diagram. .
5. Class creation : This is a fully automatic step in
which a class is created for each one of the objects
present in the raw object diagram resulting from
above step . The associations among the classes are

S-ar putea să vă placă și