2 Classification
2 Classification
1
Classification Theory
• Classification is the process of checking to see if an object
belongs to a category or a class
• Classes are more important mechanism for classifying
objects
• Classification is concerned more with identifying the classes
of an object than the individual objects in the system
Classification can be defined as the categorization
of input data (things) into identifiable classes via the
extraction of significant features of attributes of the
data from a background of irrelevant data
2
Approaches for Identifying Classes
There are four approaches for identifying classes
• The Noun Phrase Approach
• The Common Class Patterns Approach
• The Use-case driven, sequence/ Collaboration modeling
Approach
• The Classes, Responsibilities and Collaborators
Approach
3
The Noun Phrase Approach
• In this method, we read through the requirements for looking
for noun phrases
• The Nouns are considered to be the classes
• The verbs are considered to be the methods to the classes
• The identified nouns are listed into three categories
– Relevant Classes
– Fuzzy Classes
– Irrelevant Classes
5
Selecting classes from relevant and fuzzy categories
• Redundant Classes
– Don’t keep two classes that expresses the same information
– If more than one class is used, then select one that is more
meaningful in the context of the system
• Adjective classes
– He is a tall man
– An adjective can define a different kind of object, different use
of same object, or irrelevant objects
– Only if it makes different kind of object, select it as a class
– Omit the other things
6
• Attribute Classes
– The objects that are used only as values are considered as a
class.
– They are declared as an attribute
– E.g.., “Client Status” is an attribute, not a class
• Irrelevant classes
– Formulate a statement that says the purpose for each
candidate classes
– If such a statement cannot be formed, then omit that class.
7
The Common Class Pattern
Approach
The following patterns of the classes are selected
• Concept class
– A concept is a particular idea of the system
– They are used to say some ideas used to keep track of the business
activities or communications
• Event class
– They are points in time that must be recorded
– Thing happen in a particular date, time etc., are recorded
• Organization class
– Is a collection of people, resources, facilities, or groups to which a
8
user belongs to.
• People Class
– Represents different roles users play in the system
– The peoples who carry out some functions
• Places class
– They are physical locations that the system must keep
information about.
9
Use-case driven approach
10
Implementation of scenarios
• Each scenario shows a different sequence of
interaction between the actors and the system.
• This process helps us to understand the behavior of
the systems objects
• The sequence diagram is created for the lowest use-
case level.
11
CRC approach
13
A Class Responsibilities Collaborators Card
14
CRC Process
The CRC involves the following Process
1. Identify the classes and the responsibilities
2. Assign Responsibilities
3. Identify Collaborators
Identify Classes
And
Responsibilities
Iterate
Identify Assign
Collaborators Responsibilities
16
Naming Classes
17